Questions tagged [wdio-v5]

50 questions
0
votes
0 answers

Webdriver.io (wdio) PerformanceTotal service is returning an empty results index

We are trying to install and use wdio's PerformanceTotal service by following wdio's docs here: https://webdriver.io/docs/wdio-performancetotal-service/ First, I installed the PerformanceTotal package: npm install wdio-performancetotal-service…
0
votes
1 answer

report portal status interrupted after long wait in tests

We use report portal to report automatic tests from WDIO. I have noticed, that after long waits in the tests (waiting for a field to be updated in the database, before continuing with the test for example) report portal stops reporting and the test…
Limbo
  • 503
  • 5
  • 17
0
votes
0 answers

WDIO - isDisplayed() method discrepencies in local & remote machines

cont elements = "list".filter(ele=> ele.isDisplayed()); Problem statement: I am trying to get the list of displayed elements in WDIO, but currently its returning all elements in the list. Note: Filter works fine in local machine, but not working in…
0
votes
0 answers

Can wdio Chrome driver using existing Chrome profiles and cookies?

I'm trying to use wdio for my daily use website and some dumb routine. However, I found wdio always launches its own browser version. Is there anyway to launch the existing chrome browser with my profile and cookies? So I don't have to deal with…
newBike
  • 12,989
  • 25
  • 88
  • 158
0
votes
0 answers

How to make wdio customCommands work with typescript

Newbie to wdio. But wonder why it's not easily getting along with typescript. Error: TSError: ⨯ Unable to compile TypeScript: tests/specs/basic/01_new_apartments.spec.ts(20,17): error TS2339: Property 'lala' does not exist on type…
newBike
  • 12,989
  • 25
  • 88
  • 158
0
votes
0 answers

wdio and typescript import specs

Below in my test spec where im importing specs import { LoginPage } from '../pages/login/login.page'; import { BrowserDriver } from 'src/driver/browserdriver';`enter code here` First import works fine for me but second one throws me error saying…
Prabhu
  • 13
  • 4
0
votes
0 answers

Trying to perform a click in WDIO test

I'm facing issues in performing a click in my WDIO (visual regression test). I'm trying to perform a click operation on a dropdown element here is the code I'm using Jquery. it('Retrive Template Content', () => { refresh(browser); …
rahul uday
  • 131
  • 1
  • 9
0
votes
0 answers

How can I use objects in a pageobject pattern with wdio?

I am currently using a pageobject pattern with wdio as described in their documentation guides. Each element is stored in a better such as: get username() { return $('#name') } What I would like to do however is use an object in here too so can…
0
votes
0 answers

Is there a way in WDIO tests to make date and time component select default date and time irrespective of locale and current time?

I am trying to run generate snapshots from WDIOs. The condition is to render the default date and time component of my project. However, the WDIO generates current date and time each time I generate it and hence fails with mismatch tolerance. I…
0
votes
2 answers

browser.addcommand() using typescript in webdriverIO "Unable to compile TypeScript: error TS2339: Property '...' does not exist on type 'Element'."

I am struggling with browser.addCommand(), I use WebDriverIO Version 6 + typescript, and when I try to add a command to wdio.conf.js and run the test it fails with error "Unable to compile TypeScript:" my ts.confg: { "compilerOptions": { …
Alex
  • 11
  • 3
0
votes
1 answer

Way to implement resetApp for React Native with wdio-cli/? - webdriverio

Hellow there! I am using the wdio/cli so I created the wdio.conf.js with this command, then I start doing the test. But the issues is when have more than one test in a single or multiple test files. In the test file I have something like this: …
robto09
  • 133
  • 1
  • 12
0
votes
2 answers

Cannot see WebdriverIO logs in the console (webdriver logs)

I am using WebdriverIO version 5 and would like to see the logs of my test run. I tried the command: npm run rltest --logLevel=info, but all I can see is the output of the spec reporter. [chrome 83.0.4103.116 Mac OS X #0-0] Running: chrome…
shay n
  • 185
  • 1
  • 12
0
votes
0 answers

How to access the firefox browser extension in webdriverio to set localstorage

I am using modHeader extension to set context. I've been able to do it in chrome using this. browser.url("chrome-extension://idgpnmonknjnojddfkpgkljpfnnfcklj/icon.png") browser.execute(function(){ this.localStorage.setItem( …
rahul
  • 1
  • 1
0
votes
0 answers

WDIO add a custom property to Test Object (web driver io)

I am using jasmine with WDIO. In beforeTest(test) hook, I have access to the test object that looks like this: { id: 'spec0', description: 'success/failure', fullName: 'This action success/failure', failedExpectations: [], …
Confront
  • 93
  • 5
0
votes
1 answer

Global variable that survives browser closed [wdio web driver io]

I have several suites and in each one some spec files. What I noticed is that after wdio runs all tests in any spec file, it closes the browser and opens a fresh instance of the browser. Even the local storage is removed in this case. So I have a…
Confront
  • 93
  • 5