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
6
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(){ …
6
votes
1 answer

How to simulate ctrl-click or shift-click with webdriver.io?

With webdriver.io I would like to simulate clicks with a modifier like shift or ctrl. The keys() method seems to do something like that but it's not clear to me how to release a modifier key again and it throws an error when I use 16 (key code for…
Sandro
  • 1,757
  • 1
  • 19
  • 29
5
votes
1 answer

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

Error: The "from" argument must be of type string. Received undefined

I am using webdriverIO v7 (latest stable version) and cucumber. I get that error: Error: The "from" argument must be of type string. Received undefined This is the stack trace: 2021-04-08T18:29:37.403Z ERROR @wdio/runner: TypeError…
mismas
  • 1,236
  • 5
  • 27
  • 55
5
votes
1 answer

e2e tsconfig types not found: error TS2304: Cannot find name 'browser'

I'm trying to setup an example angular project using a simple webdrioverio e2e test, but run into some compilation errors for my e2e test. tsconfig setup The project is setup with notably the following files: e2e / test / [e2e test code] e2e /…
Jur_
  • 302
  • 5
  • 14
5
votes
1 answer

How to automate a website that uses an external application?

Open ExternalApplication? https://webiste.com wants to open this application. [x] Always allow website.com to open links of this type in the associated app [Cancel] [Open ExternalApplication] I'm trying to automate a flow that uses an external…
Erik B
  • 40,889
  • 25
  • 119
  • 135
5
votes
4 answers

Webdriver.io - Unable to load spec files quite likely because they rely on `browser` object

I'm using Webdriver.io to run tests on a large number of pages. Because all the specs for the pages are in a JSON file, I have a special class that sets up the test. It looks like this: module.exports = class PageTester { suiteName = ''; …
Bintz
  • 784
  • 2
  • 9
  • 22
5
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
  • 53
  • 4
5
votes
2 answers

Create a selenium backend in a jenkins pipeline

I have a set of webdriver.io tests that are run in jenkins. They run against a selenium grid that is managed in k8s by an external company. I would like to have more control over my selenium backend, so I am trying to find a way to set up a selenium…
Martijn
  • 240
  • 4
  • 22
5
votes
1 answer

in Android, Using Webdriverio, How select elment by resource-id?

I'm a new in Appium, I want to create a test to my Android app, Using the inspector in Device Monitor, I found my element resource-id: com.appPackage:id/categoryIconImageView. and I used it like bellow. And I do not know why it's not working…
5
votes
0 answers

Browsermob Proxy with WebdriverIO and Selenium

I'm attempting to record network traffic in a har file using selenium, webdriver io and browsermob proxy var webdriverio = require('webdriverio'); var Proxy = require('browsermob-proxy').Proxy , fs = require('fs') , proxy = new…
random-forest-cat
  • 33,652
  • 11
  • 120
  • 99
5
votes
1 answer

Install multiple typescript type definitions declaring the same global variable

I'm building an application using typescript, node and electron. I'm using jquery in the application and I've installed the @types/jquery package to have intellisense hints. Next I created a test using mocha and spectron. Spectron makes use of…
Mic
  • 808
  • 7
  • 11
5
votes
2 answers

Q: CodeceptJS "unknown error": call function result missing 'value'

This is my Test Feature('Test'); Scenario('test something', (I) => { I.amOnPage(""); I.see("Welcome"); I.fillField('j_username', 'xxxxxx'); I.wait(3); }); This is my codeceptjs.JSON { "tests":…
5
votes
2 answers

Make WebdriverIO wait for a specific component to reload

I am testing an Electron/React app using Spectron, which uses the WebdriverIO commands API. I would like to test the attributes on some components, but I want to be sure I am testing them only after the component has reloaded. The normal…
cham
  • 8,666
  • 9
  • 48
  • 69
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