Jump to content
UBot Underground

Help with opening a page


Recommended Posts

Hi All:

 

Struggling with something here that I need advice on.  See the script below, once this completes, there is a "Property Details" link on the right I need to get access to.  The ubot browser shows an odd object that doesn't do what a normal browser does.  How do I get at the info on this page in order to scrape it?

 

set user agent("Chrome")
navigate("http://gis2.co.dakota.mn.us/maps/property.htm""Wait")
wait for browser event("Everything Loaded""")
type text(<name="searchOne">"42-83400-05-104""Standard")
click(<name="submit1">"Left Click""No")
wait for browser event("Everything Loaded""")
wait(1)

 

any suggestions would be helpful.

 

-Noob

Link to post
Share on other sites

Try to use "wait for element" command instead of fixed delay 1 sec. With this new command you should wait for "Property Details" to come up.

  • Like 1
Link to post
Share on other sites

I can wait for element, I dont think that matters, does it?  Either way I can get to the page that shows "Property Details".  My issue isnt waiting for the "Property Details" to appear, its clicking on the "Property Details" link and getting the tab/new window to popup.  The ubot browser doesnt correctly open the new page.

 

Other ideas?

 

Thanks.

Noob

Link to post
Share on other sites

Sorry...now I see what's your problem...in normal browser that would open in new tab/browser, and that's why it gets displayed like popup in UBot (which is actually an iframe).

 

You can actually scrape content from iframe, or do any other stuff in there.

 

If you want to open that page in main UBot browser you need to scrape SRC parameter of that iframe window, and navigate to the URL scraped.

 

Hope that helps.

Link to post
Share on other sites

Here is an example, where I load HTML / iframe manually, then I scrape its SRC parameter:

load html("<iframe src=\"http://www.facebook.com\"></iframe> ")
wait for browser event("Everything Loaded", "")
wait for element(<tagname="iframe">, "", "Appear")
wait(3)
navigate($scrape attribute(<tagname="iframe">, "src"), "Wait")

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