Jump to content
UBot Underground

Click An Element And Open It In A New Window


Recommended Posts

What I'm looking for is something where I can click on an element (for example an image) and it'll open in a new window (not browser) so that I can make my stuff without touching the "main" website.

 

Something like: left click, target _blank

 

Can I do it? Thanks a lot!

Link to post
Share on other sites

You could scrape the element ID (with a wildcard if needed) then use cmd shell to open the image in chrome etc?

Or you could just use load html through a popup possibly? 

Link to post
Share on other sites

You can scrape it out like Asentrix said and then use the in new browser command, here is an example:

navigate("http://ubotsandbox.com/", "Wait")
wait(2)
set(#checkboxes_url, $scrape attribute(<href="checkboxes.php">, "fullhref"), "Global")
in new browser {
    navigate(#checkboxes_url, "Wait")
    wait(10)
}
Link to post
Share on other sites

 

You can scrape it out like Asentrix said and then use the in new browser command, here is an example:

navigate("http://ubotsandbox.com/", "Wait")
wait(2)
set(#checkboxes_url, $scrape attribute(<href="checkboxes.php">, "fullhref"), "Global")
in new browser {
    navigate(#checkboxes_url, "Wait")
    wait(10)
}

 

and this will keep login info? Since what I'm trying to automate requires login, if I click and then open in a new browser, it'll keep me logged?

Link to post
Share on other sites

and this will keep login info? Since what I'm trying to automate requires login, if I click and then open in a new browser, it'll keep me logged?

 

I don't think so, try in shared browser I think that would keep you logged in.

Link to post
Share on other sites

Strange thing, when I open in a new window, after the page is loaded it autoclose. I'll investigate on it...

 

PS: To avoid browser freeze I should insert random user agent and then something also?

Link to post
Share on other sites

Strange thing, when I open in a new window, after the page is loaded it autoclose. I'll investigate on it...

 

PS: To avoid browser freeze I should insert random user agent and then something also?

 

That's the normal behavior in a new browser window. If there are no additional commands going on, the browser will close.

You can add a wait command at the end to keep it open for a while.

 

Or a loop while. And check a variable. And then have a button to set that variable to a value that will exit the loop while. 

That way you can close all the new browser windows with a button. 

 

Dan

  • Like 1
Link to post
Share on other sites

heard about "shared browser" but cannot find it on V4, maybe is a V5 feature?

 

It's in V4, it's under the flow commands or you can just type it into the search toolbox (ctrl + e to search)

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