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

Appium - Codeceptjs - Gherkin, can not execute steps script and config failed

I've got some issues with codeceptjs appium. I run test script by npx codeceptjs run , it did not execute the step_definitions file. I config steps definition with /*steps.js and its not working, i have to direct exact path of steps file. The app…
0
votes
0 answers

Make sure the correct deployment target has been selected for its compilation in Xcode

I am using the following desiredCapabilities in my codeceptconf.js file. Appium: { // IOS local Simulator iPhone 13 app: "./ipa/arvApp.app", platform: "iOS", desiredCapabilities: { deviceName: "iPhone 13", …
0
votes
1 answer

try catch in Codeceptjs with playwright

This code, i am running in my page class I.fillField ("input[@class='test']", "name"); } catch(error){ console.log("Error is occured"); I.refreshPage(); } If script is unable to fill the text in textbox. instead of failing the case,.. it go to…
Meenu Garg
  • 93
  • 1
  • 6
0
votes
0 answers

codecept js CLI does not produce .ts files even after i select the typescript option

codecept js init does not produce .ts files even after i select the typescript option in the CLI. it is giving me files in .js. and when i change the file name it does not recognise functions such as click etc etc. Are there issues with the codecept…
0
votes
1 answer

How to run codecept scenarios in order?

I am using the following command to run test scenario. npx codeceptjs run --steps --grep "A1|X2|A3" I am looking for a way to run these tests in the same order given. For some reason, this is not guaranteed. Is there a flag that I can use to…
Kavin404
  • 959
  • 2
  • 11
  • 18
0
votes
1 answer

CodeceptJS - canvas manipulation

I am writing an E2E test for our application. On one page there is a canvas that is showing a PDF file. The test case is show this page, scroll to the bottom of the PDF and check if the button under the canvas is no longer disabled. Imagine a common…
0
votes
1 answer

How to type text without selecting an element in CodeceptJS?

Normally I use I.fillField(elementSelector, text) to fill the text into the field with elementSelector xpath or sth. I have a case where there is only one element (Appium shows no nested elements), that is really six squares one next to the other…
s3c
  • 1,481
  • 19
  • 28
0
votes
1 answer

codeceptjs react testing - Clickable element was not found by text|CSS|XPath

I have a project made with react and rest api(php+mysql).I have to put it through a codeceptjs test.The app is working properly with countless of manual testing, and as far as I can see, the codeceptjs test is working too, but it gives the following…
elemeNt
  • 41
  • 2
0
votes
1 answer

Codeceptjs: I got ERROR webdriver: Request failed with status 404 due to unknown command when trying to click to an mobile element

When I tried to click an element using Appium and Codeceptjs, I got the error below: 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…
0
votes
2 answers

How to organize codeception tests in subfolders, and have one codecept.conf.js pointing to the whole folder schema

I'm having issues, creating subfolders in my './acceptance_tests.js/*_tests.js' pathname within my codecept config. I.e. My codecept.conf.js looks like this: exports.config = { tests: './acceptance_tests/*_test.js', output: './output' .... I…
0
votes
1 answer

"before each" hook: codeceptjs error message

im using codeceptjs using protractor helper, and i tried to wtite simple code and to run this command"npm run codeceptjs" and i faced this error "× "before each" hook: codeceptjs.before for "test something" in 285ms" here is my code on this file…
lili99
  • 1
0
votes
0 answers

How can I get full HTML mochawesome report using codeceptjs running test in parallel mode?

I am using codeceptjs library in order to develop and run automated tests. Currently I'm in process of run those tests in paralell using NodeJS` workers. CodeceptJS proposes this opportunity and mention it in its documentation -…
Snow
  • 31
  • 1
  • 4
0
votes
2 answers

test something: selector needs to be typeof `string` or `function`

I want to write test on Visual Studio Code/Codeceptjs. My code is here in short : let amazonWebKeys=require('./amazonKeys/amazonwebkeys.json'); module.exports = function() { return actor({ buttons:{ acceptcookie : …
Ronin Roni
  • 1
  • 1
  • 1
0
votes
0 answers

How to detect if Google Maps iframe finished loading

If one has an Google Maps iFrame like https://www.google.com/maps/embed?... on a page a simple document.ready won't work as the iframe will only load its content if it is in the visible window portion. Thus scrolling the page to the bottom will init…
NextThursday
  • 2,352
  • 3
  • 15
  • 18
0
votes
0 answers

WebStorm test run CodeceptJS Appium

I want to run tests with WebStorm buttons for Feature/Scenario. It works with command line with npx run But when I run with WebStrom it looks like it can't understand where is codeceptjs Where should I add it?
Kyryl Zotov
  • 1,788
  • 5
  • 24
  • 44