|
Rank: Newbie Groups: Member
Joined: 7/18/2017 Posts: 4
|
I used thread.sleep function to wait but its not a good approach also my program crashes sometimes so kindly guide me to a better approach for waiting till the element gets load or visible.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,201
|
|
|
Rank: Newbie Groups: Member
Joined: 7/18/2017 Posts: 4
|
is there any way we can wait for the element get visible?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,201
|
No. The browser engine does not give you any interface specifically for that purpose. The basic rule is whatever you want to do you would do it with JavaScript (you can use WebView.EvalScript or WebView.QueueScriptCall). DoEvents only provides you a way to wait while the internally working of the WebView continues, as opposes to Thread.Sleep freezing everything.
|
|
Rank: Newbie Groups: Member
Joined: 7/18/2017 Posts: 4
|
Thank you
|
|
Rank: Newbie Groups: Member
Joined: 7/18/2017 Posts: 4
|
how basically call this function?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,201
|
david wrote:how basically call this function? You need to read the reference section first for this kind of questions.
|
|