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
2
votes
1 answer

Can't launch Chromium as executable doesn't exists if customized image is build from Dockerfile

FROM alpine:latest # Copy source to container RUN mkdir -p /usr/app # Copy source code COPY package.json /usr/app COPY package-lock.json /usr/app COPY . /usr/app # Set working directory WORKDIR /usr/app # Environment variables ENV BASE_URL="Local…
Chals
  • 21
  • 4
2
votes
0 answers

NPM Scripts: Pass one script command json output to another script command as argument value

I am trying to inject a json as an argument value within npm script, like this: (https://medium.com/typeforms-engineering-blog/codeceptjs-puppeteer-setting-up-multiple-configurations-32d95e65adf2) "scripts": { "example": "bash -c 'cat…
curiousTester
  • 121
  • 1
  • 12
2
votes
0 answers

Codeceptjs Error - Please make sure Selenium Server (ChromeDriver or PhantomJS) is running and accessible

CodeceptJS v3.0.5 Using test root "/Users/bhupendrarautela/extram" login -- ✖ "before all" hook: codeceptjs.beforeSuite for "test something" in 17ms Error: Can't connect to WebDriver. Error: Failed to create session. Unable to connect to…
2
votes
0 answers

How to access Selenium driver when coding with CodeceptJs

In order to debug an issue, I'd like to try some of the raw Selenium methods such as Actions or Javascript executor to access my elements, but as I'm behind the CodeceptJs framework, I'm not sure how I'd access the driver that these methods require,…
Francislainy Campos
  • 3,462
  • 4
  • 33
  • 81
2
votes
1 answer

Manage error in custom step for autologin in CodeceptJS

I'm using autoLogin plugin in CodeceptJS project with Puppeteer as testing lib. This is my first project with CodeceptJS, the autoLogin workflow is working fine, but I'm not using the application pages (UI) to login or check the current token, I'm…
Roberto
  • 8,586
  • 3
  • 42
  • 53
2
votes
1 answer

How return value from the function-CodeceptJS

I need to get a value from excel file when status column value is “Y” and I wanted to return the value from Name Column to the calling function and excel sheet contains the data is as follows Name Number status YYYY 1234 N XXXXX 3456 Y Function I…
Sudhakar
  • 21
  • 2
2
votes
1 answer

Not able to run my CodeceptJS testcases in headless chrome

I have CodeceptJS framework setup for my application & tests are runnning smooth. But now I want them to run headless chrome. Tried few things mentioned on official site ,but its not working for me. I try to run my tests with npx codeceptjs run…
2
votes
1 answer

How do I access WebdriverIO element methods in CodeceptJS helper?

I am using CodeceptJS along with WebDriverIO for writing E2E tests in my Angular App. My Angular app has some web components with shadow DOM. What I want is to get a reference to elements inside shadow roots and perform certain actions like click,…
2
votes
3 answers

CodeceptJs - Getting List of elements and checking attributes of elements

I'm QA Automation with 7+ years of experiance in C#+Nunit+Webdriver. Now I have to switch to CodeceptJS and can't find how to do some common actions using this framework. Please, help me with next questions: How can I get list of elements and get…
2
votes
1 answer

How to know how many elements are on a page using codeceptjs

In Codeceptjs, I don't find a way to count the number a certain element is present on the page. The I.assertNumber in the example is some kind of made up clause to hopefully express better what I am looking for. Scenario('test something', (I) => { …
Mike
  • 23
  • 4
2
votes
1 answer

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('#§Brand§amazon + div', 30); I.scrollTo('#§Brand§amazon + div', 30); // Jenkins stops…
gigiz
  • 56
  • 4
2
votes
2 answers

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", "matchedStatuses": ["skipped"] }, { "name":…
2
votes
1 answer

How to override functions in CodeceptJS

I want to do something every time I click an element. So when I call click I.click(locator); Instead of calling webdriver click function, I want it to call my override which I've added to steps_file.js click(locator){ // do something first …
Dingredient
  • 2,191
  • 22
  • 47
2
votes
2 answers

How to add images to mochawesome report using Codeceptjs?

I'm doing E2E Tests on my own and I found really useful node libraries such as CodeceptJS, WebdriverIO and mocha (mochawesome). Mochawesome permit to add images in the report but in the way that is explained in its docs with addContext…
Mitro
  • 1,230
  • 8
  • 32
  • 61
2
votes
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
  • 331
  • 4
  • 13
1
2
3
16 17