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
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…
4
votes
0 answers

Getting error @wdio/cli:launcher with missing capabilities in Visual Studio Code WebdriverIO

When I am running debugger in Visual Studio Code, I get the following: ERROR @wdio/cli:launcher missing capabilities, exiting with failure
Ari N
  • 117
  • 1
  • 1
  • 13
4
votes
1 answer

Webdriverio using async/await - What is recommended?

I am running my functional tests using WebdriverIO. I can get the WebdriverIO tests to pass even without async/await. But I read some articles that async/await is the best way of coding javascript to handle promises. I am new to Javascript and…
user3920295
  • 889
  • 2
  • 13
  • 31
4
votes
3 answers

Spectron opens Empty terminals during test run

During execution spectron opens two terminal windows that are blank. First window is the application as I wanted it to be, other windows look like terminals without anything inside. Currently i focus to the first window using focus(). Github issue…
4
votes
0 answers

how to set value in datePicker in ionic 2 automation testing appium

I am working on ionic 2, for automation testing i have used appium and webdriver.io , i'm able to set value where input type is password or email, generally text input type. and setting value using…
gaurang
  • 2,217
  • 2
  • 22
  • 44
4
votes
3 answers

How to validate an element is gone using webdriverIO, Mocha and Chai

I'm working on some automated tests, using webdriverIO, Mocha and Chai. I keep running into the same problem when I want to verify if an element is deleted. I'm working with a shoppingbasket where i delete an item and then verify that it is gone. It…
Martijn
  • 240
  • 4
  • 22
4
votes
1 answer

WebdriverIO loop through element list

So I have a table of 250 of rows, and I want to just get all the values from one column and check if they meet the required criteria: const rows = browser.elements(selector..); const numbers = []; rows.value.forEach(cellData => { const…
Tomas Eglinskas
  • 845
  • 2
  • 12
  • 25
4
votes
3 answers

How do I get WebdriverIO autocomplete on VS Code

Is there a way I can get autocomplete on VS Code for webdriverio? Other code editors like Intellij provide something like Settings -> Preferences -> Languages & Frameworks -> JavaScript -> Libraries From there we can add a directory with webdriverio…
user3029086
  • 51
  • 1
  • 2
4
votes
1 answer

How to debug webdriverio in standalone mode?

http://webdriver.io/guide/getstarted/modes.html I'm going absolutely nuts trying to debug a webdriverio test using Chromedriver. You simply cannot step through the code because webdriverio commands are asynchronous and the browser session is out of…
I Love Python
  • 862
  • 2
  • 13
  • 20
4
votes
2 answers

having ts error when adding custom commands with addCommand (webdriverio)

I'm adding function with addCommand, and get the following error when i use it: [ts] Property 'WaitForElementsAmount' does not exist on type 'Client'. for example: browser.addCommand("test" , () => {console.log("test");…
Genady Mager
  • 61
  • 1
  • 7
4
votes
0 answers

It's possible to write api rest automated test using webdriverIO and chai-http?

I'm trying to use webdriverIO to make automatic test over an API rest without any result, also try with chai and chai-http using webdriverIO, but nothing yet. Any clue? This is something I wrote: var chai = require('chai'); var chaiHttp =…
4
votes
2 answers

WebDriver.io no console output

I am using the following stack to run several tests: NodeJs Selenium standalone geckodriver thought I use chrome webdriver.io mocha chai So after all my first_test.js is: describe ('Website url test ', () => { it('should have a title ', () => { …
apiMan
  • 89
  • 1
  • 4
4
votes
0 answers

Unable to trigger "mouseover" and "mouseout" events in IE11 in WebdriverIO

Injecting JavaScript snippet to trigger the "mouseover" and "mouseout" events. Works well with Chrome, Firefox and Safari (both locally and remotely). For IE11, I can verify that it works in console. But when trying to automate it, throws error:…
4
votes
2 answers

Generate HTML report for WebdriverIO/Cucumber framework

I am using WebdriverIO/Cucumber (wdio-cucumber-framework) for my test automation. I want to get the test execution result in a HTML file. As of now I am using Spec Reporter (wdio-spec-reporter). Which helps to print the results in console window.…
Thangakumar D
  • 714
  • 5
  • 12
  • 27
4
votes
1 answer

Video does not start with geckodriver

I'm working with automated tests and I'm trying to set up selenium grid for running tests in multiple environments. I've successfully ran tests with chrome driver in Mac OS X 10.11 and Windows10. Right now when I try to run a test feature, in a…
jlnabais
  • 829
  • 1
  • 6
  • 18