3 ms·
> OP struggles with XPaths in complex DOMs. A lot of the selenium code I have run up on people try and get the exact element they want on the first try and rep
by hk1337 4y ago
> OP struggles with XPaths in complex DOMs.
A lot of the selenium code I have run up on people try and get the exact element they want on the first try and repeat the process several times instead of doing something like searching for a div, form, or some parent element that has all their elements then all they need is to search relative xpaths from that element.