iworkonline
Registered User.
- Local time
- Today, 01:59
- Joined
- May 25, 2010
- Messages
- 44
HI Guys
I am trying to send some tab keys to an IE browser but it is not working. Here is my code.
Some extra information:
The page layout where I am sending tab keys is, it contains frames and I am sending tabs keys to a table row.
When I manually tab through the page and reach the first column in the first row, the color is changed to red and then by pressing Enter I can get the details
I appreciate your help, Thanks
I am trying to send some tab keys to an IE browser but it is not working. Here is my code.
Code:
Dim IE As Object
Dim IEpage As Object
Dim dummy As String
Dim i As Integer
Set IE = CreateObject("internetexplorer.application")
IE.Visible = True
With IE
.Navigate "login page"
'Do Until IE.ReadyState = 4 'READYSTATE_COMPLETE
'DoEvents
Do While .Busy
DoEvents
Loop
End With
Set IEpage = IE.Document
AppActivate "Window Title", True
Do Until IE.ReadyState = 4 'READYSTATE_COMPLETE
DoEvents
Loop
i = 1
Do While i <= 8
SendKeys "{tab}", True
i = i + 1
Loop
SendKeys "{Enter}", True
'IE.Quit
Set IE = Nothing
Set IEpage = Nothing
The page layout where I am sending tab keys is, it contains frames and I am sending tabs keys to a table row.
When I manually tab through the page and reach the first column in the first row, the color is changed to red and then by pressing Enter I can get the details
I appreciate your help, Thanks
Last edited: