Welcome Guest Search | Active Topics | Sign In | Register

Wait for Element to get visible/load Options
david
Posted: Tuesday, July 18, 2017 3:34:23 PM
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.
eo_support
Posted: Tuesday, July 18, 2017 3:39:30 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,201
david
Posted: Tuesday, July 18, 2017 4:37:40 PM
Rank: Newbie
Groups: Member

Joined: 7/18/2017
Posts: 4
is there any way we can wait for the element get visible?
eo_support
Posted: Tuesday, July 18, 2017 4:41:41 PM
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.
david
Posted: Tuesday, July 18, 2017 4:44:46 PM
Rank: Newbie
Groups: Member

Joined: 7/18/2017
Posts: 4
Thank you
david
Posted: Tuesday, July 18, 2017 4:48:58 PM
Rank: Newbie
Groups: Member

Joined: 7/18/2017
Posts: 4
how basically call this function?
eo_support
Posted: Tuesday, July 18, 2017 4:55:13 PM
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.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.