Questions tagged [webdriver-io]
WebdriverIO from webdriver.io is a JavaScript library for controlling browsers with Selenium server via the WebDriver API.
1,559
questions
0
votes
0
answers
8
views
Using Cucumberjs is it possible to pass a function or invoke it?
I have a framework that I am building from the ground up using webdriver-IO cucumber and javascript. I have a drop down control to select from and I can only select the option based on 'text()='
I am ...
1
vote
0
answers
7
views
Scroll Through Android app using appium-Javascript
I am doing automation testing using appium, webdriverio, nodejs and i want to set elements value after scrolling, how can i do it
i already tried MoveTo, touchAction,scrollIntoView methods on ...
0
votes
0
answers
4
views
WebdriverIo is not able to initialize wdio-rerun-service : Getting below error
[0-13] 2022-05-25T04:33:05.332Z DEBUG @wdio/utils:initialiseServices: initialise service "selenium-standalone" as NPM package
[0-13] 2022-05-25T04:33:05.350Z DEBUG @wdio/utils:...
0
votes
0
answers
6
views
WebdriverIO unable to reference an element in Chrome (works in Firefox and Edge)
I'm trying to run the WebdriverIO code below:
it('Login Success Page title',async()=>
{
await browser.url("https://rahulshettyacademy.com/loginpagePractise/")
await $(...
0
votes
0
answers
9
views
There is a problem with Appium / WebdriverIO that the test does not start from WebdriverIO
There is a problem with Appium / WebdriverIO that the test does not start from WebdriverIO
They run flawlessly
adb.exe
o adb devices
o List of devices attached
o emulator-5554 device
appium ...
0
votes
0
answers
8
views
WebdriverIO+Cucumber: VS code is not opening the BaseURL and test terminates right after browser launch
I am using webdriverIO+cucumber. NPM is installed (node v12.18.1) and seems everything in place but when I try to run any feature, it launches the browser (chrome) but doesnt open any/baseURL and ...
0
votes
1
answer
10
views
How to measure test execution duration with NewRelic Syntethics Scripts?
I'm using the newrelic synthetics scripted browser to check some user transaction flows for reliability and performance.
However the tracked duration is only about 8-10s which matches initial page ...
0
votes
0
answers
14
views
How to upload a Webdriver IO project (JavaScript) to a cloud service
I am trying to find a way to run Webdriver IO automation tests (JavaScript) on a cloud service, so that I can upload the code there and trigger it by 1 API request.
I see alternative 2 approaches to ...
0
votes
0
answers
18
views
How to Connect DB using WebDriverIO Automation
I m trying to fetch value from DB ,from One module using sql queries and same value need to match with other Module on UI Page,
Let's Say we run SQL in module A -->select SUM(BILLING_AMOUNT) from ...
2
votes
0
answers
22
views
Calculate DPs using density and screenSize of iOS devices
Problem:
Iam trying to calculate DP using the following formula.
dp = (width * 160) / density;
Iam using this formula since i don't know how can i have the DP value directly using Appium framework.
...
0
votes
0
answers
58
views
I am getting "ERROR webdriver: Request failed with status undefined due to TimeoutError:" while executing the runner command
I tried to upgrade my webdriverIO framework to the latest version.
Old Setup:
WebdriverIO - V6
NodeJS (version: 12.16.0 ) and NPM (version: 6.5.0)
New setup:
WebdriverIO - v7NodJS (version: 14.15.1 ...
0
votes
1
answer
23
views
Chromedriver launching data;; browser after updating to V100 (both chromedriver and Chrome browser)
I'm running automated test scripts using webdriver.io. Issue is, the code stopped running after updating the chromedriver to 100.0.4896.60 which is recommended for chrome browser v100 that is ...
0
votes
0
answers
17
views
Webdriverio throws undefined element for row in a table
I have to click on a button located in the first row of a table after navigating from another page. After I go to my page I check that the rows in the table are not undefined by using waitUntil.
...
-1
votes
0
answers
24
views
Findelements $$ showing TypeError cannot read properties of undefined?
get listOfElements(){
return $$("(//*[@class='menu-list'])[1]/li");}
async getElementList(){
console.log("Element lists:: " +(await this.listOfElements).length);}
running above ...
0
votes
0
answers
6
views
Is there any way to assert xhttp response in chrome console in webdriverio?
I want to read xhttp response from console and assert it using webdriverIo. Is there any simple solution to achieve this?
0
votes
0
answers
36
views
Read permission denied -- using chromedriver in headless mode
I have a selenium webdriver.io suite that uses chromedriver. I'm trying to get chrome to work in headless mode since this will be running in a vm without a display.
There are many instances throughout ...
0
votes
0
answers
10
views
WDIO:How to log each Test step as Pass/Fail in Spec report console output
I would like to log, each action/Test Step inside 'it block (TestCase) as Pass/Fail.
I have tried to find a lot on how to achieve that but couldn't succeed. Kindly Help me if anyone knows how to do ...
0
votes
1
answer
62
views
Installing WebDriverIO with Typescrit and Cucumber gives me an error
When I finish configuring the project, the wdio.conf.ts and tsconfig.json files are saved in a folder called tests and the wdio.conf.ts file gives me the following error in this line:
import type {...
0
votes
0
answers
29
views
WDIO can not click element for Android hybrid app
I am new with App automation. I have a project with WDIO and Browserstack and start to automate a few e2e cases, but I have a problem with Andrid and WDIO. WDIO can not find my selectors and click ...
-2
votes
0
answers
10
views
What is bailout in automation testing please give me some example integrated with any one of the framework?
Trying to integrate bailout in automation test framework but didn't able to get proper reference please guide me get some example!!!
0
votes
0
answers
14
views
WebdriverIO: automating native upload window that opens on button click in electron
I am trying to automate file upload in Electron, but Native upload is used that is open when the upload button is clicked, so there is no input element to set the upload path. is there a way to handle ...
0
votes
0
answers
15
views
Webdriver io - Drag and Drop | Not able to see it happening but code passes
I am trying to implement the Drag and drop feature using webdriver io and the issue i am facing is that the code passes but i dont see dragging and dropping the file ..
X-paths are proper as it runs ...
0
votes
0
answers
41
views
Automated Chromium-based tests with Authentication redirect from MSAL(Angular)
I'm looking at doing a short proof of concept, validating 2 different UI end to end testing frameworks against each other using an internal project at work.
My project is an Angular based application, ...
0
votes
0
answers
40
views
expected { Object () } not to be empty - WebdriverIO - POM - Chai
I am currently using WebdriverIO with POM and Chai expect/asserts.
I have not been able to get my chai assert to work.
expectChai(watchesPage.infoTitle).to.not.be.empty;
When I run the test, I get an ...
0
votes
0
answers
9
views
How to disable microphone detection in WebDriverIO
Okay, this is a long shot, but I figure why not.
I've automated a UI regression test that runs a phone dialer app for my company. It uses WebDriverIO. I've been able to disable the permission pop-...
0
votes
0
answers
8
views
WebdriverIO 7 ,testcase is failing when maxInstace =5 and passing when maxinstance=1
Same is working for webdriverIO 6.
Testcase is running due to timeout.
1
vote
1
answer
47
views
Webdriverio iOS restart app with processArguments
I have iOS app which implemented UI testing with Appium.
And when I want to restart app with this code, processArguments are lost.
Could anyone tell me how to restart app without losing ...
0
votes
0
answers
27
views
no such element in Js webdriverio with Appium . and how to use promise here?
We run this coming promise error. We use the await function but not working correctly.
**java script
var wdio = require('webdriverio');
var allureReporter = require('@wdio/allure-reporter').default;...
0
votes
0
answers
65
views
How to select any date on datepicker in webdriverIO typescript
I would like assistance on creating a webdriver.io typescript for this, i would like to select any date on this by clicking any of the date on the current month, your assistance is greatly appreciated
...
0
votes
0
answers
14
views
Duplicate test result is getting generated using JSON reporter in WebdriverIO
I am using json reporter to generate the JSON report for all the suites. below is the code.
export const config: WebdriverIO.Config = {
autoCompileOpts: {
autoCompile: true,
...
0
votes
1
answer
17
views
An assertion on the test case file - Webdriverio
I need some help, I'm starting with this automation stuff, I like it but I'm still learning, recently I create a test case that basically is, going to a certain page and click on a button to upgrade ...
1
vote
1
answer
117
views
Running test with Electron App with WebDriverIO not working
I am trying to run a few tests for my Electron app with webdriverIO since Spectron has been deprecated. Instructions from official Electron site here. Here is the current setup of testing with ...
0
votes
0
answers
18
views
Get files in Downloaded Folder doesn't work the first time
I write a test case, which I click download a file -> save in a folder -> read the folder and get filename. The problem I am having is:
when the folder is empty, and file1 is saved in folder, ...
0
votes
1
answer
41
views
Element Not Interactable error by Firefox
I've got input elements inside a Shadow DOM. WebdriverIO is used for automated testing. The test cases include setting values for such input elements.
const element = container.shadow$('input[data-...
0
votes
0
answers
23
views
Does webdriverio support folder upload?
I am trying to upload a folder. I am using the below code from wdio official documentation.
const path = require('path');
const filePath = path.join(__dirname, 'path/to/your/file');
const ...
0
votes
0
answers
39
views
How to run wdio tests with existing container in selenoid webdriverio
Current Situation:
I have 32 core machine and maximum I set 50 threads. I've two jobs which has 50 tests each so i distribute jobs with limit 25 in each jobs as shown below.
Concern
If we set the ...
0
votes
0
answers
19
views
getting ReferenceError: testData is not defined when using webdriverio Dataprovider
I am getting the following error when I am trying to use a feature webdriverio comes with for dataprovider:
I have put the following in the wdio.conf.js:
dataProviders: ['./test/dataproviders/...
0
votes
1
answer
107
views
In Cucumber, how do you resolve "Was unable to find step for" error when using {int} in a step definition?
I am building a Cucumber framework for WebdriverIO using Visual Studio Code.
I have a step definition which reads:
Then("there are/is {int} {string} displayed", (elementCount, element) => ...
0
votes
1
answer
168
views
How to set environment variable to run webdriverIO script
I am running my webdriverIO test cases using command
npx wdio run .\wdio.conf.js --spec .\test\intel.test.js
Now I want to pass environment variable for the same like ENV=qa
If I run command like this ...
0
votes
0
answers
55
views
How to ensure webdriverio is really getting page's elements
I've been facing an issue testing an Vue/Nuxt app with WebdriverIO. Mainly, it my tests are always passing. The following code will have an success execution:
it('should open correct app', () => {
...
0
votes
1
answer
51
views
MS Edge Driver as separate conf file in wdio
Can someone, please, assist, in following:
Created separate conf files for Chrome & Firefox on webdriver.io (latest version 7.19.3), but could not acchive to create (also separate) config file for ...
1
vote
1
answer
16
views
In WDIO, what makes the Spec Reporter report a question mark?
Whilst running WDIO tests on the command line (using Spec reporter), on one test run, I managed to make it report a '?" in the command line output. Something like this:
[Chrome 100.0.4896.60 ...
0
votes
0
answers
24
views
Change folder where Safari download files using webdriverio
How can I change the folder where Safari puts downloaded files using webdriverio?
0
votes
1
answer
107
views
How I can allow browser.pause? WDIO (wdio/no-pause) (plugin:wdio/recommended)
I need to use browser.pause, but I get error in ESLint. How I can allow browser.pause in eslintrc.json? Or maybe you know another way for resolving this?
Error: Unexpected browser.pause() not allowed ...
0
votes
1
answer
75
views
WebdriverIO saucelabs bug, browser.getUrl is refer to started url but not for current url
I'm faced with issue when my tests on remote (CI+saucelabs or local machine + saucelabs remote) are not the similar.
I have a site (e.g. example.com)
My scenario consists on next steps:
open example....
3
votes
1
answer
71
views
In JavaScript, can you reference a method/function name within that method/function?
I am building an automation framework in JavaScript for WebdriverIO.
The "out-of-the-box" error messages aren't too helpful and I would like to add the class name and method name as part of ...
0
votes
0
answers
28
views
How to update Oracle database table during UI automation
I am new to database automation.
We are using cucumber tool using webdriverIO for UI automation in javascript language.
As part of that we need to update Oracle DB after a few steps.
Is it possible to ...
0
votes
0
answers
70
views
Switch webdriverIO between Desktop Browser and Mobile App
I want automate a scenario which starts with Desktop chrome after performing certain action need to switch to Mobile app and validate the data in the Mobile App.
Currently Im using separate scenario ...
0
votes
0
answers
68
views
The `e2e` target is missing
I created a new empty Angular v13 project and added the package:-
ng add @wdio/schematics --removeProtractor
with the following options:-
✔ Found compatible package version: @wdio/schematics@1.2.1.
✔ ...
0
votes
0
answers
59
views
Swipe Automation - WebdriverIO - javascript Mobile
I'm new to javascript and I'm following this code but when starting automation it doesn't slide down page. (mobile)
`$(FORMS_ICON_HOME_SCREEN).click()
const {height} = driver.getWindowSize()
...