Questions tagged [webdriver-io]

WebdriverIO from webdriver.io is a JavaScript library for controlling browsers with Selenium server via the WebDriver API.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

What would be the best way to create a dashboard and notification sent out to the responsible person based on WebdriverIO test results?

I have created a wdio test framework[cucumber] which gets executed in SauceLabs everyday with the help of Github Actions which will be used by almost 20 teams in our project. I would like the ...
Nandan N's user avatar
0 votes
0 answers
8 views

WebdriverIO v8 - Import Element commands

With the WebdriverIo v7 I was able to import the element commands like "click" and others using the following import: import * as element from 'webdriverio/build/commands/element'; With v8 ...
MasterDev's user avatar
0 votes
0 answers
17 views

How to run a command that performs an S3 upload AFTER ALL feature files/steps are executed?

I am currently executing some basic performance tests using the following: js with Webdriverio for web elements identification/asserts Cucumber for creating steps and execution of feature files/tests ...
ionion's user avatar
  • 1
-1 votes
0 answers
14 views

Web driver open the automated site and run for few sec automatically close the site . I am beginner in selenium for web scraping

from selenium import webdriver from selenium.webdriver.chrome.service import Service import time s = Service("C:/Users/Administrator/Desktop/Selenium/chromedriver-win64/chromedriver.exe") ...
Rabin Sunuwar's user avatar
0 votes
0 answers
10 views

Receiving "invalid argument" when trying to upload file using webdriver.io

I have a Typescript project using webdriver.io , I am trying to upload a file to a file input but keep getting an error saying "invalid argument". I am using: Webdriver.io v8.24.3 Nodejs: ...
Reizar's user avatar
  • 221
0 votes
0 answers
8 views

How can I integrate my test cases written in WebdriverIO-Cucumber-Typescript framework with HP ALM?

We are using WebdriverIO-Cucumber-Typescript to write our test cases and executing it in local machine & also through Jenkins CICD. We want to integrate our automation test cases with HP ALM tool ...
Vikrant's user avatar
0 votes
0 answers
28 views

Where put web elements in cucumber steps?

I learn to write cucumber wdio test. In my project also I use page object pattern. This is my step, where I click for subcategory Camera and photos from headerComponent page: When('User clicks {string}...
Jyja's user avatar
  • 11
0 votes
0 answers
44 views

Math random returning different decimal number (TypeScript/WebDriverIO) [closed]

I created a test to add custom (random) balance to a wallet. This is the code I'm doing // Enter custom amount const fundAmount: number = Math.floor(Math.random() * (1000 - 100) + ...
Daniel's user avatar
  • 1
0 votes
0 answers
18 views

Typescript pageObject model - importing an extended class's imports?

I have a 'base' page.ts file with these imports import { expect as expectChai } from 'chai'; import { expect as expectWdio } from '@wdio/globals' and export this like export default class Page I have ...
stackUser2356387's user avatar
0 votes
0 answers
16 views

Need help to extract the visible text in a Web Page

I'm new to WebDriverIO. I'm now dealing with an issue in which a locator contains the CSS property. text-overflow: ellipsis; This allows the text in the locator to fit inside the width. As an example: ...
Vinoth Kumar's user avatar
0 votes
0 answers
16 views

Can't run test script

FYI, I have a script for running login testcase to apps, I used typescript as a languange and appium for running the test. Also I used emulator for running the apps. But I faced some bug, accidentaly ...
Ilham Nuswantoro Aji's user avatar
0 votes
0 answers
7 views

webdriverio browser.elementHover is not a function

Using "webdriverio": "^8.16.19" I'd like to hover over an element in a webdriver.io test using elementhover: const InstagramWidgetThumb = await $('app-users-widgets .widgets app-...
Steve's user avatar
  • 11
0 votes
1 answer
18 views

WebdriverIO - How do I set the custom repository for drivers?

I need to use custom npm repository for drivers in WebdriverIO. It's configured in .npmrc file and all the package.json dependencies are taken from there. But the WebdriverIO is trying to download ...
Medvedscak's user avatar
0 votes
0 answers
12 views

React Native Testing with a single code base

If we have a single codebase for react-native-web and mobile apps (Android and iOS) how should we handle the e2e tests. Is it possible to handle the tests also using a single code base ? I saw that ...
ThimiraR's user avatar
  • 167
0 votes
1 answer
30 views

Using a Chrome profile does not work in WebdriverIO

I am trying to avoid handling signing in by signing in beforehand in my profile. I am using this code but it still does not load in the profile I have specified. How do I fix this? const browser = ...
Rudraveer Mandal's user avatar
1 vote
0 answers
55 views

Heroku Error Error: Couldn't find plugin "local" runner, neither as wdio scoped package "@wdio/local-runner" when New Test is running

I am using WebdriverIo with NodeJs Framework. My entire code is working fine in local system. Scripts are running fine. But When I am running in Heroku I am getting below error ~ $ npx wdio run wdio....
Siddharth Mittal's user avatar
0 votes
1 answer
25 views

concat the multiple columns values of row in a string and remove the space using Javascript

Am getting the row text using getText in a variable and using replace method, removing the spaces after the text of each column output. var getRowText = await $(`(//`tbody[@class='data-...
user2315357's user avatar
1 vote
0 answers
49 views

detect react native android app crash using webdriver-io

I'm pretty new at my work using appium, webdriverio and selenium grid. Trying to improve error handling and logging on our test framework. Is there a way of checking if the app has crashed within the ...
punkuotukas's user avatar
0 votes
1 answer
32 views

What type should I use for browser elements in typescript in wdio tests?

I'm trying to figure out how to type browser elements. Code example (??? marks the place where you need to add the type): login_input = await $('div.login_input') await set_login('login', login_input) ...
Paganini's user avatar
  • 188
0 votes
0 answers
24 views

How to resolve: disconnected: not connected to DevTools (failed to check if window was closed: disconnected: not connected to DevTools)

I am using webdriverio/appium (javascript) to test hybrid app (React app for Android / iOS): "webdriverio": "^8.22.0" "appium": "^2.2.1", During testing I ...
Mikhail Yesipchuk's user avatar
0 votes
0 answers
13 views

WebdriverIO - How to open a tab under existing browser session (not new session)

For the need of my test, I need to open a tab under the already opened browser session. Is this possible at all using WebDriverIO? thanks
vlatko606's user avatar
  • 929
0 votes
0 answers
41 views

How to reload session in webdriverio combined with appium, flutter, browserstack, ios and cucumber

Im trying to reload my driver session in browserstack during the execution of a feature file. I want to achieve this because I'm testing some login scenarios and it would be helpful if each scenario ...
JH.'s user avatar
  • 1
0 votes
0 answers
18 views

Is there a way to call mysql query from WebdriverIO/Mocha/Javascript frmaework test case?

Not able to call sql query from it block Not even executed db.query statement but simply test passed **Here is the code block ** var db = require("../utils/db"); it("DB Testing", (...
Hariprasad KS's user avatar
0 votes
0 answers
30 views

How to run sql script from webdriverIO Tests

I wanted to fetch the data from the database and use that data to verify from my application. I got code to connect DB and fetch it but this is with individual database.js file only. The problem here ...
Hariprasad KS's user avatar
1 vote
3 answers
127 views

How to animate a mouse cursor in a webdriverio webpage test

I have a webdriverio test that automates the clicking of different elements in a web app to produce an outcome. I'd like to have a mouse pointer animate movement between each click. The ultimate goal ...
Steve's user avatar
  • 11
0 votes
0 answers
31 views

Adding Webdriver.io to project to test Electron app fails with syntax error on `import('wdio-electron-service/main')`

I am following the steps listed in the webdriver.io electron-boilerplate repository and the steps in the webdriver.io Electron Service documentation but in my main.ts file, when I add: const ...
Joelle Boulet's user avatar
0 votes
0 answers
30 views

browser.ReloadSession() is creating an extra session

I'm encountering a peculiar issue while working with WebdriverIO in my test suite. I've integrated the afterTest hook in my wdio configuration file, but it seems to inadvertently spawn an extra empty ...
UserTesting's user avatar
0 votes
0 answers
64 views

Webdriverio tests on chrome fails but runs fine on edge

Where I run my webdriverio tests on chrome I receive below error - Execution of 1 workers started at 2023-10-25T05:38:48.485Z 2023-10-25T05:38:48.538Z INFO @wdio/cli:launcher: Run onPrepare hook 2023-...
Nishant Kumar's user avatar
0 votes
0 answers
29 views

WebDriverIO/Appium Error: Appium exited before timeout (exit code: 1)

I'm encountering an error while running WebDriverIO tests with Appium. The error message is as follows: [0-0] 2023-10-20T12:37:56.830Z ERROR @wdio/appium-service: Appium exited before timeout (exit ...
Terrius's user avatar
0 votes
0 answers
38 views

WebDriverIO Error: Unable to load spec files, relying on browser object not fully initialized

I'm facing an issue while running WebDriverIO tests. I'm getting the following error, and I'm not sure how to resolve it: [0-0] 2023-10-20T12:14:38.061Z ERROR @wdio/runner: Error: Unable to load spec ...
Terrius's user avatar
0 votes
0 answers
31 views

Test automation card payment in flutter app that uses adyen with appium?

I'm using adyen_dropin plugin within my flutter app to manage payments. For the payment flow im trying to run an automation test that should enter card values and proceed to pay. See the screen shot ...
GingerAle's user avatar
0 votes
1 answer
76 views

Cannot use import alias in component tests

I'm trying to use simple React component tests with WebdriverIO, Mocha and TypeScript. I met an issue specifically related to using import aliases in WebdriverIO. I have simple template components and ...
Medvedscak's user avatar
0 votes
0 answers
24 views

Mobile app screen scroll by description is not working

const scrollCommand = android=new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(new UiSelector().description(\"${locator}\")) I am trying to use above command to ...
shantanu kulkarni's user avatar
0 votes
0 answers
24 views

webdriverio step functions skipped but allure report shows all steps

I have a feature file where the multiple steps are skipped and causing the Scenario to fail. The same scenario working for other users. I pulled the same repo from git so no changes in config and ...
mosid's user avatar
  • 35
0 votes
1 answer
71 views

Parameter to pass in wdio.conf.ts to allow third party cookies

In my webdriverio automation, I am trying to start a chrome session which allows all cookies (refer the attached pic). I tried my luck with the below capabilities in wdio.conf.ts. capabilities: [{ ...
Prakash P's user avatar
  • 421
0 votes
1 answer
98 views

how do I handle file download prompt in 117 version of chrome?

'goog:chromeOptions':{'prefs:{'download.default_directory':'***/downloads'}} doesn't seem to be working with 117. disabling the incognito mode might work, but I would need it in incognito mode. Tried ...
Vikas Kumar's user avatar
0 votes
0 answers
11 views

Re-try is happening for already passed test also along with the failed tests while trying to achieve data provider concept in webdriver.io

Am using webdriver.io with jasmine framework. In my project am trying to achieve data provider concept. I hava achieved it using for each loop and when i try to retry the failed tests, passed test is ...
Praveen Velmurugan's user avatar
0 votes
0 answers
26 views

ERROR @wdio/runner: Error: A "user" or "key" was provided but could not be connected to a known cloud service

ERROR @wdio/runner: Error: A "user" or "key" was provided but could not be connected to a known cloud service (Sauce Labs, Browerstack, Testingbot or Lambdatest) When I run My Code ...
Shemul Hasan's user avatar
0 votes
0 answers
15 views

WebdriverIO - cannot run examples data sets in parallel

I have a webdriverio/TS/Cucumber project in which there is one feature file, one scenario outline, and some examples rows at the end. The glue code/spec file is also a single file. Can someone guide ...
farazahmad's user avatar
0 votes
0 answers
12 views

browser acceptAlert() in webdriver io does not work in Chrome browser

In Chrome trying to click OK on the window popup, but browser accept Alert() does not work any more. It used to work. Now I am using web driver io version": "7.32.4".
Ari N's user avatar
  • 117
0 votes
0 answers
53 views

Automation workflow from Github using node 18.16.0 with webdriverio (using typescript) -throws at listOnTimeout ,processTimers

Automation workflow from Github using node 18.16.0 with webdriverio (using typescript) using github hosted runner -throws at listOnTimeout (node:internal/timers:569:17) at processTimers (node:internal/...
Nishi Srivastava's user avatar
0 votes
1 answer
45 views

Find a specific element by Text from a list that is under shadow-root node

I have a web page that I am automating using WebDriverIO and Typescript. I want to click on a radio-button from a list of radio-buttons that is deep under shadow-root nodes, as follow: This is how I ...
Ragnarsson's user avatar
  • 1,745
0 votes
0 answers
66 views

how to use a certificate pem file in webdriverio with axios?

How can i use a pem file certificate in WebdriverIO ?? Because with java I only have to register the certificate with keytool in cacerts file and that test works fine but with WebdriverIO I don't know ...
solidusAndryi's user avatar
0 votes
1 answer
29 views

Python Selenium Dropdown list Clickable : AGAIN

I want to scrap investing.com website. Firefox Webdriver closes when clicking on one of the dropdown list item. Dropdown menu is hiidden. I want to choose "BİST Ulusal Tüm" item. What can i ...
Gokita's user avatar
  • 1
0 votes
1 answer
99 views

WebDriver.IO configuration not loading any Chrome extensions?

I have a suite of UI tests built on WebDriver.IO and Cucumber JS, where I am attempting to load a Chrome extension before starting the test steps. I have tried both ways of loading an extension ...
Jessie's user avatar
  • 1
0 votes
1 answer
91 views

Perform a scroll and find an element by accessibility id - webdriverio with Appium

I will greatly appreciate if someone can help me with this. I am new to automation testing and I am using webdriverio and Appium. The test I want to write(native app) is the following: Vertically ...
Petya's user avatar
  • 1
0 votes
1 answer
140 views

Unable to execute the sample tests in webdriverio after setting it up as per the offecial guide

question: I have installed Webdriverio and set it up as per the official document but it throws an error when try to execute it in command line. Getting below error. result: equestError: RequestError: ...
Shankar R's user avatar
0 votes
0 answers
16 views

Protocol error (Runtime.callFunctionOn): Target closed when using getText()

Is anyone receiving the "Protocol error (Runtime.callFunctionOn): Target closed" when trying to utilize getText()? Code Snippet: xpath = "//ag-grid-angular[contains(@class, '...
Jimmy's user avatar
  • 1
0 votes
2 answers
178 views

Why Allure report is showing empty contents in Jenkins?

After installing Allure report plugin in Jenkins, getting this - ALLURE REPORT UNKNOWN unknown - unknown (Unknown) 0 test cases NaN% It's show no result, after build execution is done. My project ...
SoftwarePeople Marcombox's user avatar
1 vote
0 answers
13 views

Parsing from a json file in webdriver.io w/mocha isn't working as intended because the dragEvents do not actually drag the parsed names

What I can't seem to figure out is why I keep getting an error "Cannot read properties of undefined (reading 'find') while trying to parse a json file. The parsing will pull in x number of fields ...
STFC's user avatar
  • 11

1
2 3 4 5
37