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.

191 questions
1
vote
1 answer

CodeceptJS Multiremote not working with WebdriverIO helper

I'm trying to automate test cases for a websocket based chat app and the Multiremote function of Codeceptjs with the WebdriverIO helper, called my attention. However, I'm struggling to make it work. I would like to set my codecept.js config file and…
fndg87
  • 168
  • 1
  • 12
1
vote
1 answer

Codeceptjs selectors: How to select the "email" input field?

I really need help with the syntax. I have the input field:
Simon
  • 71
  • 1
  • 9
1
vote
1 answer

Codeceptjs with Nightmare doesn't output result of test

Basically, I did everything as described in get started section on http://codecept.io/ page. devDependencies from package.json: "codeceptjs": "^0.5.1", "nightmare": "^2.10.0", "nightmare-upload": "^0.1.1" codecept.json: { "tests":…
Pavlo Kozlov
  • 627
  • 4
  • 19
1
vote
1 answer

Why isn't CodeceptJS executing the steps in my test? And why can I not see the test being executed?

I've recently come across CodeceptJS and I thought of giving it a try. I was following the tutorial on the CodeceptJS's QuickStart page but now I'm facing two issues: The test seems to execute only the first step I don't see the execution of the…
Rusty Wizard
  • 411
  • 6
  • 17
1
vote
1 answer

Using codeceptJS with PhpStorm

I'm just starting with codeceptJS and I'd like the PhpStorm editor to recognize the code correctly. I have tried telling the editor to Use JavaScript Library with Node.js Core and Globals. I've searched plugins for one that would help and the web.…
Tim Duncklee
  • 1,352
  • 17
  • 31
0
votes
0 answers

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…
HillHacker
  • 2,902
  • 6
  • 15
  • 23
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
0 answers

How to get current worker's id?

In CodeceptJS, you can run parallel tests with run-workers. I want to do some specific actions and to do that, I need to get the current worker's id. I think it's possible because it display in execution log, but I don't understand how to get it. I…
Kurolounet
  • 51
  • 5
0
votes
0 answers

Method in Codeceptjs: if element not visible -> swipe down

Is any methods available in CodeceptJS for case: tap on element A, if element not visible - swipe down and tap on element A
qwerty
  • 1
  • 1
  • 9
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
1 answer

How can I locate a parent of an element know by child value using CodeceptJS

basically I have the following:
title 1
title 2
title 3
I want to locate…
0
votes
0 answers

How to close multi session tabs?

The multi session feature opens a new tab for each session. These tabs will remain after the session function has completed. Is it possible to close those session tabs and return to the first tab? Example: async login(id) { session(id, async _ =>…
Cani
  • 1,020
  • 10
  • 14
0
votes
0 answers

Calling helper from another helper: `this` is undefined

I've ran into an issue with calling helper from anotter helper. It might be my misunderstanding of concepts but i haven't found any answer over the docs. On my project i use helpers a lot. Some of them are quite simple and helps me with stuff like…