-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Description
Is your feature request related to a problem? Please describe.
I m using a UI framework that generates a virtual dom and I want to be able to add a new locator or custom strategy to achieve the retrieval of the dom elements based on the virtual dom properties and attributes.
Describe the solution you'd like
More or less an implementation exists for protractor called addLocator, something similiar for WDIO would be awesome.
Describe alternatives you've considered
Custom commands are limited and does not help me to achieve this. More or less would be possible if I can use the standard WDJS locator by.js. The WDIO provides an alternative to use js functions but I cannot pass any parameters. On the other hand if I use browser.execute still seem not to work because it cannot return an element which I can use especially for an Array of elements. Any alternative that i might not known?