Questions tagged [codeceptjs]

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.

251 questions
0
votes
1 answer

inject is not defined - CodeceptJs and CucumberJs

It's my first time using CodeceptJs and I'm struggling to run my feature file as the IDE asks me to implement steps for my scenario but this is already done, so I feel it may be searching for them somewhere other than the specified under the…
Francislainy Campos
  • 3,462
  • 4
  • 33
  • 81
0
votes
1 answer

Can't select an option in a drop-down with dynamic values, with codeceptjs and javascript

This is my firts question and I don't speak English very well, but hope to can explain my problem. I spent some days looking for an answer in a similar question, but I didn't find it. I'm automatiziting test with javascript. I use codeceptjs. I have…
Chilina
  • 1
  • 1
0
votes
1 answer

Playwright + CodeceptJS - Unable to find element by Xpath

In my code I can usually find an element by Xpath and perform actions like shown below await I.fillField('//*[@id="edit-name"]','user1'); I am seeing the following error when I perform the following action. As the ID is dynamically created. Is…
Pubudu
  • 478
  • 1
  • 6
  • 22
0
votes
0 answers

How to improve time spent on end to end testing using codeceptjs?

we are using codeceptjs for e2e tests for my work. For every code submission, we run these tests (we use webpack-dev-server to mock the backend). In the beginning, the time spent to run these tests is acceptable. However after 1 year we have around…
Steven
  • 415
  • 1
  • 4
  • 12
0
votes
1 answer

How to check box in col1 based on text in col3 with Codeceptjs and Puppeteer

Fairly new to Codeceptjs and Puppeteer. Wondering if somebody could provide some insight as to best practices for working with, interacting with elements in tables? I have a table where the first column of each data row is a check box. I want to…
bboursaw73
  • 1,128
  • 2
  • 13
  • 26
0
votes
0 answers

Pass flags to ignore cross origin issue on codeceptjs

After chrome update all browser security my codeceptjs not working, I need to pass this flags in order that iw will work. I tried this but still have same issue desiredCapabilities: { chromeOptions: { args: ["--disable-web-security",…
0
votes
1 answer

EPERM error running tests nodejs / CodeceptJS

I have 4 simple logon scenarios in my feature and running them individually using the scenario.only option results in them succeeding 100% of the time. If I attempt to run all scenarios within the feature, at some point during execution, the…
bboursaw73
  • 1,128
  • 2
  • 13
  • 26
0
votes
1 answer

Codesept alert window testing in chrome headless mode

Codceptjs tests are failing if I have alert/confirm popup in the app, and running browser in headless mode. Did try await I.acceptPopup(); and this isn't working in headless mode. Would by highly appreciated for any suggestions
0
votes
1 answer

Puppeteer window not scrollable

I am writing test in CodeceptJS. My settings is: exports.config = { tests: './*_test.js', output: './output', helpers: { Puppeteer: { url: '', show: true, defaultView: null, userAgent:'Mozilla/5.0 (Macintosh;…
Aipo
  • 1,805
  • 3
  • 23
  • 48
0
votes
1 answer

codeceptjs tests 'before each' hook error fails to launch chrome. tests were working fine a week ago

I asked this question several months ago here but the solution was obviously not helpful because here I am again with the exact same problem. in that link I was told to change my image from node:latest to node:13. this no longer fixes the problem. I…
amnmustafa15
  • 121
  • 1
  • 14
0
votes
0 answers

CodeceptJS - pass --grep and --profile arguments via npm

I want to pass mutilple CLI arguments through npm to codeceptJS. E.g. we use tags for device specific tests and we have different test environments. I want to do: "e2e": "codeceptjs run --steps -c path/to/config.js --grep --profile" So I could pass…
Paul Redmond
  • 3,276
  • 4
  • 32
  • 52
0
votes
1 answer

I am facing a syntax related problem while setting codeceptjs using webdriver.io for my test automation

The problem is with the config file where I'm setting port to open up chrome. I am following 1) https://codecept.io/webdriver/#what-is-selenium-webdriver and ran a test using: npx codeceptjs run. const { setHeadlessWhen } =…
0
votes
0 answers

how to add Microsoft Edge browser on codecept.conf.js with protector

I'm trying to run a test on multiple browsers : Edge, Safari, chrome , firefox I'm using this configuration on codecept.conf.js with protector: Protractor: { driver: 'hosted', browser: 'miscrosoftEdge', rootElement: 'body', …
0
votes
1 answer

Cannot get I.swipeLeft() or I.swipeRight() working in CodeceptJS with Appium

I'm testing a native Android app and would like to be able to swipe left or swipe right on an element. I have read the documentation here: https://codecept.io/helpers/Appium.html#swiperight let locator =…
Scott Deagan
  • 331
  • 3
  • 8
0
votes
1 answer

gitlab/codeceptjs tests were working fine yesterday now they can't even start

months ago I made some tests on gitlab using codeceptjs/puppeteer. I was having 0 issues with the tests. this morning I woke up and every single test on every single app is failing before the apps even begin. none of the tests have been updated in…
amnmustafa15
  • 121
  • 1
  • 14