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.

1276 questions
5
votes
2 answers

WDIO Automation. Spec symbols are missed in set text after update chrome browser

After update chrome browser to the Version 62.0.3202.75 (Official Build) (64-bit) spec symbols are missed in set text and browser settings page is opening unexpectedly on enter spec symbol or capital letter. Tests are based on WDIO…
Oksana
  • 51
  • 4
5
votes
0 answers

An unknown server-side error occurred while processing the command in Safari.

Having this error while trying to set the value of the textbox to blank in Safari 10.1. Using WebdriverIO: 4.6.2 Scenario: Got a text already in the textbox. Have to make that textbox blank to reset the search. Code…
T Gurung
  • 323
  • 1
  • 7
5
votes
1 answer

Avoid re-entering user/email and password with WebDriverIO in login form

I want to optimize my WebdriverIO tests. I'm trying to avoid to re-entering the username & password when I run a test suite with WebdriverIO. (Chromedriver) The following two files are part of one module, and there are 4 modules in total. First…
5
votes
0 answers

Webdriverio issue when compressed with webpack

for some reason, when I am trying to compress with webpack, my webdriverio can't find the /protocol and /command directories. It is giving me this error: Uncaught Error: ENOENT: no such file or directory, scandir '/protocol' at…
dom
  • 321
  • 2
  • 12
5
votes
2 answers

How to change browser language of webdriverio

I would like to change browser language. but it is not working. default browser language is displayed.. capabilities: [{ browserName: 'chrome', chromeOptions: { args: ['--lang=ja'] } }],
Tomo
  • 51
  • 3
5
votes
1 answer

Selenium & webdriver.io how to use executeScript?

I'm trying to test a simple form using Selenium, WebDriver.io & Node.js (with Mocha). So I have something like this: var webdriverio = require('webdriverio'); var expect = require('expect'); describe('Test form', function(){ …
5
votes
2 answers

Webdriver.io crashes with NoSessionIdError

I'm trying to get webdriver.io and Jasmine working. Following their example, my script is at test/specs/first/test2.js (in accordance with the configuration) and contains: var webdriverio = require('webdriverio'); describe('my webdriverio tests',…
Travis
  • 1,889
  • 1
  • 21
  • 34
4
votes
0 answers

How to pass WebdriverIO's browser object to SeleniumWebDriverHarnessEnvironment for harness loader(@angular/cdk/testing)

I have just started using the WebdriverIO since Protractor is getting deprecated. Previously we have used Angular's Component Harness for our tests. When we tried to migrate the existing tests, we found the Angular team implemented…
Sathish
  • 308
  • 2
  • 19
4
votes
2 answers

WebdriverIO How to DISABLE "Save Password" popup in Chrome 84?

I'm desperate to find this solution because it seems nothing on the web is working atm. My WDIO dependencies "@wdio/browserstack-service": "^6.1.15", "@wdio/cli": "^6.3.4", "@wdio/cucumber-framework": "^6.3.0", "@wdio/devtools-service":…
Vespid
  • 43
  • 4
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
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
  • 789
  • 1
  • 11
  • 24
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
  • 1,996
  • 18
  • 41
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
  • 784
  • 1
  • 11
  • 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");…
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 =…
1 2
3
85 86