Yad Smood
Yad Smood
Still don't have time to do it.
Make sense, could you help to improve this method? I think what playwright does is to create a temp file and then set the path to the temp file. Add...
@infinitepr0 do you want to challenge this one?
Here's some explanation, if you have any questions please let me know: https://user-images.githubusercontent.com/1415488/103298705-3c98b280-4a3e-11eb-8b49-cecf0b2096a2.mp4 Some pseudo-code: ```go el := page.MustElementR("label", "Name").MustNearest("input") ```
> Distance between two elements is the nesting depth of the non-common suffix of the XPATH's. Yea, but we don't say xpath, we say the path, it's just a common...
I used to use jQuery a lot, I don't think they have this. Not sure how you can do it with xpath easily. Also xpath doesn't support regex match. Use...
Sure, no problem, take your time.
Sure, path distance looks ok for me, the logic behind it is the coder that creates the page may always put related things together by their intuition.
Can you show us your code to produce? I think rod should just work if you use the default config, it should download the binary automatically: https://github.com/go-rod/rod/blob/4710d7f82e7892a0699a5cd124d63e55459ad2ae/lib/launcher/browser.go#L59-L69
Have you tried this function? https://github.com/go-rod/rod/blob/1c242c9efd99c17b44bad624479ebfb5d4e71906/lib/launcher/launcher.go#L464-L465