VBA Selenium Rapid Refresh Error

richardbreak

New Member
Joined
Mar 11, 2012
Messages
12
Hi
I am using Selenium and VBA to book an event.
The website where I need to book has a page which has a "countdown" until the booking times are released.
Once the booking "opens" then this page refreshes. (Prior to this it has a Please do not refresh message on it)

I have a loop
Do While obj.IsElementPresent(findby.XPath("//*[text() = 'Booking will automatically become available in:']"), timeout = 2000)
which waits until the page changes
and then
If obj.IsElementPresent(findby.Css(".controls [data-teetime-selected*= '" & Teetime & "']"), 1) Then

I am getting a "Rapid Refresh Detected" page when the page switches state when it "Opens" instead of the tee booking page.

Does VBA refresh the page somehow every time it loops?
Has anyone come across this before?

Perhaps I could load all elements and then search for the correct time?

Hopefully enough info and issue described OK - Unfortunately unable to copy website address.

Any assistance much appreciated

Thank you
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Forum statistics

Threads
1,215,059
Messages
6,122,918
Members
449,094
Latest member
teemeren

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