Questions tagged [webdriver-io-v4]

Use tag only for questions particular to problems with version 4 of WebdriverIO. Always add the general [webdriver-io] tag to your question.

Use tag only for questions particular to problems with version 4 of WebdriverIO. Always add the general tag to your question.

34 questions
7
votes
1 answer

Webdriverio Error on Window10 basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") ^^^^^^^ SyntaxError: missing ) after argument list

When i try to run npm run then i got below error I am using below configuration : webdriverio v4.14.4 node v8.5 npm v5.3 Windows 10 below is my config file "scripts":{ "web": "node node_modules/.bin/wdio…
5
votes
0 answers

Browser is crashing in CI after updating chrome to 100. I see error ERR_INSUFFICIENT_RESOURCES in the browser log. We are using webdriverIO v6

Browser is crashing while running tests in CI after updating chrome to 100. I see error ERR_INSUFFICIENT_RESOURCES in the browser wdio log. We are using webdriverIO v6 and docker. Selenoid to run tests inside docker container. Tests run fine if run…
Nemo
  • 51
  • 2
4
votes
3 answers

ReferenceError: $ is not defined (WebdriverIO)

I'm launching native apps with the help of WebdriverIO and mocha, but unable to communicate with the device, but able to launch the application but not interact with the element. android_app_test.js const webdriverio = require('webdriverio'); const…
2
votes
0 answers

How to convert WebDriverIO test project into a self executable file

I have a automation test suite developed in WebDriverIO Javascript. I would like to know if we have an option to convert it into an executable file, so that any one can trigger the test run by double clicking the file. Any thoughts?
AK_sat
  • 91
  • 1
  • 1
  • 4
2
votes
1 answer

close a specific tab in browser window using web driver io

browser.close(window handle) - i tried this but its closing the entire window. How to close a specific tab from a browser window which has multiple tabs using web-driver io. I am working on chromedriver.
2
votes
2 answers

How can I access localStorage of Cordova App via WebdriverIO and Appium?

I'm currently trying to write some automated tests for our cordova app written in Angular. My current setup is the following: Versions: appium: 1.7.2 wdio-appium-service: 0.2.3 webdriverio: 4.11.0 wdio.conf.js exports.config = { port: 4723, …
Justin H.
  • 103
  • 1
  • 9
1
vote
0 answers

While running webdriver IO codes returning Object Promises

get verifyText(){ return $(".uU7dJb"); } async loadText(){ var Elem; Elem = (await this.verifyText).getText(); console.log(" " +Elem); } **running above code not returning Element text instead it returning " [object…
LSGanesha
  • 11
  • 1
1
vote
3 answers

How to set environment variable to run webdriverIO script

I am running my webdriverIO test cases using command npx wdio run .\wdio.conf.js --spec .\test\intel.test.js Now I want to pass environment variable for the same like ENV=qa If I run command like this ENV=qa npx wdio run .\wdio.conf.js --spec…
Hariprasad KS
  • 11
  • 1
  • 2
1
vote
1 answer

Is there a way to return the worker number in concurrent browser executions?

Each time I execute console.log(text); it is appended in the console with two digits separated by a dash. [n-n] When running concurrent browsers, the 2nd number indicates the browser - or worker - number. Below is output from five concurrent…
1
vote
0 answers

Not able to calculate the performance metrics in webdriverio devtools

We are using WebdriverIO for calculating a performance metrics for our portal, but while calling browser.getMetrics() throwing following error: LHError: NO_TTI_CPU_IDLE_PERIOD at Function.findOverlappingQuietPeriods (C:\Users\sdas\OneDrive - ALLEGIS…
1
vote
2 answers

How to handle Iframe content using webdriverIO js and mocha

I want to be able to click on Agree button to give my consent for cookies on a website, I know how to do this in selenium webdriver, however, I have no idea on how to do this using js and mocha as I am trying to learn any help is appreciated. I…
1
vote
1 answer

webdriverIO - add junit reporter

I have an issue with adding the junit reporter to wdio.conf.js. Whenever I try to implement any reporter I'm getting following output and my test is failing: ERROR @wdio/local-runner: 2019-06-04T10:01:13.337Z ERROR @wdio/local-runner:…
Jaw. M.
  • 139
  • 2
  • 15
0
votes
0 answers

Proxy settings for webdriver-io is not working

I am using the proxy setting as mentioned in the webdriver-io configuration as below export const config = { // ... capabilities: [{ browserName: 'chrome', // ... proxy: { proxyType: "manual", …
Vijay Nag
  • 257
  • 2
  • 9
  • 21
0
votes
0 answers

is there any way to run 'Background' again?

Background: Login to Control Panel Given I Load Test Data in "am" for "invalidPostalCodeDetails" ..... .... Scenario Outline: Verify Error Massage For Invalid PostalCode Then I expect that the element "Edit Contact Info" is displayed …
Muttu
  • 1
0
votes
0 answers

Confusing double wait time in WebdriverIO for findElement and isClickable

I'm using WebdriverIO for automation and I'm finding this weird behavior w.r.t waiting in dynamic wait calls. On the framework I have only set the following timeouts in wdio-conf waitforTimeout = 60000 connectionRetryTimeout = 120000 & timeout under…
Banjo
  • 91
  • 2
  • 9
1
2 3