Jump to content
UBot Underground

UI Field/Page Search Inquiry


Recommended Posts

I am trying to get this done:

 

1. Navigate to URL

2. Search loaded URL for text placed in UI text box field.

3. If text is not there then, (then command) (else command)

 

All of this within an IF command.

 

Any suggestions?

Edited by SDMedia
Link to post
Share on other sites

ui text box("Search URL", #SearchUrl)
navigate("https://www.google.com/", "Wait")
wait for browser event("Page Loaded", "")
if($comparison($url, "=", #SearchURL)) {
then {
alert("it says google")
}
else {
alert("it doesn\'t say google")
}
}

Link to post
Share on other sites

You could also try

ui text box("Search URL", #SearchUrl)
navigate("https://www.google.com/", "Wait")
wait for browser event("Page Loaded", "")
if($contains($url, #SearchURL)) {
    then {
        alert("it says google")
    }
    else {
        alert("it doesn\'t say google")
    }
}

That makes it so you don't have to have the exact url in the text box.

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