2 votes

Typescript function not waiting for the waitForExist() and printing the next line

WaitForExit() checks only for the presence of and not the visibility. You could use $(selector).waitForDisplayed instead. And also ensure there is no other element with the same selector.
PDHide's user avatar
  • 11.1k
2 votes
Accepted

Webdriver.io - Use selector to get all grand children?

The implementation of webdriverIo is slightly different from selenium. In webdriverIO $('table').$$('td') will check for direct child 'td under 'table', and as td is not a direct child it won't ...
PDHide's user avatar
  • 11.1k
2 votes

Getting "element not interactable: element not interactable" error when trying to upload file using Webdriver.IO

Changing the method from "setValue" to "addValue" helped me resolve the issue. await fileUpload_var.addValue(remoteFilePath)
Seema Nair's user avatar
1 vote

How to determine what thread a test is running in

Have you tried build in 'process' module: var process = require('process'); if (process.pid) { console.log('This process is your pid ' + process.pid); } Add this to before suite or test step
PDHide's user avatar
  • 11.1k
1 vote

Can I change wdio.conf capabilities dynamically based on what it block I'm running?

console.log(browser.capabilities) Gives the browser capabilities currently set try changing it browser.capabilities = {new} You can access the entire config file as: console.log(browser....
PDHide's user avatar
  • 11.1k
1 vote

WebdriverIO, IE11 window launches but errors in terminal: Request failed due to no such window, Currently focused window has been closed

I managed to get this working following this advice - https://stackoverflow.com/questions/47388733/selenium-org-openqa-selenium-nosuchwindowexception-currently-focused-window-ha setting the internet ...
StarBuck's user avatar
1 vote

WebdriverIO, IE11 window launches but errors in terminal: Request failed due to no such window, Currently focused window has been closed

You have to add kilinstances: true to delete everything at the end: export.config = { services: [['iedriver',{killInstances:true}]], // ... capabilities: [ { browserName: '...
PDHide's user avatar
  • 11.1k
1 vote

webdriverIO typescript execute function doesn't recognise JS execution code

I suggest use pipeable operators : example In TypeScript 2.3 and lower, typings will need to be added to functions passed to operators, as types cannot be inferred prior to TypeScript 2.4. In ...
Rao's user avatar
  • 276
1 vote
Accepted

Webdriverio "And" command is not a function

"And" is replaced internally with either "Given", "When", or "Then" since it is an extension of one of those lines. In your case, replace: and('the credit card CVC is "([^"]*)"', function(CVC) { //...
Bill Hileman's user avatar
1 vote

Testing Failure Scenarios with Webdriverio

One alternative is to use Feature Flags. With these, you can, at compiling time, pick blocks of code, depending on configuration. For instance (pseudo-code): def request_handler(request): #...
João Farias's user avatar
  • 10.9k

Only top scored, non community-wiki answers of a minimum length are eligible