Jump to content
Sign in to follow this  
lzamora

Using ReadyStatus

Recommended Posts

lzamora

Guys,

Im using a this sentence to wait for rensponse of my $oIE3, but my page used to take 30 sec until 3 minutes, thats why im not using Loadwait and LoadwaitTimeout.

$Variable1= "Test1"

$Variable2= "Test2"

$oIE3 = _IENavigate($oIE,"javascript:go?("...$Variable1...$Variable2")'")

While _IEProperGet($oIE3,"readystate")=4

sleep(2500)

WEnd

_IEAttach($oIE4)

however this is not working as well, i need to wait my page load completly before continue my script.

Can you guys help me out on that!?

Peace!

Share this post


Link to post
Share on other sites
jvanegmond

... but my page used to take 30 sec until 3 minutes, thats why im not using Loadwait and LoadwaitTimeout.

That makes no sense. The default wait time is 5 minutes, and you can set it to wait a year.

Share this post


Link to post
Share on other sites
lzamora

That makes no sense. The default wait time is 5 minutes, and you can set it to wait a year.

Ok, if my application take more than 5 minutes to load i cant continue my test using a pre-defined command in AutoIt?

Are there any command to continue the tests only after page loads completly?...I dont wanna work with sleeps anymore, because my appl is very inconsistent.

Im sorry for my limited knowleadge, but im quite new on this field.

thank you

Share this post


Link to post
Share on other sites
jvanegmond

Ok, if my application take more than 5 minutes to load i cant continue my test using a pre-defined command in AutoIt?

Are there any command to continue the tests only after page loads completly?...I dont wanna work with sleeps anymore, because my appl is very inconsistent.

Im sorry for my limited knowleadge, but im quite new on this field.

thank you

Read the documentation of _IELoadWait a little better.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.