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
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
  • 333
  • 1
  • 7
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
  • 1
  • 3
5
votes
1 answer

How to scroll to element with Selenium and Node.JS driving Firefox?

I'm trying to scroll to a link element on the page and click it. The following solution works for Chrome and IE, but not for Firefox. How could I fix this? Is there any other approach to it? function clickByLinkTextScroll(text){ …
5
votes
2 answers

How can I tell webdriver-io to use firefox developer edition?

How can I tell webdriver-io to use firefox developer edition instead of normal firefox? I need to use CSS4 selectors which normal firefox does not support. I read the documentation but I can not find the option.
user6101582
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,998
  • 1
  • 21
  • 36
5
votes
1 answer

Are elements guaranteed to return in the order they appear in DOM?

I'm using WebdriverIO to drive my Selenium server, but I was curious if there is a guarantee in the Selenium spec, or in the CSS spec that guarantees elements are returned in the order they are found appearing on the page. For instance:
Breedly
  • 12,838
  • 13
  • 59
  • 83
4
votes
1 answer

How to hide a webpage element from a webdriver browser.url call

Our webdriver test needs to hide an element that is getting recorded multiple times in screenshots as the browser scrolls down the page. It is a floating element. I have: it('should save Food blog page screenshotsscreenshots', async () => { …
Steve
  • 2,066
  • 13
  • 60
  • 115
4
votes
1 answer

Cannot Use Import Statement Outside Module, Typescript, WebdriverIO

Thanks in advance for the help. This question appears to have been asked and answered elsewhere, but I believe I've tried all those solutions and have failed to make real progress. I am trying to create a custom reporter for webdriverIO. However…
Driver
  • 317
  • 1
  • 4
  • 18
4
votes
1 answer

WebdriverIO: Retrieving browser logging

According to WebdriverIO-Dokumentation I can integrate the output of browser console logging into webdriverio-logging. My call is then browser.getLogs('browser'). However, only log messages issued with console.warn() are retrieved. All console.log()…
Ewgenij Sokolovski
  • 897
  • 1
  • 12
  • 31
4
votes
2 answers

Format Date to MM/DD/YYYY Using toLocaleString

In JS, how can I get the date to format to MM/DD/YYYY? new Date(Date.now() + (8 * 86400000)).toLocaleString().split(',')[0]) returns "12/1/2020" How can I format it to "12/01/2020"? fromDate: (new Date(Date.now() + (1 *…
Bhoomiputra
  • 71
  • 1
  • 1
  • 10
4
votes
1 answer

IntelliJ IDEA 2020 support for webdriverio selectors

I have this kind of code: get alcoholLink() { return $('a=Alcohol'); } which is valid webriverio selector for getting an element with text 'Alcohol'. But IntelliJ IDEA underlines it red and displays "unexpected token" error. Does anybody…
mismas
  • 1,236
  • 5
  • 27
  • 55
4
votes
0 answers

":@wdio/cli:launcher: No specs found to run, exiting with failure" error encountered when running wdio on pre push hook

Summary: When I run the wdio.conf.js on the terminal, I am able to run the test but as soon as I run it as part of the git pre-push hook, it then gets the error. Background: We keep a separate folder containing the custom git hooks and use npm…
Geloloboy
  • 41
  • 1
  • 2
4
votes
1 answer

Extending built-in types in Typescript

I have the following structure: project |- types |- global.d.ts |- string.d.ts |- wdio.d.ts |- src |- Models |- Resources |- Components |- Extensions |- string.ts |- ... |- tsconfig.json |- wdio.conf.js I…
4
votes
3 answers

WhatsApp without QR code scanning everytime through Selenium WebDriver

Is there any whatsapp or webdriver API to access WhatsApp web without scanning QR code everytime while accessing it using selenium and chrome webdriver in python?