Jump to content
UBot Underground

Recommended Posts

Can you use $next list item (or anything similar) in MOUSEOVER ?

 

I got a couple of things to be clicked on but it only shows up when you put your mouse over it.

Ex: Pic one, mouseover, thing to click

      Pic two, mouseover, thing to click on so on.....

 

So i thought i'd create a list but it's not working.

 

I got 2 ways to click on what i need to click.

By doing a mouseover then click on what's showing up (this ain't working so far) or by clicking on another link/button next to each pic (that's not generating a mouseover)

 

 

Here is the HTML in that needs to be clicked

<div class="clicklink"><span id="clickTxt_13437334_32196_bottom">click</span></div>

<div class="clicklink"><span id="clickTxt_13437326_47836_bottom">click</span></div>

<div class="clicklink"><span id="clickTxt_43437326_67839_bottom">click</span></div>

Maybe i'm over thinking ? In fact, i need to click on the "spanid" (well i think) so the link works.

Probably that i don't even have a good list to start with (scrapping ?)

 

Anyways, if you can help. Let me know

Thanks

Link to post
Share on other sites

It's hard to give you any certain answers since you didn't provide the URL of the page you are working on, so there is no way to test any code out.

 

However, I'll still try to answer your question:

Yes, you can use next list item inside mouse over, actually you can use it on all UBot nodes that have "Advanced Element Editor" available (so not only on "click" command).

clear list(%HTML Button Ids)
add list to list(%HTML Button Ids, $scrape attribute(<id=w"clickTxt_*_bottom">, "id"), "Delete", "Global")
loop($list total(%HTML Button Ids)) {
    set(#HTML To Click, $next list item(%HTML Button Ids), "Global")
    mouse over($element from text("<id=\"{#HTML To Click}\">"), "No")
    wait(1)
    click($element from text("<id=\"{#HTML To Click}\">"), "Left Click", "No")
    wait for browser event("Everything Loaded", "")
    wait(3)
}

I'm not sure it will work for your case since it again, depends on the site you are working on, but it should work on a site with regular buttons.

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...