Questions tagged [webdriver-io]
WebdriverIO from webdriver.io is a JavaScript library for controlling browsers with Selenium server via the WebDriver API.
1,756
questions
0
votes
0
answers
5
views
How set up charles proxy for Webdriver IO mocha automation framework?
I am trying to set up internet throttle for my automation test . I am using mocha framework with webdriver io . How could i achieve this ?
I have not gotten any success yet!
0
votes
0
answers
13
views
Confusing double wait time in WebdriverIO for findElement and isClickable
I'm using WebdriverIO for automation and I'm finding this weird behavior w.r.t waiting in dynamic wait calls.
On the framework I have only set the following timeouts in wdio-conf
waitforTimeout = ...
0
votes
0
answers
14
views
How to select the child element using Xpath in WebdriverIO
there are multiple elements if I provide the child class directly. So need to extract the child on the basis of parent. Need child text "A value is required for this field." on the basis of ...
0
votes
0
answers
19
views
WebdriverIO - Getting error - unable to get local issuer certificate when used services: ['selenium-standalone']
Getting error below when used selenium-standalone -
Error in "getDownloadStream". Could not download https://chromedriver.storage.googleapis.com/94.0.4606.61/chromedriver_win32.zip
See more ...
0
votes
0
answers
13
views
Selenium WebDriver Bot not work xpath button expression
I´m tried run Selenium WebDirver in Google Chrome Browser, and i have an unexpectd behavior of WebDriver library. I´m using XPath expression tested in Xpath Helper of google chrome and my expression ...
0
votes
0
answers
17
views
How to update value between hooks in webdriverio?
I am useing WebdriverIO to send test result to Testrail recently, I met a problem which is that after I addRun in the onPrepare hook, I get the testrunId after I create testrun, and then I will update ...
0
votes
0
answers
19
views
@wdio/local-runner exiting with exit code 1. Failed in firefox. Not able to launch test session in firefox
I am using wdio,cucumber to run test framework using firefox browser.
My package.json is:
{
"name": "abc",
"description": "abc",
"version":...
0
votes
0
answers
26
views
When to use @cucumber/cucumber and @wdio/cucumber-framework?
From the wdio docs v8 from here it says:
Import Step Definition Helper
In order to use step definition helper like Given, When or Then or
hooks, you are suppose to import then from @cucumber/cucumber,...
0
votes
1
answer
55
views
How to pass hex chars regex in string assertion
I am using javascript with webDriverIO for automated test and in my assertion, one of the substrings is a dynamic value which keeps changing to hex chars every time I run my test therefore want to ...
0
votes
0
answers
12
views
Cannot run wdio local runner - change directory of test session
[0-0] 2023-03-22T17:03:47.446Z ERROR @wdio/local-runner: Failed launching test session: Error: ENOENT: no such file or directory, open 'C:\Users\jack_\wdiotest\file:\C:\Users\jack_\wdiotest\features\...
0
votes
0
answers
11
views
Script getting passed without clicking the element in webdriverio
in this step
"this.CheckboxListDoNotShowAgain.click()" is passed but actually didn't click anything
0
votes
0
answers
17
views
Customize Allure report Graphs widgets. I need tests results by area/feature
I already have my Allure report working for my automation project with Webdriver-io. But now I need to add a graph with my tests results ordered by component area (feature). I mean is just order my ...
0
votes
0
answers
32
views
How to check syncing between chrome browser and Appium?
I have two applications, one web application (chrome browser) and desktop application. I have performed some scenarios on web application and need to validate same on desktop application and vice ...
0
votes
1
answer
86
views
I'm receiving this error when running my tests "element not interactable: element not interactable (Session info: headless chrome=111.0.5563.65)"
So I'm working on a practice site for automation testing with WebDriverIO and all of my tests work normally. my issue is when i add the settings to the config file to run chrome in headless mode. just ...
0
votes
0
answers
19
views
webdriverIO switching default and incognito windows
please explain how it works:
Using js I need to open a default chrome window then do where something and switch it to an incognito mode and continue there with a test.
Now I have this code but it ...
0
votes
1
answer
29
views
how to block all worker threads till the first worker thread not completed in node.js
More than one workers thread are started when running test in parallel using WebDriverIO and node.js. There is a method which fetch and lock the data in database so next time different set of data to ...
0
votes
1
answer
24
views
how can I iterate over an array of element with webdriverio
Can't iterate over the array element returned by wdio.
I want to be able to pass eny element from the array as a parameter to future functions and click the element that matches the condition.
Below ...
-1
votes
0
answers
11
views
How to validate Checkbox was checked in webdriverio
Trying to find out if the check box is checked using webdriver.io
0
votes
1
answer
10
views
Skipping from a spec in wdio
I am having a scenario like i need to skip the spec while automating when 3 "it" blocks are failed.
I am using wdio with jasmine framwork.
Can anyone knows a way to sort this out.
I tried ...
0
votes
0
answers
19
views
webdriverio: how to open a Brave Browser window using the default user settings
I have
import { remote } from 'webdriverio';
(async () => {
const options = {
capabilities: {
browserName: 'chrome',
'goog:chromeOptions': {
...
0
votes
1
answer
55
views
Webdriver wait for complete page to load
Is there any way to make webdriverio wait for a complete page to load?
I dont want to use browser.setTimeout({ 'pageLoad': 10000 }), because I dont know how much time it will take to load complete ...
4
votes
1
answer
180
views
How to hide a webpage element from a webdriver browser.url call
Our webdriver test needs to hide an element that is getting recorded multiple times in screenshots as the browser scrolls down the page. It is a floating element.
I have:
it('should save Food blog ...
0
votes
1
answer
62
views
Appium can’t get text from XCUIElementTypeStaticText
I have simple XCUIElementTypeStaticText in my iOS app, but getText() doesn't work as expected it doesn't return text inside. Any tips&tricks or workarounds?
Appium 2
WebdriveriO - 8.3.2
iOS: 15
...
1
vote
0
answers
38
views
Webdriverio- Cucumber: spec array executes every tests multiple times
I have 3 tests file, i want to run 2 in single instance one after another in same session, so i have created the spec array in wdio.conf.js
it looks like this:
specs: [
"./test/specs/...
-1
votes
0
answers
35
views
Gives RequestError: connect ECONNREFUSED error intermittently when interacting with Salesforce UI
Run the UI automation tests for Salesforce using Web driver with UTAM framework
I get below error intermittently
[0-0] Error in "Collection Instance Object Creation tests Create new Collection ...
0
votes
0
answers
21
views
webdriverio(Typescript) cucumber tests firing browser but not executing tests
Node version: 18
Cucumber version: 8.4.0
On running tests, browser launches and shuts down immediately without executing tests. Get error
Evaluation failed: SyntaxError: Unexpected token ':'
Works ...
0
votes
1
answer
39
views
WDIO8 and BrowserStack Slow Android Performance
I make use of WebDriverIO to run a single test suite across multiple web browsers on devices/operating systems on BrowserStack. The issue is that the run duration on Android device browsers take much ...
1
vote
0
answers
49
views
Getting an error while installing webdriverio to the visual studio on MAC
Installing wdio packages:
@wdio/local-runner@latest
@wdio/cucumber-framework@latest
wdio-cucumberjs-json-reporter
wdio-chromedriver-service
chromedriver
npm ERR! code ERESOLVE
npm ERR! ERESOLVE ...
0
votes
2
answers
39
views
Add the test case name to capabilities for Browserstack in webdriver-io config
I'm using webdriver-io with javascript and I need to include the test case name in the capabilities so that Browserstack shows the correct name
The line name: process.env.TEST_NAME is the one that I ...
-1
votes
0
answers
13
views
Unable to run a command in jenkins pipeline but able to run it via Mac Terminal
I have a webdriverIO automation suite in local folder which i want to run using Jenkins in Macbook.
#!/bin/bash
echo $PATH
ls
"SCOPE=DESKTOP_CHROME_LOCAL yarn wdio wdio.naveditor.conf.js"
...
0
votes
1
answer
69
views
Appium 2 Webdriverio XCUITest - How to approve permissions modal iOS
I'm completely stuck on allowing permissions on iOS in automation testing with Appium 2. I want to proceed with permissions and click Allow. But nothing happens, find element gets 3 retry and then ...
0
votes
0
answers
18
views
Appium with WebdriverIO: Using webview CSS with Page Object Method: Is this syntax correct?
I have done a video that will explain it in detail here. But basically I need to know the correct syntax when using a CSS with a page object model in an appium with webdriver automated test. I've ...
0
votes
0
answers
24
views
Which is better and which should we prefer to use, tilde(~) or caret (^) in package.JSON?
I am working on Automation testing project
Unable to figure out what should be prefer to use between tilde(~) and caret(^) in dependencies and devDependencies
Framework we are using - Chai-mocha(...
0
votes
0
answers
23
views
How to mark the test fail in the Spec report if the webdriver.io falls catch block
I'm using webdriover.io and .js script to write script for performance testing. I want to mark the test case fail if the script falls into catch block. But the current implementation is showing the ...
0
votes
0
answers
22
views
webdriverio/chromedriver access denied problem when running headless
access denied on webdriverio tests when running in headless mode. Headful mode works fine and as expected. When I add the 'headless' arg to the capabilities, then the access denied on all commands ...
0
votes
0
answers
28
views
Execution blocked by ES5 and require() error messages (WebdriverIO & Appium)
in a test automation with the WebdriverIO framework using JS, we are currently having issues with the project continuing to run.
The project runs test automation for the desktop Windows environment in ...
0
votes
0
answers
52
views
Getting ERROR @wdio/runner: Error: Some reporters are still unsynced: WdioMochawesomeReporter
This is the error I am seeing when try to integrate mochawesome report to Appium with wdio:
ERROR @wdio/runner: Error: Some reporters are still unsynced: WdioMochawesomeReporter
[0-0] at Timeout.&...
0
votes
1
answer
24
views
WebdriverIO - How to accept location prompt from Chrome? (chromedriver)
I am currently working on automating tests for a website that, when launched in incognito mode, asks user for their location. ( Similar to https://www.where-am-i.co/ ). However while I managed to ...
1
vote
0
answers
42
views
Appium Flutter automation: How to record the video session of the current test
We're using appium-flutter-driver for automating our flutter/hybrid mobile application, and we're using mocha as a testing framework. Now we need to record the video session of our automation script ...
2
votes
0
answers
15
views
Reuse IT Statement in Webdriverio IO with different parameters
I'm running an automated test suite of front end website tests using WebdriverIO v7, Selenium, NodeJS in JavaScript.
My current setup is i have 5 different 'login' test cases (one for each customer ...
0
votes
1
answer
66
views
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....
0
votes
0
answers
28
views
Alternative for `uploadFile` command in webdriverIo v8 for browsers like Mozilla Firefox, Safari,etc
For the uploadFile command available on WebdriverIO v8, it runs only on Google Chrome. When tried running on other browsers like Mozilla Firefox (that uses Geckodriver) the action did not work at all. ...
1
vote
0
answers
41
views
Mock current time or freeze date/time in WDIO
I am writing a test in WebDriverIO, where age is calculated dynamically. This creates issue as snapshot updates every month with new age value and build fails. Is there any way to mock or freeze ...
0
votes
1
answer
31
views
Unable to click on Allow / Don't allow buttons on the Notifications alert which is displaying upon launching the app
Technologies using: Webdriverio,Typescript,Appium
I write script to click on the Allow button of the permission alert. But the alert still showing up and not dismissed.
const alert1 = await $("//...
0
votes
0
answers
25
views
How to capture Android Edittext toast error messages in appium (webdriver.io)
Need to capture Android EditText toast error message but the element locator is not available in app source.
Is there any way to capture and verify this error message?
please find the app source of ...
0
votes
1
answer
47
views
Issue using WebdriverIO to test Tauri app
I am using the https://github.com/chippers/hello_tauri example application from the Tauri documentation.
The app builds and runs correctly.
Had to change the port in wdio.conf.js to 4445 but nothing ...
-1
votes
1
answer
734
views
Error: "ts-node/esm/transpile-only 'resolve'" did not call the next hook in its chain and did
Getting this error when run the test using npx wdio command.
How to resolve this issue.
Error: "ts-node/esm/transpile-only 'resolve'" did not call the next hook in its chain and did not ...
1
vote
0
answers
46
views
Request failed with status 400 due to invalid argument: invalid argument: unrecognized capability: pollTimeout
error while trying to run basic mocha structure
printing console log
0
votes
0
answers
9
views
How to handle upload images input tag is hidden
How to handle upload images input tag is hidden.
enter image description here
uploading images
0
votes
0
answers
27
views
How to run multiple feature files sequentially in Cucumber Webdriver IO
I have 3 feature files and corresponding Step definition files . How can I run these feature files one after the other in Cucumber WEBDRIVER IO. I am using VS Code.