Questions tagged [webdriver-io-v4]

Use tag only for questions particular to problems with version 4 of WebdriverIO. Always add the general [webdriver-io] tag to your question.

Use tag only for questions particular to problems with version 4 of WebdriverIO. Always add the general tag to your question.

34 questions
0
votes
1 answer

Getting the TypeError [ERR_INVALID_URL error in my WebdriverIO-Typescript-Bdd framework

Project Structure Image Team, getting the below error in my WebdriverIO-Typescript-Bdd framework : TypeError [ERR_INVALID_URL]: Invalid URL at new NodeError (node:internal/errors:387:5) at URL.onParseError (node:internal/url:565:9) at new URL…
0
votes
0 answers

I want to zoom in and out my browser using webdriverio can anyone help on this

This code is not working for me describe("Zoom in and zoom out using keyboard", function () { it("Should open the application main page ", async function () { await browser.url("https://the-internet.herokuapp.com/key_presses"); await…
0
votes
1 answer

How to use Appium on Flutter Android app whose old code is in Native Android and new code in Flutter

For Native Android We are using Appium with webdriverio and UIAutomator2, but when we use same of Flutter, it is not working properly. We are not able to send Keys or identify particular element. When we use Appium Inspector on Native App side we…
0
votes
1 answer

Is there any documentation or sample project available for android and iOS native application automation testing using webdriverio tool?

I am using webdriverio automation tool for web application automation. And recently, I am looking forward to automation the native Android and iOS mobile application as well. When I search details on https://webdriver.io/, I do read about the…
0
votes
1 answer

How to use variable inside a selector in webdriver io

This is my selector for selecting element from second row in a table, which is working fine and returning the element name on using getText get getSecondRow() { return $$('#BookingsData tr:nth-child(2) td span'); } I was looking for a way to…
0
votes
1 answer

css selector for webdriverio to capture data from table

I have got an assignment to capture all apple stock history values in table. Link is this -https://finance.yahoo.com/quote/AAPL/history/ On inspecting table section, it is covered by this class="Pb(10px) Ovx(a) W(100%)" data-reactid="32" As you…
0
votes
2 answers

Webdriverio 6 - How to right click at X and Y location

Webdriverio 6 - How to rightclick at X and Y location. Could not find the rightclick command in WebdriverIO version 6 docs. this is the code showing in WebdrivewrIO v4 but not working in V6 browser.rightClick(elementXpath,5,184); Error showign…
Sam_
  • 31
  • 7
0
votes
1 answer

Find all clickable elements using webdriverio

I am new to webdriver io and I want to get all clickable elements using webdriver io and iterate through them. I came across 'browser.findElements' API, but could not get it to work. Can anyone provide me a sample code ? var assert =…
0
votes
2 answers

how to use custom class names in WebDriverIO

how to find an element with custom class name in WebdriverIO how to find element with this particular class name ng-repeat="document in documentsUploaded"
mo0206
  • 791
  • 5
  • 20
  • 36
0
votes
1 answer

how to use mock in webdriverIO to send response as string

I have a POST API that returns the response as a string. when I tried mocking as browser.mock('**/validate').respond('SUCCESS', { statusCode: 200 }); It's not getting mocked instead original API is hit Can someone help me in this??.
questionar
  • 274
  • 2
  • 18
0
votes
1 answer

Creating a new config parameter in wdio.config.js in Node.js

I am writing an automation framework and wondering how to create environment properties file like Java. I know wdio.config.js is the place where we hold baseURL and other stuff. Say I would like to create new placeholders like "Login" which accepts…
ChanChow
  • 1,346
  • 7
  • 28
  • 57
0
votes
1 answer

Webdriver-io: Querying Element Text with '=' Gives Errors in Browser Console

Webdriverio docs have an option to find elements by text, e.g.: WebdriverIO const link = $('=WebdriverIO') However, when I put $('=WebdriverIO') in browser console, I am getting: VM2375:1 Uncaught DOMException:…
Victoria Cole
  • 51
  • 1
  • 3
0
votes
1 answer

Is there a way to just run tags without opening and closing browser?

I am trying to run specific scenarios from various different feature files using tagExpression but webdriver opens and closes browser for each scenario until it finds the tag I provided. Is there a way to NOT open the browser until it finds the…
Nazmul Islam
  • 61
  • 3
  • 7
0
votes
2 answers

How to call a function inside webdriverio test configuration file

The url shows a WebdriverIO test runner configuration https://webdriver.io/docs/configurationfile.html It has got many hooks. Consider the hook onComplete I want to write a function, may be a function to create a file. In another file and call that…
wanderors
  • 2,030
  • 5
  • 21
  • 35
0
votes
1 answer

WDIO 5 : Possible EventEmitter memory leak detected

I have a webdriverio test framework with maxInstance of the browser set to 10. When I run my script, I get the below error message [local-test] (node:20572) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 end…
Vinee
  • 402
  • 2
  • 10
  • 27