'looking to simplify css selector with repeating parent child root - UI automation
wondering if theres a way to optimize this selector im using in UI automation:
div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > span:only-child"
Note: not looking to use any ids/class to get closer to the desired element but want to simplify this above if possible?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|