Jump to content
UBot Underground

Recommended Posts

Occasionally I use the UI HTML Panel to display important information about that session but I can't seem to get it to work inside a new browser.

 

Is this possible?  If not, is there another method to display important info about the session in a new browser?

 

For example:

define runmain(#user, #pass) {
    thread {
        in new browser {
            ui html panel("<h2>{#user} - {#pass}</h2>", 150)
            wait(5)
            navigate("***site removed***", "Wait")
            wait for element($element offset(<email field>, 0), "", "Appear")
            type text($element offset(<email field>, 0), #user, "Standard")
            type text($element offset(<password field>, 0), #pass, "Standard")
            click(<login button>, "Left Click", "No")
            wait for browser event("Everything Loaded", "")
            ---- code continues ----

Link to post
Share on other sites

First, "ui html panel" command is executed only once, when the software opens, so you can't use it during run-time.

 

Instead you should construct the whole HTML dynamically and refresh it via "load html" command, if you want to display the content in browser instead of UI.

 

There is one problem, that you cant use variables in browser as you use them in UI. Therefore to get values back to UBot, you would have to scrape them.

Link to post
Share on other sites

Thank you for the reply and explanation.

 

It doesn't sound like load html will be a viable option either if I need to interact with the page.  

 

I've tried using load html with frames as well but a lot of sites use frame busters.

 

I'll keep looking to see the best way to store session info in a new browser.

Link to post
Share on other sites
  • 3 weeks later...

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