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

CodeceptJS: Launch a page with dynamic query string

I have a page which needs to be launched with a query string that's generated after a sendPostRequest call. async goToPage(){ const pageId= await I.sendPostRequest(url); I.amOnPage(/details?id=${pageId}); } I am calling this method in my…
0
votes
1 answer

How to use { grep: process.env.profile} in codecept.conf.js in codeceptjs

I want to use { grep: process.env.profile} in my codecept.conf.js and then e.g. Scenario(...).tag("dev") (or the same for Feature(...)). So if I run test with --profile dev , the above scenario will be executed. And it will be skipped for --profile…
Bhupendra Singh Rautela
  • 3,406
  • 6
  • 21
  • 25
0
votes
1 answer

Is it possible to launch Chrome Browser with CodeceptJS + PlayWright or CodeceptJS + Puppeteer

I am able to launch the Chrome browser using Playwright-core and puppeteer-core, But Want to use codeceptjs with Playwright. Can we user Playwright-core or puppeteer-core with CodeceptJS ?
0
votes
1 answer

Integrate CodeceptJS with Azure DevOps

I want to update the test results of my CodeceptJS scripts in Azure DevOps. I have each test script created for corresponding test case in DevOps. Now I wan the test results to be updated directly in Azure whenever I run the script. Can someone…
0
votes
1 answer

Unable to launch Chromium edge browser using codeceptjs

I'm trying to launch Chromium edge browser using codeceptjs framework. I'm new to codeceptjs. My scripts are running fine with Chrome and Firefox browsers but, getting following error with Chromium edge. Error: Can't connect to WebDriver. Error:…
0
votes
2 answers

How to automate acrobat reader popup in browser? (Using javascript, nodejs, codeceptjs in the project)

I need to automate click of the OK button (OR press enter key) in the acrobat reader popup which appears in browser after clicking on the button to open pdf file. So it gives you options to open in browser, open in acrobat reader or download. I need…
0
votes
2 answers

CodeceptJS/Puppeteer only sees elements during paused sessions

I'm having a very frustrating problem with testing a React app using CodeceptJS and puppeteer - it only finds elements with a custom locator only when in paused mode. My custom locator is data-test-id. I'm targeting elements using…
Boyan Kmetov
  • 11
  • 1
  • 2
0
votes
1 answer

Test Doesn't Continue Runing After Calling a function from a page object into another page object - Codeceptjs

The login function is passed successfully, but the test run end directly after it, and doesn't continue to the other code line in entryPre function -i tried with other simple functions with console.log() and it passes successfully- I have in an…
anasz3z3
  • 13
  • 1
  • 6
0
votes
1 answer

"run-multiple" command seem that it ignores "emulate" and all other options

I'm using "codeceptjs (3.0.2)" with the playwright helpers (1.4.2; if I run the command: codeceptjs run-multiple basic with this configuration: multiple: { basic: { chunks: process.env.THREADS || 30, browsers: [ { …
user2354037
  • 195
  • 2
  • 8
0
votes
2 answers

ChromeDriver mismatch with Chrome version - unable to get latest version with node module "@wdio/selenium-standalone-service"

In my codeceptjs setup, I updated @wdio/selenium-standalone-service to latest version 6.9.0 This seem to install chromedriver version version: '85.0.4183.87' Now that chrome browser version upgraded to 87.0.4280.66, tests that worked fine earlier…
0
votes
1 answer

Failed to create session. Chrome failed to start: crashed. DevToolsActivePort file doesn't exist for CodeceptJs and Dockerfile

I'm super new to both Docker and CodeceptJs coming from a Selenium/Java background and am trying to run our CodeceptJs tests from within a docker container. However, we get this error and not sure how to bypass it please. I tried to initiate the…
0
votes
0 answers

How to locate and type into SimpleMde RichText editor with CodeceptJs

I am trying to type into a RichText editor using CodeceptJs and Selenium but so far the only way I'm able to do this is by clicking the previous input field on the page and tabbing from it to the RichText editor and once there I then add my text…
Francislainy Campos
  • 3,462
  • 4
  • 33
  • 81
0
votes
1 answer

CodeceptJs : element not found with certains characters

I'm using CodeceptsJs 2.0.4 and Gherkin 5.1.0 to test my app. I have an issue with an xpath expression. When searched text contains " :" or " ?" characters, the CodeceptJs function waitForElement doesn't find the element. For example, I'm looking…
sheder
  • 3
  • 1
0
votes
1 answer

Create new json from source json file in test project

UPDATE I have continued to work through this and have the following code - st async generatejobs() { const fs = require("fs"); const path = require("path"); const directoryPath = path.join(__dirname, "../data/pjo/in"); …
bboursaw73
  • 1,128
  • 2
  • 13
  • 26
0
votes
1 answer

Using `within` in custom helpers

I'm using CodeceptJS and I'm trying to write a custom helper that asserts an text and clicks "OK". This dialog pops up as a iframe modal to consent with cookies. If I write following steps in my scenario I.amOnPage('/some-path'); within({frame:…
Miksu
  • 1
  • 1