Jump to content
UBot Underground

Alternative Click Method If Ubots Element Click Is Difficult To Select The Element


Recommended Posts

Hey

 

this is for chrome 39 only

 

Uses CSS Path to click elements,to generate the CSS path,open web inspector,click the magnify glass,and select the element you want to click,go back to web inspector,the button is highlighted in blue,right click,select copy css path

define CSS Path Click(#CSS Path) {
    wait for browser event("DOM Ready","")
    run javascript("document.querySelector(\"{#CSS Path}\").click()")
}
navigate("http://www.ubotstudio.com/resources","Wait")
comment("clicks the contact href")
CSS Path Click("#util-nav > div > ul > li:nth-child(3) > a")

  • Like 1
Link to post
Share on other sites

It almost seems as if the gods sent you to deliver this piece of glory. I was googling this all yesterday, but the xpath version and failed. This is greatly appreciated.

  • Like 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...