Newest 'codeceptjs' Questions - Stack Overflow

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.

0
votes
1answer
9 views

Cannot get a valid selector to implement I.click()

I am trying to click a button that has these details when I F12 <a data-codecept="searchGo" id="9" class="a-button a-button--white clearfix block showall" suggestrow"="" alt="/s/lundhags/?...
0
votes
0answers
10 views

Resemble helper does not output the mismatch percentage

I installed the resemble package required by CodeceptJS. When running the test it does not output the mismatch percentage and does not save the comparison image in the diff folder specified. It only ...
2
votes
1answer
34 views

Codeceptjs/Puppeteer test fails ONLY on Jenkins: “Node is either not visible or not an HTMLElement”

I have a Codeceptjs/Puppeteer test that runs locally on containers orchestrated by Kubernetes and using data coming from AWS. Example code ... I.waitForVisible('#Brandamazon + div', 30); I....
0
votes
1answer
23 views

selector for a href with specific url

How would you select an a href element with specific url? This is my element: <a href="/test/issues/new" class="btn btn-primary float-right" role="button" data-hotkey="c" data-skip-pjax=""> ...
0
votes
0answers
27 views

How to use the puppeteer js authenticate function from the codecept js?

I am trying to write some tests using codeceptJs. But i am not able pass the authentication for my test application. So how can i mimic the same operation in codeceptJS? In straight puppeteer code, ...
0
votes
0answers
15 views

Unknown error while running tests in Safari

I am running my test on multiple browsers using codeceptjs. It runs fine on Chrome and Firefox. It fails on click command with 'unknown error' while running on Safari. Safari Version: 12.1.1 Any ...
0
votes
0answers
10 views

Automated integration testing with generated class names

I use react.js for the application and react-jss for styling. Because the css-classes are generated, I am not able to define certain instructions for integration testing with codeceptjs, like hover ...
0
votes
1answer
35 views

Gherkin test using table fails with error “Cannot read property 'bold' of undefined”

Using codeceptJs 2.1.1 with Gherkin 5.1.0 french test I'm trying to check all the fields are present in a form using a datable to provide fields name. Here is the Gherkin test: @tabletest Scnario: ...
0
votes
1answer
30 views

How do I compare the visual differences of an element on a page using CodeceptJS?

I have just started to use CodeceptJS and I'm having some trouble getting the seeVisualDiffForElement command working. This is my test code so far: Feature('MyTest'); Scenario('Creating base images ...
-1
votes
1answer
50 views

How to access vuetify-component with codeceptjs

I'd like to write some tests witch codecept.js but I'm not able to access the vuetify components. <v-layout> <v-flex xs7> <v-text-field ref="video1min" ...
0
votes
0answers
46 views

Why does webdriver think a string literal is an object in this example?

I'm trying to send a codeceptjs I.fillField() function to login field in an android native app. For some reason webdriver is confused by either, a string literal email name or a object that it just ...
1
vote
1answer
25 views

When to use global/local CodeceptJS installation?

I'm new to CodeceptJs and have a question regarding its installation. I see 2 kinds of installation: local (npm install --save-dev codeceptjs) global ([sudo] npm install -g codeceptjs webdriverio) ...
0
votes
1answer
20 views

Codeceptjs “sendGetRequest” doesn't accept any parameterisation for filter options

Within Codeceptjs I'm running an API test using I.sendGetRequest method. await I.sendGetRequest('api/search'); However I need to be able to pass in parameters in order to have a good request 200 ...
0
votes
1answer
32 views

Need an auto-complete plugin for codeceptjs

I am very new to Codeceptjs. I'm using Visual Studio Code to write some sample tests. It will really help me if I could have something like an auto-complete for the methods so when I typed for ...
0
votes
1answer
57 views

PageObject passing in Stepfiles in CodeceptJS

I'm new to CodeceptJS and I need your help in understanding how to use BDD with CodeceptJS Can we pass PageObjects in Step Definition file? I'm able to pass it perfectly as shown below: Scenario....
1
vote
2answers
74 views

How to link feature files with step definition in CodeceptJS?

I'm trying to implement the BDD framework in CodeceptJS using PHPStorm as my IDE. But for some reason it is not recognising the step definitions and in the feature file it shows the error Undefined ...
0
votes
0answers
73 views

session not created , unhandled inspector error

I am trying to connect to my set top box via chromedriver.exe (chromedriver=72.0.3626.69) from my laptop but I am unable to do so. My set top box has chromium and webdriver enabled. We used to run ...
-1
votes
1answer
48 views

Why is this async function turning parameters passed to it, into Promise objects?

async scrape(locator) { console.log("Locator passed in is" + locator); } Why is the console log showing [object Object] as the output of the parameter? Shouldn't it return a value of whatever ...
0
votes
1answer
41 views

codeception ElementNotVisibleException

I am using selenium and Chrome Driver to run codeception acceptance tests. However, my test script can't click an button on the website, it is shown this error message on my command prompt: [Facebook\...
0
votes
1answer
106 views

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: ...
0
votes
2answers
41 views

CodeceptJS locator.stringify is not a function error while running codecept with Appium

I have a very simple script where I am trying to fill a username field in a website using "fillField" in Appium but I get this error "locator.stringify is not a function". I am not able to figure out ...
0
votes
1answer
60 views

How to set up chromium start options in codecept.conf.js?

In my case I need emulate camera to use it on chromium. I already tried command like this: chrome.exe --use-fake-ui-for-media-stream --disable-web-security --use-fake-device-for-media-stream --use-...
0
votes
0answers
45 views

Multiple cucumber html reporter with CodeceptJS

I want to use multiple cucumber html reporter ("https://www.npmjs.com/package/multiple-cucumber-html-reporter") with CodeceptJS. I'm writing my tests in BDD which codeceptjs supports but the report (...
-1
votes
1answer
42 views

Rest helper codeceptjs and docker

I am running REST Helper of Codeceptjs and Docker for API Testing but when I run it, it only show all passed and execution time is always 0ms Output: PS D:\work\testtt> docker-compose run --rm ...
1
vote
0answers
39 views

CodeceptJS: Semantical check for assigned tags

we are currently trying to implement codeceptjs e2e test suites for our application. We are using some tags at the tests to identify tests which should only run under specific circumstances (for ...
-1
votes
1answer
61 views

How debug and use grabAttributeFrom in codeceptjs?

In my case all identifiers in a page is generated dynamically. So I can't use xpath. I've found method in the documentation: grabAttributeFrom. How I can see what's inside, when I using cmd in --...
0
votes
0answers
17 views

Run local server on codecept-nightmare in Angular Project

We want to implement some basic E2E tests in our Angular 7 application with codeceptJS Nightmare. The tests should be part of the CI pipeline. I followed the docs and set up a basicTest.e2e.js: ...
0
votes
0answers
31 views

Add argument for codeceptjs to npm command

In my package.json the scripts currently currently looks like: "scripts": { "test:e2e": "codeceptjs run" } so it's possible to run it with npm run test:e2e But now, I'd like to run something ...
0
votes
0answers
49 views

Why steps_file.js does not implement I object?

When i run test i see this error: Object of type login is not defined in container Steps file set in the include option. How can i fix this? 1_test.js Feature('rer'); Scenario('test something', ...
0
votes
1answer
30 views

What format should I use for payload and headers in my chai REST-API test?

I am setting up REST-API test within my codecept testing framework which uses integrated Chai. After checking the very basic documentation on the subject in CodeceptJS documentation I can't seem to ...
0
votes
0answers
32 views

How to run unit test for Protractor Helper of CodeceptJS?

I cloned CodeceptJS code then followed Contributing to run the unit test for Protractor Helper of CodeceptJS: git clone https://github.com/Codeception/CodeceptJS.git cd CodeceptJS npm i npm i -g ...
0
votes
0answers
31 views

Obtaining Info of HTTP Request Triggered by CodeceptJS E2E Test

I'm running some scenario based end to end tests on my site using codeceptjs - for example: user visits site user fills in login form user submits login details and awaits for response Next, I ...
-1
votes
1answer
63 views

How to use Codecept with Puppeteer package on PhpStorm

I'm new to both PhpStorm and codecept. I need to test a website using Codecept with Puppeteer package on PhpStorm. Could you please guide??
0
votes
1answer
106 views

Allure report does not display categories [codeceptjs]

I am trying to categorize by the failed test result in various categories using the categories.json file. I am using following JSON file: [ { "name": "Ignored tests", "...
0
votes
1answer
54 views

Can codecept see elements in RSS feeds (XML)?

I have an RSS feed which should have only 1 'item' in it. I know that I can do I.see() to check that any number exists; but is it possible to check if exactly 1 exists? I know for elements (in html) ...
0
votes
2answers
311 views

Codeceptjs: Allure report doesnot show all steps in “Test body” section

I am trying to generate an allure report for my suite. I am getting the report but the report does not display all the steps in the Test body section. It only displays a screenshot of the failed test ...
0
votes
1answer
90 views

correct way to fire out a fail result in page reponse event listener in codeceptJS

I wrote a helper methods to add a network response listener over Puppeteer page instance. the code looks like this let Helper = codecept_helper; class CheckHelper extends Helper { async ...
1
vote
2answers
181 views

Possibility to use devtools on chrome browser using CodeceptJS

I have to write tests for web application and also I have to use them on mobile chrome browser.It is any possibility to use chrome devtools and mobile device emulator during test? Thanks for help
0
votes
1answer
293 views

How to integrate Codeceptjs with Jenkins

Am using Puppeteer helper in creating my page object model end to end tests. I want to integrate my tests with Jenkins so I can schedule my run. Can you guys please help me with the steps?
0
votes
1answer
85 views

can see allure result in jenkins with codeceptjs

I am trying to see allure results on Jenkins. I am using from my jenkins codeceptjs run --plugins allure then on codeceptjs folder, the output generated. I downloaded allure 2.7 and try to set it. ...
0
votes
0answers
39 views

Recording phone/emulator screen in Appium

I am currently using Appium in CodeceptJS to automate tests in Android. Does anyone know how to invoke the recording of the phone/emulator screen while the test is running and stops after, well, the ...
0
votes
1answer
83 views

Is expected that tests that works on chrome, fails on firefox?

I have a test that pass on chrome, but fails on firefox. Here the test: Scenario.only('Test', (I) => { I.see('token') I.click('.fa-edit') I.wait(1) I.fillField('input....
0
votes
1answer
75 views

unable to run allure on codeceptjs

I am trying to run codeceptjs run --plugins allure but getting an error error: unknown option `--plugins' I added the plugins to codecept.json with enable true, did all what written on ...
0
votes
0answers
98 views

How to run cucumber features files in parallel in codeceptJs

Is there a way to configure Gherkin tag in Codecept JS to run features in parallel , it is not working using Multiple tag in codecept.json file "gherkin": { "features": "./features/*.feature", ...
0
votes
0answers
64 views

how to set the Include tag to refer multiple step files in codecept.json file

using BDD in codeceptjs the codecept.json file includes below gherkin tag: "gherkin": { "features": "./features/*.feature", "steps": [ "./step_definitions/steps.js" ] }, can it ...
0
votes
3answers
284 views

Using Custom Functions with “I” in Page Object and Custom Helper in CodeceptJS

Hi CodeceptJS Community, Is there a way to use custom defined functions (under steps_file.js) as I. customFunction() in page object files. Is there a way to use native codeceptjs functions (like I....
1
vote
2answers
171 views

Codeceptjs Headless tests with https do not work

When i run tests with https headless, the error below shows up bash Error: move target out of bounds: Failed to read the 'localStorage' property from 'Window': Access is denied for this document. ...
0
votes
0answers
43 views

Nothing happening when running script in codeceptjs

My script is, I.executeScript("let formFind = document.forms[2]; let trNb = formFind.elements.length; formFind.elements[trNb-1].click();"); Here, I want to select the last element of the form but ...
0
votes
0answers
98 views

How to switch to new window when using CodeceptJS

I am trying to create a test with CodeceptJS (using WebdriverIO helper) in which I first log in on site A and then open a new separate window, where I have to check that everything is good, but I don'...
0
votes
1answer
74 views

How to skip or ignore programmatically a suite in CodeceptJS

As the test suite grows I need to be able to run something in BeforeSuite() which will connect to external suite and skip the suite if an external resource is unavailable. Feature('External Server'); ...