SDMedia 0 Posted October 9, 2013 Report Share Posted October 9, 2013 (edited) I am trying to get this done: 1. Navigate to URL2. 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 October 9, 2013 by SDMedia Quote Link to post Share on other sites
orbital 15 Posted October 9, 2013 Report Share Posted October 9, 2013 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") } } Quote Link to post Share on other sites
orbital 15 Posted October 9, 2013 Report Share Posted October 9, 2013 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. 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.