Jump to content
UBot Underground

Example Popups in New Window - source


Recommended Posts

allow popups("In New Window")
navigate("http://studentsofpakistan.com/nokia-pakistan-reaches-1-million-fans-on-facebook/", "Wait")
wait for browser event("Everything Loaded", "")
wait for element(<title="Add a comment...">, "", "Appear")
type text(<title="Add a comment...">, "great site", "Standard")
wait for element($element offset(<class="uiButtonText">, 0), "", "Appear")
click($element offset(<class="uiButtonText">, 0), "Left Click", "No")
wait(1)
click($element offset(<class="uiIconText">, 1), "Left Click", "No")
in popup {
    comment("DO YOUR COMMANDS FOR THE 
LOGIN HERE")
    type text(<email field>, "", "Standard")
    type text(<password field>, "", "Standard")
    change checkbox(<name="persistent">, "Checked")
    click(<login button>, "Left Click", "No")
    close page
}

 

  • Like 8
Link to post
Share on other sites
  • 3 weeks later...
  • 2 months later...

Hi TJ

 

I am quite new here and this is my first post...

 

I have read everything I could find on popups and opening windows but I can't make my bot works...

 

I followed your example for "StudentsOfPakistan.com" but I cannot make it works inside an Amazon account.

 

Would you please help me ? the little windows on the left of the main windows do not open like in your

 

example... I have also tried set dialog text, set active windows but with no success.

 

Could I private message you with the url and the login details ? I would really appreciate your help

 

Thank you

Edited by Veracruz32
Link to post
Share on other sites
  • 3 weeks later...
  • 4 months later...

Anyone knows a way to kinda "focus" on the new window?

I used "in popup" because login details are being set in the new page which seems can't navigate to directly (can probably be done with HTTP Post, which i'm investigate).

What i want is that as soon as the popup opens in the new window, i have set the current page to "close page".

That doesn't work, as it only sets the browser to a blank window while the popup is still in the new window in the small sidebar

 

I would say that if the current page is closed via close page, it automatically should show load the content from "in popup" in the main browser.

Thus not in the small sidebar window.

 

Yes you can click the sidebar manually in the bot to focus on the sidebar and make it visible in the main browser (full screen) but this is far from ideal for me.

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