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
(2,530 Views)
Solution
Accepted by 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
(2,528 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
(2,398 Views)

Hi elmanco,

see the example from this thread.

It shows how you can do it.

 

Mike

Message 4 of 5
(2,391 Views)
Many thanks!!!
0 Kudos
Message 5 of 5
(2,387 Views)