JensH 0 Posted March 1, 2014 Report Share Posted March 1, 2014 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. Quote Link to post Share on other sites
UBotDev 276 Posted March 1, 2014 Report Share Posted March 1, 2014 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. Quote Link to post Share on other sites
JensH 0 Posted March 2, 2014 Author Report Share Posted March 2, 2014 Working like a charm now. Thx. Quote Link to post Share on other sites
a2mateit 395 Posted March 3, 2014 Report Share Posted March 3, 2014 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. Quote Link to post Share on other sites
UBotDev 276 Posted March 3, 2014 Report Share Posted March 3, 2014 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? 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.