CodeceptJS is a modern end to end testing framework with a special BDD-style syntax. The test is written as a linear scenario of user's action on a site. The use of generator functions allows asynchronous tests to be written in synchronous way.
Questions tagged [codeceptjs]
251 questions
0
votes
1 answer
basic auth Codeceptjs with Appium
having a bit of headache getting past basic auth for our uat environments, we have switched to using Appium and I am trying to configure Codeceptjs to allow me to pass through credentials.
My current config looks like :-
exports.config = {
…

redoptics
- 65
- 6
0
votes
0 answers
Error: BrowserType.launch: Protocol error (Browser.getVersion): Browser closed when running codeceptjs docker image thru Dockerfile
FROM codeceptjs/codeceptjs:latest
# Set working directory
WORKDIR /usr/app
# Copy source code
COPY package.json /usr/app
COPY package-lock.json /usr/app
COPY . /usr/app
# Environment variables
ENV BASE_URL="Local Https URL"
ENV…

Chals
- 21
- 4
0
votes
1 answer
How to implement the autotesting stage in GitLab CI using CodeceptJS?
I am trying to configure the startup stage of autotests in the GitLab CI pipeline according to the example:
CodeceptJS GitLab Integration
Step to reproduce:
I cloned this repository…

Yuri Fedorov
- 33
- 1
- 6
0
votes
2 answers
I want to parse a .js config file in Groovy
I'm reading this config from a config.js file and tried to parse. I have tried JsonSlurper with no luck. Can anyone let me know the feasible solution to get this string parsed in groovy
exports.config = {
tests: './test/lib/test*.js',
output:…

Manoj Rajan
- 5
- 2
0
votes
1 answer
Click on Element is not working in appium using codeceptJS
Im facing an issue while automating a click on element in virtual Tab android system using Appium & CodeceptJS. when i run the test, i got this error :
ERROR webdriver: Request failed with status 404 due to unknown command: The requested resource…

HERROU Hajar
- 15
- 4
0
votes
0 answers
Cannot test a native Android app using codeceptJS
I have created a codeceptJS project by following the mobile testing setup steps located here: https://codecept.io/mobile/#setting-up
So far, I'm unable to test any apps via simulator; I instead get the following error:
1) login
I should be…

Thomas W Tupper
- 625
- 1
- 6
- 17
0
votes
1 answer
ShellJS start script but don't stop the current flow
I'm using codeceptjs with shelljs.
In one of tests I'm invoking go application like this :
const shell = require('shelljs')
Given('Member starts call', () => {
shell.exec('./myGoApplication -cc call', true)
});
Then('I wait for {}', async…

Kyryl Zotov
- 1,788
- 5
- 24
- 44
0
votes
1 answer
How to set up codecept.conf.js for both android native and ios native in the same project
I've worked through the docs and am not finding a solution to this problem. What I'm trying to do is configure codeceptJS properly so as to be able to execute tests against both native iOS and native Android within the same project. The docs seem…

Thomas W Tupper
- 625
- 1
- 6
- 17
0
votes
1 answer
How to perform an e2e test of the Google Pay (Adyen) flow with Codeceptjs?
I am trying to perform an e2e test using Codeceptjs (with Puppeteer) for the Google Pay payment gateway implemented using Adyen. Currently I can get to select the radio button but I cannot automatically switch to the iframe or pop-up window that…
0
votes
0 answers
Appium Codeceptjs iOS tap on text
With Appium Codeceptjs it is possible to tap on text with Android.
I.tap('OK')
How to make this tap work for iOS build?
This native function is not working on iOS.
https://codecept.io/mobile/

Kyryl Zotov
- 1,788
- 5
- 24
- 44
0
votes
1 answer
Unable to connect to selenium chrome standalone driver
login --
× "before all" hook: codeceptjs.beforeSuite for "test something" in 6432ms
TypeError: Cannot convert undefined or null to object
-- FAILURES:
login
"before all" hook: codeceptjs.beforeSuite for "test something":
Cannot convert undefined or…

Shiv Bachan
- 13
- 5
0
votes
1 answer
How to implement drag and drop (drag to reorder) with CodeceptJs
I have this request to implement drag and drop between two cards so they swap their positions, so more specifically a "drag to reorder". Not sure how to tackle this scenario considering the container would not be empty when I’m dropping the new item…

Francislainy Campos
- 3,462
- 4
- 33
- 81
0
votes
1 answer
Invalid session id when closing current tab with CodeceptJs
I am getting an invalid session id
error when trying to close my current tab using CodeceptJs and I.closeCurrentTab() and not sure how to fix this as most questions here seem to be about other frameworks, such as Selenium.

Francislainy Campos
- 3,462
- 4
- 33
- 81
0
votes
1 answer
CodeceptJS how to return an array of elements? - similarly to querySelectorAll
Writing the following command in the console:
document.querySelectorAll("[type='checkbox']")
Returns:
NodeList(12) [input.jss719, input.jss719, input.jss719, input.jss719, input.jss719, input.jss719, input.jss719, input.jss719, input.jss719,…

boYan
- 3
- 1
0
votes
1 answer
How to use CodeceptJS to unit-test a JS function
I've set up CodeceptJS for a project and use it to test various end-to-end scenarios.
Now I want to extend the tests-suite to also run unit-tests to verify functionality of custom JS functions.
For example: I have a global object App that has a…

Philipp
- 10,240
- 8
- 59
- 71