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
1 answer

How to click on CTRL+M (Control + M) in WebdriverIO

I have to issue a CTRL+M action in WebdriverIO, but it is not working. I have tried using different ways such as: browser.keys('Control').keys('m'); browser.keys(['Control','KeyM', 'NULL']); browser.keys(['Control', 'm',…
Payal
  • 53
  • 1
  • 9
4
votes
0 answers

Not managing to chain selectors with $ and $$ as documented in Webdriver-IO docs

I'm using Spectron's WebdriverIO which is at version 4.7.1 in node_modules. I'm trying to getText from an element but selecting it gradually is giving me trouble. I can "Copy -> selector" in dev tools to give me a very specific path. This works if I…
justin
  • 3,357
  • 1
  • 23
  • 28
4
votes
2 answers

Unable to start WebDriverAgent : Could not proxy command to remote server. Original error: Error: connect ECONNREFUSED 127.0.0.1:8100

I have an simple automation script for iOS. But it gets launching WebDriverAgent on specified simulator after that producing the given below error [debug] [XCUITest] Unable to start WebDriverAgent session: Could not proxy command to remote server.…
Thangaraj
  • 257
  • 3
  • 13
4
votes
2 answers

How I can start IE in 32bit mode in webdriver.io

I am running an WebDriver.io test using gulp-wdio npm pakage on selenium-standalone The Code that I run in gulp is: gulp.task('e2e', function () { return gulp.src('wdio.conf.js') .pipe(wdio({ wdio: { specs:…
OBender
  • 2,492
  • 2
  • 20
  • 33
4
votes
1 answer

Webdriverio cucumber cant use promises

I m trying to learn a bit more cucumberjs with webdriverIO and I m having some troubles while launching my tests. Actually, I want to cover this simple feature : Feature: Example Feature In order to become productive As a test automation…
mfrachet
  • 8,772
  • 17
  • 55
  • 110
4
votes
1 answer

Node.js module "fibers" not taking the correct version

I'm pretty new to node.js and its package management system and its require. I'm having trouble with the following runtime error I'm getting after having installed a bunch of packages with npm install: ERROR: Couldn't initialise framework…
e.dan
  • 7,275
  • 1
  • 26
  • 29
4
votes
1 answer

How to catch the response data in UI automation

I am using WebDriverIO for the UI Automation and I am trying to automate for a login page. When I click the Login button, *.com/user/login request will get trigger in the background. Here, I want to catch that *.com/user/login call response, because…
Raja
  • 167
  • 1
  • 10
4
votes
3 answers

WebdriverIO - Take full-page screenshot

I'm trying to take a screenshot of the full page using WebdriverIO. I've read that the best method is to use WebdriverCSS to enhance my WebdriverIO flows. WebdriverCSS automatically screenshots the entire page?? The problem is that WebdriverCSS is…
4
votes
1 answer

Code Completion for WebDriverIO in Intellij

I've been struggling all day to get code-completion working in Intellij. I am working on a project that uses cucumber with webdriverio. When you hover over any method you get "Unresolved function or method for ...". I've tried adding webdriverio as…
Conner
  • 413
  • 2
  • 8
  • 20
4
votes
1 answer

Can't click a web button with webdriverio

I'm trying to learn automation with webdriverio in nodejs right now, with admittedly not the most knowledge of jquery in HTML. here's where I am: I've wrote a script that, so far successfully logs me in to an account and navigates to the page I…
RodneyStanger
  • 41
  • 1
  • 5
4
votes
3 answers

Build Mocha test dynamically after getting data from webdriver.io

I'm looking for a solution to define Mocha tests after getting data asynchronously. For now, I use gulp-webdriver to getting HTML content with Selenium. And I want tests certain HTML tags structure. For example, I want to get all buttons…
ali_o_kan
  • 452
  • 5
  • 18
4
votes
0 answers

Authentication basic for Firefox with WebdriverIO

I use WebdriverIO to create my Selenium tests. I try to pass credentials on my staging website. I have tried some solutions: Firefox Profile : doesn't work with WebdriverIO for me, just ok in Java User and password in URL like that :…
4
votes
2 answers

How to clear a date from input type="date" with WebdriverIO

I'm now using WebdriverIO and developing a web app. these days I tried to set a date from input type="date", I got errors invalid element state: Element must be user-editable in order to clear it. and found that I could get rid of the errors by…
Jama
  • 91
  • 1
  • 8
4
votes
1 answer

Selenium Chrome driver failed to parse value of getElementRegion

I get the following error from chrome driver when running my selenium tests with chrome driver. The test works fine with firefox. unknown error: failed to parse value of getElementRegion Here's the code, it fails when trying to click the submit…
Dana Case
  • 84
  • 1
  • 8
4
votes
0 answers

webdriverio, Jasmine Multiple asynchronous it inside a describe doesn't execute

I am new to jasmine and webdriverio, I am trying to execute multiple 'it' functions inside a 'describe' but could not execute more than one it statement. Below is the code. var webdriverio = require('webdriverio'); var options = {…
anandaravindan
  • 2,401
  • 6
  • 25
  • 35