Re:Web Automation: Don't Use Selenium, Use Playwright
by hk1337 on Thursday November 10, 2022 @07:47AM
(#33545653)
> 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.
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.