No way for us to add a STATIC and 'unique' tag in the DOM
See original GitHub issueThis is a big headache for any QA team who automate tests using Selenium Webdriver.
Because our CSS are been constantly updated due to new requirements in our apps we need to constantly update the CSS_SELECTOR and/or XPATHs that the webdriver needs in order to locate the web elements (in this case the react-select dropdowns); in the perfect world we should be able to add ID
s or Name
s attributes into a web element in the DOM.
When you have a page with multiple Select
options we can’t rely on using the class
attribute (class=Select-control
) because is not going to be unique in the DOM and also the data-reactid
attribute is something that gets changed between the builds.
Would you please add a away that devs could add some custom attributes into the DOM other than the defaults that get build from the Select
.
Thanks in advance.
Issue Analytics
- State:
- Created 8 years ago
- Reactions:5
- Comments:10 (3 by maintainers)
Top GitHub Comments
For others trying to do this. Something like this should work:
Any progress on this? I’m trying to automate this control using Selenium and I’m having the same issue.