Harisc1990 1 Posted May 4, 2016 Report Share Posted May 4, 2016 so i want to scrape an attribute off a second website such as yahoo.com and type it into the google searchbar for example. any help is appreciated :| Quote Link to post Share on other sites
deliter 203 Posted May 4, 2016 Report Share Posted May 4, 2016 hey define googleSearch(#search) { in new browser { navigate("www.google.com","Wait") wait for browser event("Everything Loaded","") type text(<name="q">,#search,"Key Press") wait(1) click(<class="sbico">,"Left Click","No") comment("remove wait,and add your code!") wait(15) } } navigate("network.ubotstudio.com/forum","Wait") wait for browser event("Everything Loaded","") set(#scrape,$scrape attribute(<title="Homepage">,"innertext"),"Global") googleSearch(#scrape) 2 Quote Link to post Share on other sites
Harisc1990 1 Posted May 4, 2016 Author Report Share Posted May 4, 2016 thanks, hope I can reproduces this for other tasks 1 Quote Link to post Share on other sites
deliter 203 Posted May 4, 2016 Report Share Posted May 4, 2016 Yeah I hope this demonstrates defines to you, this is a define command, it runs an action A define function should be used to return data define $addNumbers(#addOne, #addTwo) { return($add(#addOne,#addTwo)) } alert($addNumbers(1, 2)) 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.