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
0
votes
2 answers

How to find webelement from within context of a element using webdriver.io

How to find webElement from within context of a element using webdriver.io I am trying to find element from within context of existing element. H Webelement elem1 = driver.findElement(By.id("some id")); Webelement elem2 =…
user2451016
  • 1,857
  • 3
  • 20
  • 44
0
votes
1 answer

Allure report consist test cases which is not in suite any more

I am using allure with webdriverio and mocha.After generate and opening. The report consist test cases which is not in test suite any more. Tried allure generate --clean but still getting the same result. When i delete every thing from allure…
M Sohaib Khan
  • 128
  • 2
  • 10
0
votes
1 answer

Trouble displaying test results in browser with Mocha, Chai, and webdriver.io

I am using Webdriver.io with Mocha and Chai. I've written several tests that work great from the command line. It opens the Chrome browser, runs the tests, and displays the resultsin the command line. However I am having issues getting the results…
Milksnake12
  • 551
  • 1
  • 9
  • 19
0
votes
0 answers

Unable to run webdriver.io javascript tests on safari

I am trying to execute my webdriver.io javascript tests on multiple browsers. It is working fine for firefox and chrome but it's not working for Safari. It starts parallel execution for both firefox and chrome but after running all test scenarios on…
0
votes
1 answer

WebdriverIO how to iterate over elements with same selectors

So for a particular div id, I told webdriverIO to return an array of all the checkboxes inside like this: browser.elements('div[data-test-id="filter: inventory source"] input[type="checkbox"]').value; This returns: [ { ELEMENT:…
adbarads
  • 1,253
  • 2
  • 20
  • 43
0
votes
1 answer

Webdriverio element needs to be type of string?

Webdriverio element needs to be type of string? My code is as followed: describe('Test Contact Us form WebdriverUni', function() { it.only('Should be able to submit a successful submission via contact us form', function(done) { …
SamP
  • 417
  • 5
  • 24
0
votes
1 answer

Unable to click on element using method: browser.click and xpath: //input[2]

Seem to be receiving the following exception: element not visible running chrome Error: An element command could not be completed because the element is not visible on the page. at elementIdClick("0.12980231457632274-1") - click.js:20:22 My…
SamP
  • 417
  • 5
  • 24
0
votes
0 answers

WebdriverIO + Mocha dying before the next test

I'm working with WebDriverIO and Mocha for my initial UI tests. conf is an object where the WebDriverIO scripts live and (in this case) the test returns an object... { width : ###, active : '' } When I run the test, I get to through the first test…
Doug
  • 1,435
  • 1
  • 12
  • 26
0
votes
1 answer

element can't seem to be located in webdriverio script

Currently trying to test out the responsiveness on webdriverio. I adjust the viewport of my screen and then try to search for a table that exists at the bottom of the page (need to scroll to get into view port). For some reason, it can't locate the…
james
  • 550
  • 8
  • 14
0
votes
2 answers

can't import redux store in webdriverio test file

I'm trying to import my redux store so I can make sure the store is being accessed and set properly but trying to import the redux store gives me the following error: ERROR: Unexpected token…
james
  • 550
  • 8
  • 14
0
votes
1 answer

BrowserMob Proxy and Webdriverio minimal, empty HAR file

I was wondering if anyone has any idea as to what could be the problem or additional steps I could take in resolving the following issue. I have a requirement to capture the network traffic so I can write some selenium tests verifying certain…
Pan
  • 92
  • 2
  • 9
0
votes
1 answer

Running webdriver.io from commandline to run tests on a microsoft vsts build

Can anyone share how I might run a webdriver.io tests remotely from a vsts build as part of Continuous integration or continuous deployment? I'm thinking I can add a command line script to the build definition to run the tests. I know I dont have…
0
votes
1 answer

WEBDRIVERIO / CUCUMBER : Function timeout , Ensure Promise resolves within 10000 milliseconds

Hi I am currently working on an application that includes series of page navigation for an user to complete info. In order to navigate to a certain part of the page, I tried creating a generic step definition as a "background" step to cover all the…
Vinee
  • 402
  • 2
  • 10
  • 27
0
votes
1 answer

How to get visible elements with WebDriverIO

I my tests I am using WebDriverIO. I want to get all elements with class form_error that are visible. I try something like this: $$('.form_error:visible') but the :visible filter is not a valid webdriverio selector construct. How to achieve that?
Dawid Ohia
  • 16,129
  • 24
  • 81
  • 95
0
votes
2 answers

How to exclude specific test in wdio.conf.js

I'm successfully excluding a whole feature file from my chrome runs, using the code below, but I have one specific test in a different feature file failing. I want to exclude the one failing scenario rather than the whole file. Is this possible?…
rozza
  • 927
  • 2
  • 11
  • 24
1 2 3
99
100