Jump to content
UBot Underground

$search page problem in new browser


Recommended Posts

Hello. This code is working fine. But when I run it 'in new browser' #result  always returns "false" even if the search string exists.

 

set(#FindThis"Thank you!""Global")
    navigate("http://website.com""Wait")
    if($search page(#FindThis)) {
        then {
            set(#result"true""Global")
            add item to list(%MyList#result"Don\'t Delete""Global")
        }
        else {
            set(#result"false""Global")
            add item to list(%MyList#result"Don\'t Delete""Global")
        }
    }
 

How do I fix this? Tia.

Link to post
Share on other sites

First you should add wait after the navigate command, since it takes some time to load it...so in your case page starts loading and you immediately try to search it, that's why it doesn't work. 

 

Also I would use $exist function instead of search page.

Link to post
Share on other sites

I'm having tons of problems lately with the "in shared browser" commands.  Using plenty of time for the page to load.  It seems as if the commands inside a shared browser work only when they want to.

Link to post
Share on other sites

I'm having tons of problems lately with the "in shared browser" commands.  Using plenty of time for the page to load.  It seems as if the commands inside a shared browser work only when they want to.

I'm also using it and I didn't notice any problems... Are you sure it's the browser? :)

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