allcapone1912 7 Posted March 16, 2016 Report Share Posted March 16, 2016 hi I have simple script to check if yahoo username is available My current code set user agent("Android") navigate("https://watchlist.yahoo.com/?.lang=en-US&.intl=us&.username={#status1}","Wait") wait for element(<(id="btn0" OR image="___IMAGE___2___IMAGE___")>,10,"Appear") if($exists(<image="___IMAGE___2___IMAGE___">)) { then { set(#username1,#status1,"Global") } else { set(#username1,"None","Global") } } existing code is work fine, without error but i need the script to work a little faster, so i decided to script it with HTTP post plugin but without any results all http get results are the same (for available an not available username)i assume here should be a trick with javascript but not really understand how Quote Link to post Share on other sites
Jakarta 6 Posted March 16, 2016 Report Share Posted March 16, 2016 (edited) try this, this will run faster, but you will need HTTP POST plugin, example return value : {"exist":true,"yid":"Your_user_name_to_chek"} set(#user_name, $plugin function("HTTP post.dll", "$http post", "https://watchlist.yahoo.com/wlidcheck", "yid=Your_user_name_to_chek&mode=check", "", "", "", ""), "Global") Edited March 16, 2016 by Jakarta 1 Quote Link to post Share on other sites
allcapone1912 7 Posted March 16, 2016 Author Report Share Posted March 16, 2016 try this, this will run faster, but you will need HTTP POST plugin, example return value : {"exist":true,"yid":"Your_user_name_to_chek"} set(#user_name, $plugin function("HTTP post.dll", "$http post", "https://watchlist.yahoo.com/wlidcheck", "yid=Your_user_name_to_chek&mode=check", "", "", "", ""), "Global") Excellent, thanks for your helpYour link get what i need 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.