sifuhall 0 Posted July 8, 2014 Report Share Posted July 8, 2014 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 ---- Quote Link to post Share on other sites
UBotDev 276 Posted July 8, 2014 Report Share Posted July 8, 2014 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. Quote Link to post Share on other sites
sifuhall 0 Posted July 8, 2014 Author Report Share Posted July 8, 2014 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. Quote Link to post Share on other sites
UBotDev 276 Posted July 8, 2014 Report Share Posted July 8, 2014 Forgot to mention, you could also use "run javascript" or "eval" to interact with the active browser... Quote Link to post Share on other sites
pftg4 102 Posted July 9, 2014 Report Share Posted July 9, 2014 you need UI HTML WINDOW it is in dev i think you have pro Quote Link to post Share on other sites
sifuhall 0 Posted July 26, 2014 Author Report Share Posted July 26, 2014 I have dev. I'll check that out. thanks Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.