innerged 15 Posted November 20, 2013 Report Share Posted November 20, 2013 (edited) I setup the captcha, but about 10% of the time it fails, how do i set it up to retry few times? this is the signup link https://signup.live.com/signup.aspx?wa=wsignin1.0&rpsnv=11&ct=1384911138&rver=6.1.6206.0&wp=MBI&wreply=http%3a%2f%2fmail.live.com%2fdefault.aspx&id=64855&cbcxt=mai&snsc=1&bk=1384911139&uiflavor=web&mkt=EN-US&lc=1033&lic=1 Edited November 20, 2013 by innerged Quote Link to post Share on other sites
pftg4 102 Posted November 20, 2013 Report Share Posted November 20, 2013 use a loop while captcha exits (element on page) both captcha tries < 3 then increment variable each try pftg4 Quote Link to post Share on other sites
innerged 15 Posted November 20, 2013 Author Report Share Posted November 20, 2013 use a loop while captcha exits (element on page) both captcha tries < 3 then increment variable each try pftg4I lost you on the "both captcha tries <3" Quote Link to post Share on other sites
luis carlos 94 Posted November 20, 2013 Report Share Posted November 20, 2013 loop while($exists(<id=w"wlspispSolutionElement*">)) { navigate("https://signup.live.com/signup.aspx?wa=wsignin1.0&rpsnv=11&ct=1384911138&rver=6.1.6206.0&wp=MBI&wreply=http%3A%2F%2Fmail.live.com%2Fdefault.aspx&id=64855&cbcxt=mai&snsc=1&bk=1384911139&uiflavor=web&mkt=EN-US&lc=1033&lic=1", "Wait") comment("------your code---------") wait(5) type text(<id=w"wlspispSolutionElement*">, $solve captcha(<src=w"https://DC2.client.hip.live.com/GetHIPData?hid=*">), "Standard") wait(5) click(<title="I accept">, "Left Click", "No")} Quote Link to post Share on other sites
innerged 15 Posted November 20, 2013 Author Report Share Posted November 20, 2013 This is frustrating for me because it loops and loops the same code over and over again. I tried doing an if statement to no avail. It seems like to me that I would have to do something with the define and set commands, but getting a logic to work is what's getting me. 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.