From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Web Browser: how to wait until page loaded?

Solved!
Go to solution

I used a Web Browser ActiveX in my user interface, I open a page with the IWebBrowser2 --> Navigate2 method then I made the ActiveX visible.

The problem is that Navigate2 doesn't wait the page is completely loaded.

Is there a way to force this behaviour (LV 8.2 on WinXP)?

 

 

 

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 1 of 5
(3,624 Views)
Solution
Accepted by topic author vix

Hi Vix,

you can check the ready state in a while loop. Place it after the navigate2 invoke node.

 

Mike

Message 2 of 5
(3,622 Views)

I am also trying to open a page and log the following:

 

- time it takes to open

- if it opens or not

 

I tried to read the status with the activex but don't know exactly what method to use; could you give more details?

 

Thank you

0 Kudos
Message 3 of 5
(3,492 Views)

Hi elmanco,

see the example from this thread.

It shows how you can do it.

 

Mike

Message 4 of 5
(3,485 Views)
Many thanks!!!
0 Kudos
Message 5 of 5
(3,481 Views)