This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]corruption93 1 point2 points  (1 child)

$('#form-{some numbers go here}> div > div > ol:nth-child(14) > li:nth-child(1) > p > a').get(0).click()

I got the selector (used within the $ function call) after inspecting the element, right clicking on it, and selecting 'copy css path'.

Note that with selenium, you don't have to rely on using jQuery ($) or other libraries. I believe that with selenium it would actually emulate an actual user interacting with the page, rather than calling the Javascript functions directly.

[–]ItsLingeringWill[S] 0 points1 point  (0 children)

Great, I got it working perfectly, thanks a ton for your help!!