Questions tagged [webdriver-io]

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

WebdriverIO is an independent implementation of the WebDriver Protocol which provides language bindings and APIs to automate browser or mobile devices. Its test runner allows you to write your tests in a synchronous way so you’re not constantly in the world of asynchronous coding. WebDriverIO integrates easily with a variety of cloud browser testing vendors (for example, Sauce Labs, BrowserStack and CrossBrowserTesting), so you can perform tests on a wide variety of OS/Device/Browser combinations, all from one test.

1803 questions
0
votes
1 answer

Chai assertion doesn't fail using async command?

My Chai assertion doesn't seem to fail when using the below async command: async confirmSuccessfulSubmission() { try { let value = await $("#contact_reply h1").getText() if(value) return expect(value).to.equal("Thank…
SamP
  • 417
  • 5
  • 24
0
votes
1 answer

UnhandledPromiseRejectionWarning: Unhandled promise rejection (NodeJs, Webdriverio, Selenium)

I'm attempting to validate the header (Text) of a given web page when making a successful submission. My command: async confirmSuccessfulSubmission() { return $("#contact_reply h1").getText().then((value) => { //incorrect text should…
SamP
  • 417
  • 5
  • 24
0
votes
1 answer

WebdriverIO Custom Reporter - TypeError: Cannot read property 'write'/'complete' of undefined

I am implementing a custom reporter in WebdriverIO. Following a tutorial (https://webdriver.io/docs/customreporter.html), I have written the following code: let Reporter = require ('@wdio/reporter').default; Reporter.reporterName =…
Brian
  • 135
  • 4
  • 16
0
votes
1 answer

Chai assertions doesnt seems to be working within my JS and Webdriverio Framework / method?

Currently im using an object modelling approach to replicate pages and initialising the chai libraries within the wdio file however my method seems to be failing, any ideas? Method: confirmSuccessfulSubmission() { const…
SamP
  • 417
  • 5
  • 24
0
votes
0 answers

Set Zoom Level in WebDriverIO (node js)

I am working on writing some automation script and it is project's requirement to work with WebDriverIO( node js and typescript). I am stuck in a situation where I have to get some data from web page and I can't use scroll(project requirement) so I…
0
votes
0 answers

How to set-up Appium-webdriverIO-mocha tests for iOS & Android ReactNativeApps on BitRise and Browserstack

We have UI tests for reactive Apps(iOS & Android) written in Appium-WebDriverIO/Mocha. The tests code sits in a separate folder inside the development code but shares same package.json & scripts. We are planning to run tests on A) Browserstack…
user2451016
  • 1,857
  • 3
  • 20
  • 44
0
votes
1 answer

When I run wdio-runner, I have got "wdio-cli: Can't identify message from worker" warning message

I have had a problem with WebdriverIO & Cucumber. I used latest version of WebdriverIO (@v5.x.x) and Cucumber v4. When I run my test suite, the console shows me a warning message. Also, no Cucumber .json data file is created in the process. The…
Enes Pekkaya
  • 304
  • 2
  • 3
  • 14
0
votes
1 answer

WebdriverIO: what is the equivalent of elementIdHtml?

How do I get an element's inner HTML from an elementId using browser object? Is there something like elementIdHtml available in the WebdriverIO API? The getHTML link for v4 is returning 403 Forbidden. my goal is that i need to get all text inside…
Rahadian Kumang
  • 591
  • 6
  • 15
0
votes
1 answer

Is ReactNative's `accessibilityLabel` and iOS Label retrieved using iOS Accessibility Inspector one & the same?

Is ReactNative's accessibilityLabel and iOS Label retrieved using iOS Accessibility Inspector one & the same? Same goes for Android Text retrieved using UIAutomatorViewer We are planning to rely heavily on accessibilityLabel in ReactNative for…
user2451016
  • 1,857
  • 3
  • 20
  • 44
0
votes
1 answer

Selenium server is up and running but getting failing to connect to selenium

I am trying to set up webdriverio test automation. when I ran the selenium-standalone install. I can get all the packages installed. But when I try to run the commang " selenium-standalone start " I am getting the below error…
Vinee
  • 402
  • 2
  • 10
  • 27
0
votes
1 answer

WebdriverIO - How can I retrieve the HTML of the currently focused/selected/active element?

I am looking to retrieve a focused element's HTML. Looking at the webdriver.io documentation, the method .getActiveElement() is supposed to do the trick. However, my IDE (WebStorm) shows an error stating that it is an "unresolved function or…
Brian
  • 135
  • 4
  • 16
0
votes
1 answer

Matching elements by property ends with in WebDriverIO

I am used to Selenium WebDriver were I can do something like this: ReadOnlyCollection magicPills = _webDriver.FindElements(By.CssSelector("span[id$='_Blue_Pills']")); How do I do the same thing in WebDriverIO? I couldn't find anything…
SlightlyKosumi
  • 701
  • 2
  • 8
  • 24
0
votes
1 answer

before() and beforeAll() hooks are not getting recognised in WebdriverIO-Mocha framework having Jest as assertion library

before() and beforeAll() are not getting recognised in WebdriverIO-Mocha framework having Jest as assertion library. For a ReactNative project we're building UI Automation using webdriver.IO+mocha. As its ReactNative, so main project code-base…
user2451016
  • 1,857
  • 3
  • 20
  • 44
0
votes
2 answers

How to pass environment value from npm to wdio file

I wanted to pass the test environment value from command line with npm command which should be accessible into wdio.conf file. Something like npm test --env='stage'. How to achieve it.
user8926491
  • 63
  • 2
  • 4
0
votes
2 answers

while installing webdriverio node unable to find dependencies

While installing the module webdriverio using npm, I am getting the following error: sudo npm install webdriverio [sudo] password for username: npm WARN package.json indexof@0.0.1 No repository field. npm http GET…
QPTR
  • 1,620
  • 7
  • 26
  • 47