Jump to content

First website Complete Laod then Some action Perform


Recommended Posts

Hey Guys, I'm new so go easy on me.

I want open Some website in internet explorer Then i want first website complete load and then using send("{TAB 3}") i reach some text box put values and do some action(Press Enter ).

I used sleep(some time) to load webpage then perform action it is correct.

BUT my Problems is some time website cannot load complete sleep time reach to end and auto it program do action but due to not complete loaded website it done wrong work......

Please Please tell me solution........

Thanks in Advance...

Link to comment
Share on other sites

Friends

first i tried it

#include <IE.au3>

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

_IELoadWait ($oIE)

Send("{F6 3}")

Send("{TAB 8}")

Send("{ENTER}")

_IELoadWait ($oIE)

Send("example@gmail.com")

Send("{TAB}")

Send("password")

Send("{TAB}")

Send("{ENTER}")

Second i tried it

#include <IE.au3>

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

_IELoadWait ($oIE)

Sleep(500)

Send("{F6 3}")

Sleep(500)

Send("{TAB 8}")

Sleep(500)

Send("{ENTER}")

Sleep(500)

_IELoadWait ($oIE)

Sleep(500)

Send("example@gmail.com")

Sleep(500)

Send("{TAB}")

Sleep(500)

Send("password")

Sleep(500)

Send("{TAB}")

Sleep(500)

Send("{ENTER}")

Sleep(5000)

**************************

using first code I got very bad result to login but only few time i login

using second code i got best result but not correct login all time...

Please help me

I want when Google.com open and load complete and there should be written done

in statues bar then send f6 and tab command and login page first load complete page then send user and password .

I think then it is perfect program to login Google i also facing

i also want i used do not sleep() function because some time google.com open very late.

Edited by nadeem0035
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...