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
                    
                    8
                    
            votes
                
                3 answers
            
        How to change default language Chromium/Firefox using Playwright?
I’ve been trying without success to change default language of browsers Chromium and Firefox (inside automated tests that run in parallel using CodeceptJS + Playwright as runner) to french language. In Chromium, I’ve tried to use args --lang without…
         
    
    
        Conta Android
        
- 81
- 1
- 3
                    8
                    
            votes
                
                2 answers
            
        How to Try Catch in CodeceptJS
I'm doing this in my page object:
try{
    I.selectOption(this.SELECT, this.OPTION);
}
catch(error){
    I.say('Option missing, but thats sometimes expected ' + error);
}
But it still fails the test when the locator doesn't match an option element.…
         
    
    
        Dingredient
        
- 2,191
- 22
- 47
                    5
                    
            votes
                
                2 answers
            
        Q: CodeceptJS "unknown error": call function result missing 'value'
This is my Test
 Feature('Test');
    Scenario('test something', (I) => {
        I.amOnPage("");
        I.see("Welcome");
        I.fillField('j_username', 'xxxxxx');
        I.wait(3);
    });
This is my codeceptjs.JSON
{
  "tests":…
         
    
    
        Caitlyn Daisy
        
- 53
- 7
                    4
                    
            votes
                
                0 answers
            
        Appium iOS Android list element click
I use codeceptjs and appium for e2e Android + iOS.
How can I make a step for clicking 1st or other number in RecyclerView (android) or any list in iOS.
I have list id so I can locate it but I can't locate listitems with content-decsription as normal…
         
    
    
        Kyryl Zotov
        
- 1,788
- 5
- 24
- 44
                    3
                    
            votes
                
                0 answers
            
        Appium codeceptjs javascript Android iOS locate element
How to locate item by accessbilityId (contentDescritpion) in Appium iOS and Android?
For me this code works:
When('I tap {}', (button) => {
    I.tap(button);
})
I have TabLayout and it can be found by android:contentDescription but how can I click…
         
    
    
        Kyryl Zotov
        
- 1,788
- 5
- 24
- 44
                    3
                    
            votes
                
                1 answer
            
        How to retry failed step in run-workers?
I want to mix the advantages of run-workers (multiple agents to gain time) and run-rerun (fight against flaky tests) but I don't know how I can do that.
Currently, I do npx codeceptjs run-workers --suites 5 --steps but I have some flaky tests. I…
         
    
    
        Kurolounet
        
- 81
- 5
                    3
                    
            votes
                
                2 answers
            
        How can we use Typescript with CodeceptJS for testing framework?
I have to create a testing framework using CodeceptJS. I am trying to use typescript instead of javascript to write my page objects and tests. Can someone help with what configuration is required in conf.js or steps.ts file
I have added below in…
         
    
    
        Mithun
        
- 33
- 2
- 8
                    3
                    
            votes
                
                1 answer
            
        How to apply a conditional to an E2E Test in CodeceptJS and NightmareJS
What I need:
Have an E2E Test in CodeceptJS with Nightmare as Main Helper verify the existence of an element, and depending on the result, continue doing a series of actions or others.
Sample code:
class EventsHelper extends Helper {
 …
         
    
    
        German D. Schneck
        
- 45
- 1
- 5
                    3
                    
            votes
                
                2 answers
            
        Unresolved functions or methods using CodeceptJS in PhpStorm
I've just followed the CodeceptJS Quickstart and opened first_test.js in the PhpStorm IDE (equivalent to WebStorm, IntelliJ, etc.).
For all the built-in functions, I'm getting "Unresolved function or method …":
I also don't get any autocompletion…
         
    
    
        Yngve Høiseth
        
- 570
- 6
- 26
                    3
                    
            votes
                
                1 answer
            
        Installation problems with CodeceptJS on Ubuntu
I was settings up a new system to use CodeceptJS and have hit an issue.  I followed these notes, but just get an error when trying to run codeceptjs.  The error…
         
    
    
        AndyGaskell
        
- 542
- 6
- 20
                    3
                    
            votes
                
                3 answers
            
        I.click()-selector in CodeceptJS - how to find first button with specific innerHTML
I have various buttons and several buttons with the same name "Start". I need to click on the first found button with this name (innerHTML).
With jQuery this works with :
$('button:contains(Start):first').click()
How does it work with…
         
    
    
        Meteor Newbie
        
- 646
- 2
- 10
- 23
                    2
                    
            votes
                
                1 answer
            
        Why is my intellisense not working in VS Code for CodeceptJS using playwright?
I am trying to create a practice environment for CodeceptJS using TS and Playwright, but for some reason VSCodes intellisense refuses to show any suggestions. I can manually type the code and that is fine and works but I would like to get the…
         
    
    
        HermanCodes
        
- 99
- 6
                    2
                    
            votes
                
                0 answers
            
        Codeceptjs Error: "ERROR webdriver: Request failed with status 404 due to unknown command"
i got the error:
2022-07-31T14:09:08.666Z ERROR webdriver: Request failed with status 404 due to unknown command: The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped…
         
    
    
        Felipe Rossi
        
- 21
- 2
                    2
                    
            votes
                
                0 answers
            
        ESLint plugin CodecptJS Cannot read properties of undefined (reading 'property')
I get the following error while running the eslint command
PS C:\WORK\AutomationPlayground\codeceptjs-boilerplate-project> eslint "**/*.ts" --ignore-pattern node_modules/
Oops! Something went wrong! :(
ESLint: 8.15.0
TypeError: Cannot read…
         
    
    
        mismas
        
- 1,236
- 5
- 27
- 55
                    2
                    
            votes
                
                1 answer
            
        cannot read properties of undefined 'textContent'
I have a simple piece of code
describe('My First Puppeeteer Test', () => {
it('Should launch the browser', async function() {
        const browser = await puppeteer.launch({ headless: false})
        const page = await browser.newPage()
       …
         
    
    
        Ruslan Fazylyanov
        
- 21
- 5