Skip to main content

Questions tagged [webdriver.io]

Test automation framework for node.js, using the webdriver protocol. In its most typicaly use case, it is the node.js binding for Selenium.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
22 views

Cant loop through a for loop to click on element - webdriver io

I have below code and it will dynamically inject optionName to a xpath. And try to click on it. getSortOptionByName(optionName: string) { return $(`//android.widget.Button[@content-desc="${...
ChathuD's user avatar
  • 2,145
1 vote
1 answer
606 views

How to reset app between tests in WDIO?

I'm currently trying to get WebDriverIO working with Appium and Mocha (BDD) towards an Android device. Previously when I've worked with Mocha the behavior has been that testcases are isolated from ...
Rejected-Potato-27's user avatar
0 votes
0 answers
335 views

How do I run tagged Feature/scenario/Examples in Webdriverio-cucumber/boilerplate?

Hi _ if anyone can help here- I am trying to run a specific scenario with examples by using Cucumber tags- this is the expression I am using to run the tests built with Webdriver- Cucumber-boilerplate ...
sameer joshi's user avatar
0 votes
1 answer
580 views

How to approach test automation of Graphs and Charts? i.e., elements made of <CANVAS> <SVG> tags

In my project, we have a module called Reporting which covers graphs and charts. It's basically a dashboard on the homepage of the website with multiple graphs and charts (after inspecting them they ...
Ramkrishna Bhandare's user avatar
0 votes
2 answers
1k views

Getting "element not interactable: element not interactable" error when trying to upload file using Webdriver.IO

Following is the page source of file upload section. Following is my code in Visual Studio Code const remoteFilePath = await browser.uploadFile(filePath); let fileUpload_var = $('//input[@type=&...
Ramkrishna Bhandare's user avatar
-1 votes
1 answer
152 views

How to convert this selector that we can directly use in Developer Tools to WebDriverIO syntax?

I am trying to locate and click on an element with the following locator (//button[@class="btn btn-link input-group-append input-group-text"])[1] How can I use this in WebDriverIO syntax ?? ...
Ramkrishna Bhandare's user avatar
1 vote
1 answer
23 views

How to determine what thread a test is running in

I want to run my tests in parallel, but some of my feature files require the server to be in different (incompatible) states. This is because the server behaves differently when it is in different ...
OpenAI was the last straw's user avatar
2 votes
2 answers
2k views

Can I change wdio.conf capabilities dynamically based on what it block I'm running?

I have a test suite where certain it blocks require a different set of capabilities I want to be able to change the args as my tests execute capabilities: { myChromeBrowser: { capabilities:...
Hanan 's user avatar
  • 21
0 votes
0 answers
663 views

How to add the number of times a test needs to be run in webdriverio and javascript

I would like to repeat a test run multiple times. So I would like to add the count to the command we are passing to run the test. I tried adding the option to grunt file but is not working Command ...
RRR's user avatar
  • 113
1 vote
0 answers
399 views

Automate Microsoft’s authentication needing a certificate using selenium in a pipeline?

I am trying to run some scripts in a website using webdriverio, this site uses Microsoft’s login authentication in order to access the website, in my local it usually asks me to login not only with ...
celestica's user avatar
1 vote
2 answers
406 views

WebdriverIO, IE11 window launches but errors in terminal: Request failed due to no such window, Currently focused window has been closed

I am pretty new to WDIO and javascript, but am trying to get WebdriverIO v6 working with IE11. This is important since we make software for the medical industry who only seem to use IE11 despite it ...
StarBuck's user avatar
2 votes
1 answer
963 views

Typescript function not waiting for the waitForExist() and printing the next line

I'm using webdriverIO with typescript and jest to automate react application. I have a simple test to check how long it takes for a particular element to display on the screen. There's a process ...
Dougg's user avatar
  • 59
0 votes
1 answer
2k views

Webdriver.io - Use selector to get all grand children?

Using webdriver.io.... For <table> <tbody> <td></td> I can get all the td elements with $$('td'). But I can't with $('table').$$('td'). Instead I have to do $('tbody')...
dman's user avatar
  • 127
4 votes
0 answers
238 views

How to integrate and configure Polly.js with WebdriverIO?

So, I have been using webdriverIO. I noticed recently, there was support for puppeteer instead of using the typical selenium webdriver. I have configured my e2e tests to use puppeteer now instead ...
adbarads's user avatar
  • 141
-1 votes
1 answer
34 views

automated retrieval of account creation email

I'm looking to test an account-creation feature of my product. The back-end of my application (which I do not control, so I can't intercept the sending of the email) sends an email to the address of ...
Jeremy Schneider's user avatar
1 vote
1 answer
515 views

webdriverIO typescript execute function doesn't recognise JS execution code

I'm working with webdriverIO on a typescript environment, and I'm trying to use the browser.execute function, but typescript keeps identifying the code that I'm writing within the callback function as ...
D.Aizenberg's user avatar
0 votes
1 answer
507 views

Selenium 2.53.1 now working with latest Firefox versions?

My organization is stuck on Selenium 2.53.1, and we test using compatible Firefox 46.0.1. I recently accidentally ran a test with Windows 10, Selenium 2.53.1 and Firefox 61.0.2, and the test ran fine....
Dave's user avatar
  • 1
1 vote
1 answer
664 views

Webdriverio "And" command is not a function

So I'm using WebdriverIO with cucumber framework but I have encountered myself with the following situation: The feature file comes like this: Scenario Outline: Scenario Given situation A When I ...
Walter Nolak's user avatar
1 vote
1 answer
243 views

Testing Failure Scenarios with Webdriverio

I may be approaching this the wrong way, but is it possible to mock http call failures (http status of 500) by intercepting a http request for a specific endpoint? I am trying to test a UI flow that ...
bmartin's user avatar
  • 111
0 votes
2 answers
3k views

Not able to access iframe with random dynamic ids using Selenium webdriver.io

I am automating the payment page which is having the option to select payment method. On selection of credit card payment option, one iframe is generated from the third party and loaded with dynamic ...
Bhavani's user avatar
  • 724