Jump to content
Sign in to follow this  

What'll we do if the website dont load !!!

Recommended Posts


This is my code...

#include <IE.au3>

while 1

$oIE = _IECreate ("http://www.gmail.com")

$sText = _IEBodyReadText ($oIE)

$load = _IELoadWait ($oIE ,0,30000)

If StringInStr($sText, "The page cannot be displayed") Or StringInStr($sText, "Runtime Error") Or StringInStr($sText, "unable service") OR StringInStr($sText, "Pages Error") OR Then






$o_form = _IEFormGetObjByName ($oIE, "gaia_table")

$o_login = _IEFormElementGetObjByName ($o_form, "Email")

$o_password = _IEFormElementGetObjByName ($o_form, "passwd")

$o_signin = _IEFormElementGetObjByName ($o_form, "signIn")

$username = "Nickkkkkkkkkkkkk"

$password = "Passssssssssssss"

_IEFormElementSetValue ($o_login, $username)

_IEFormElementSetValue ($o_password, $password)

_IEAction ($o_signin, "click")

If Gmail dont load... what'll we do ???

This code for Gmail... but sometime, it dont load.

So, i write this code for these cases like that.

However, my code dont run ^^ So... I need help. Someboby can help me write code for my cases ?

Such as... My PC has windows erros, so... sometime, it cant load the web site. I want the website ... if it load about 60s, but not loaded the website yet, it'll quit IE, and run the loop again (Run the website)

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this