webpro 31 Posted June 28, 2013 Report Share Posted June 28, 2013 Do you have problems login into gmail with a compiled bot using an UI HTML design ? Works fine from within UB as a .ubot file but if i run it compiled, it misses to enter the email, which is of course the first step and everything stops. Quote Link to post Share on other sites
nuc63 27 Posted June 29, 2013 Report Share Posted June 29, 2013 No problems make sure you are using a wait for element command to make sure page is loaded before entering login/pass Quote Link to post Share on other sites
nuc63 27 Posted June 29, 2013 Report Share Posted June 29, 2013 Also add if then to check if login successful 1 Quote Link to post Share on other sites
webpro 31 Posted June 29, 2013 Author Report Share Posted June 29, 2013 Oh thanks, i never thought about making sure it logs in before doing anything as it's basic thing ! If it doesn't login, well what's the point hehehehe EDITED:Man it still refuses to enter the email. I will try a few things and update this thread in case it happens to others EDITED 2: Odd, i removed the UI HTML and added plain UI TEXT boxes instead for the login procedure and it worked fine. So it has to do with my html code but how come it works fine as a .ubot file then ? So if anyone as an idea about that, please share !Thanks Quote Link to post Share on other sites
nuc63 27 Posted June 29, 2013 Report Share Posted June 29, 2013 in a define called gmail login I use this code set(#status, "Preparing to check emails", "Global") set user agent("Internet Explorer 6") allow flash("No") allow images("Yes") set(#status, "gmail login", "Global") navigate("gmail.com", "Wait") wait(3) wait for element(<innertext="Username">, 30, "Appear") wait(3) if($exists(<innertext="Compose Mail">)) { then { gmail check() } else { wait for element(<login button>, 30, "Appear") type text(<email field>, #gmailemail, "Standard") wait(1) type text(<password field>, #gmailpassword, "Standard") wait(1) click(<login button>, "Left Click", "No") wait(3) set(#status, "Checking if Gmail login successful", "Global") wait for element(<innertext="Compose Mail">, 20, "Appear") if($exists(<innertext="Compose Mail">)) { then { set(#status, "Gmail login succesful", "Global") gmail check() } else { gmail login() } } } } Quote Link to post Share on other sites
webpro 31 Posted June 30, 2013 Author Report Share Posted June 30, 2013 Thanks mate i'll try this for sure ! 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.