Questions tagged [wdio]

121 questions
0
votes
0 answers

Cucumber step now not being found when using a choice of words in step

I have the following in a step "Given('I am logged in/as {string}')". This works and the test passes using either of the options in or as. It is however being flagged with the "Unable to find step for" error. Previously no error was being displayed…
TB14
  • 187
  • 1
  • 15
0
votes
1 answer

Allure report marking tests and test steps as passed but also indicating result is unknown?

My allure report is marking my test and all steps as passed but the arrow to expand the test steps in the report is marked purple which I understand indicates an unknown result (css classes indicate this). This only occurs for a few tests (most…
DublinDev
  • 2,318
  • 2
  • 8
  • 31
0
votes
1 answer

Allure Report commands don't work in bash

This is bizarre. If I run commands in powershell, it works fine, but if I run any allure commands in bash it throws the following errors: $ allure generate allure-results --clean C:\Users\MyName\AppData\Roaming\npm/node_modules/node/bin/node: line…
kev
  • 225
  • 1
  • 2
  • 9
0
votes
1 answer

WebdriverIO SevereServiceErrror not stopping the test run

I have setup a custom wdio service (as per the documentation) which is used to create a build for the Angles automation dashboard. As part of this service I want to use the SevereServiceError when it is unable to create the build and stop the run.…
sergionb
  • 1
  • 1
0
votes
0 answers

How can I suppress the warning logs displayed on the Editor console?

I'm able to find the error logs displayed on Test execution which become difficult to read the output printed in the console. I am attaching my package.json file and wdio.conf.js file here beneath. Please look into this and help me with a solution…
Prem
  • 13
  • 4
0
votes
1 answer

Expect an array to contain a string using webdriver.io

How can I write my test so that it expects my array to contain a specific string? I've tried what I have below and some other methods such as using array.includes but can't get it to work properly. let value = "test4"; let dropdownValues = ["test1",…
YabbaDabbaDoo
  • 21
  • 1
  • 10
0
votes
2 answers

Unable to click intercepted element in wdio 7

I'm using wdio 7 last couple of weeks. but still unable to resolve intercepted element. In protractor, I'm using browser.actions(). click($(".pay-modal-container i[class='webfont-date_range']")). …
Make
  • 49
  • 1
  • 1
  • 6
0
votes
1 answer

WebdriverIO: couldn't find executable for firefox browser using default runner (devtools:puppeteer)

I'm using webdriverIO for some automation testing and have recently migrated from 'selenium-standalone' service to default wdio devtools protocol. wdio v.7.16.12 firefox v.95.0.2 From that point I can't start testing with firefox browser: INFO…
antiq
  • 11
  • 5
0
votes
1 answer

Overriding function "it" in WDIO

I want to override a function "it". I can do it? old_it = it it = (name, foo) -> console.log('111') old_it(name, foo) console.log('222') When I run this code, a message is output to the console that "it = undefined"
Paganini
  • 178
  • 2
  • 12
0
votes
0 answers

How to declare global variables in wdio.conf.js file and use into test files?? e.g UserName, Password, DOB, Contact etc

I want to use global variables declared in wdio.conf.js file into my test files. in below test I am using UserName, Password, PageTile. I want to use them via wdio.conf.js file globaly?? describe('My Store|Automationpractice.com', () =>…
0
votes
1 answer

devtools: no browser pages found at WDIO REPL Chrome

After starting wdio repl chrome, getting following endless looping with no browser pages found, retrying... and The chrome tab is open but not operational, it means you can not call a url etc. Calling devtool is not possible. Chrome version…
0
votes
0 answers

Node Mocha & supertest-with-proxy: Error: ECONNREFUSED: Connection refused

I am trying to test APIs as below using supertest-with-proxy. They are all all failing because of Error: ECONNREFUSED: Connection refused. Test1: import supertest from "supertest-with-proxy"; import { expect } from "chai"; var config =…
Mahima
  • 43
  • 5
0
votes
1 answer

webdriver.io getting started - Error while creating session with the driver service

I tried default install configs via npx wdio config with as service selenium-standalone and after that didn't work, chromedriver as service. These are the commands I'm running. npm init -y npm install @wdio/cli -y npx wdio config npx wdio run…
progonkpa
  • 3,590
  • 9
  • 31
  • 50
-1
votes
0 answers

How can I install plugin "chromedriver" for wdio.conf?

After running npx wdio command I got the next error: `"Error in "undefined" Error: Failed to initilialise launcher service unknown: Error: Couldn't find plugin "chromedriver" service, neither as wdio scoped package "@wdio/chromedriver-service" nor…
-1
votes
1 answer

not able to assert element value webdriverIO

I am trying to assert one element value by using the following code: async user_verify_loan_term() { await chaiExpect(element.getAttribute("value")==="3") } The assertion is not working. The expected value should be 30; but the test passes.…
Devesh Joshi
  • 9
  • 1
  • 5
1 2 3
8
9