Macro issue.

needhelp2

Active Member
Joined
Apr 19, 2011
Messages
250
Hi Everybody,

I am using macro to login to my web,One i login it didnt wait for browser to become "DONE" in status bar.It moves to next step.E.g on id and password submit its execute logout script as well.and same process for next I loop
its execute loop but as per browser its not completely functional.

What i need to know how i can manage it to wait for browser.

Please Help me in this regard.

Regards,
Smith.

Rich (BB code):
Dim inputtext As Object
Dim core As ICoreVba
Dim browser As IBrowserVba
Set core = New webdesign.core
Dim i As Integer

for i=1 to 2

Application.ScreenUpdating = False

Set browser = core.StartBrowser("https://myhomeweb.net")

Call browser.FindElementVba("input text", "id=username").inputtext(Range("a1").Offset(i, 0))

Call browser.FindElementVba("input password", "id=passwd").inputtext(Range("B1").Offset(i, 0))

Call browser.FindElementVba("input checkbox", "id=persistent").Uncheck

Call browser.FindElementVba("button", "id=.save").Click

Call browser.FindElementVba("a", "text=logout").Click

Application.ScreenUpdating = True

i= i+1
 
next i


end sub
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Forum statistics

Threads
1,224,537
Messages
6,179,408
Members
452,912
Latest member
alicemil

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top