Questions tagged [webdriver-io]

WebdriverIO from webdriver.io is a JavaScript library for controlling browsers with Selenium server via the WebDriver API.

WebdriverIO is an independent implementation of the WebDriver Protocol which provides language bindings and APIs to automate browser or mobile devices. Its test runner allows you to write your tests in a synchronous way so you’re not constantly in the world of asynchronous coding. WebDriverIO integrates easily with a variety of cloud browser testing vendors (for example, Sauce Labs, BrowserStack and CrossBrowserTesting), so you can perform tests on a wide variety of OS/Device/Browser combinations, all from one test.

1803 questions
0
votes
1 answer

Choosing spec feature file in wdio at runtime

I want to run different feature files based and want to decide it at runtime, i.e via command line arguments. Everytime I uncomment the file and then run the test. Tried working with cucumber tags and did not get around it. specs: [ // …
Rakesh
  • 104
  • 1
  • 11
0
votes
0 answers

How to configure webdriver.io intellisense / autocomplete on VSCode

I am new to JS and trying to use VSCode for Webdriver.io programming. As per webdriver.io website, instructions are available there for setting up it on IntelliJ: But I was not able to find same for VSCode. Kindly advise. Thanks
user2451016
  • 1,857
  • 3
  • 20
  • 44
0
votes
2 answers

Webdriver.IO: How do I run a specific 'it' statement in Jasmine using WDIO

I am trying to pull out a smoke suite from my regression suite written using the Jasmine framework (wdio-jasmine-framework). Is it possible to just add a tag on specific testcases in Jasmine?
user3920295
  • 889
  • 2
  • 13
  • 31
0
votes
2 answers

How can I run webdriver-io outside of the test environment and still access the globals $ and $$?

I am new to webdriver-io. I want to write a shell script that I can run utilizing webdriver-io. I have my code successfully working, but only in the test directory and only with webdriver-cli. How can I turn this code into a shell script and still…
0
votes
1 answer

Download Scenario validation in openfin with webdriverio

I have a UI automation scenario, where I need to perform the export to excel operation and save the file from UI. This operation, I need to do in openfin browser. How can we set preferences in openfin browser so that it will automatically save…
QualityMatters
  • 895
  • 11
  • 31
0
votes
0 answers

WebdriverIO - How to check for browser notification

I am using WebdriverIO in the WebStorm IDE and I am testing a web application that requires Adobe Flash Player to be enabled in order to continue. I am trying to verify that a browser's notification displays (see below image). I am not looking to…
Brian
  • 135
  • 4
  • 16
0
votes
1 answer

webdriverio browser.executeAsync throws Error setting arguments in IE11

I am getting Error setting arguments for script error while trying to run browser.exectueAsync in IE 11 . the code I'm executing is const result = browser.executeAsync( (url, body, done) => { fetch(url, { method: 'POST', …
Mateen-Hussain
  • 718
  • 1
  • 13
  • 29
0
votes
0 answers

Certain methods not working when run - Webdriver IO, WebStorm, Mocha Chai Framework

I am building a testing project using Webdriver IO in the Mocha Chai Framework using the WebStorm IDE. Certain methods, including .getUrl(), .alertText(), and .keys() display as perfectly viable methods when written in the WebStorm IDE. The IDE…
Brian
  • 135
  • 4
  • 16
0
votes
2 answers

WebdriverIO: Unable to use .getAlertText() method "Unresolved function or method getAlertText()"

I am using WebStorm to write some automated tests. For one test, I must check if an alert prompts the user. To accomplish this, I want to use the .getAlertText(); method, however WebStorm does not recognize the method. It says "Unresolved…
Brian
  • 135
  • 4
  • 16
0
votes
1 answer

Appium - Unable to launch WebDriverAgent because of xcodebuild failure: Scripts/bootstrap.sh code 1

I am using webdriver.IO together with Appium to test an iOS hybrid App. I get the following error before each test when it tries to spin up the iOS App: Unable to launch WebDriverAgent because of xcodebuild failure: "Command 'Scripts/bootstrap.sh…
Gabe
  • 5,997
  • 5
  • 46
  • 92
0
votes
0 answers

Appium unable to start App on iPhone simulator

My goal is to run some end 2 end smoke tests against an hybrid App built with Cordova. I am using Appium (driven by WebDriver.IO) and I can successfully spin up in an emulator the Android App and run the tests against it. I can't though even start…
Gabe
  • 5,997
  • 5
  • 46
  • 92
0
votes
4 answers

How to rerun failed step/secnario of a feature file in cucumber using webdriverio

Please help on this. I am using the following cucumber opts: cucumberOpts: { backtrace: false, failAmbiguousDefinitions: true, failFast: false, ignoreUndefinedDefinitions: false, name: [], snippets: true, source: true, …
akhilesh qa
  • 21
  • 1
  • 2
0
votes
1 answer

How do I use two-finger zoom in Appium / webdriver-io

I'm new to mobile automation, but not new to automation in general (worked with web). I'm building an automation where a two-finger zoom is required. I've looked through documentation trying to find a solution, and can't find one. There is…
Porter Lyman
  • 343
  • 2
  • 10
0
votes
1 answer

Return epilogue after test executed in cloud

Hi I have a question about reporters output using browserstack. When I start to run test's in cloud reporter output stopped showing epilogue, can I return it somehow? using spec
0
votes
2 answers

Jenkins Junit Reporter unable to locate xml file?

System: Macbook Pro Currently I'm running Jenkins on my macbook pro but it seems that Jenkins Junit report post actions plugin is unable to locate my .xml reports, once my WebdriverIo framework has executed my test scripts. The report xml file is…
SamP
  • 417
  • 5
  • 24