This is a migrated thread and some comments may be shown as answers.

What is the difference between Wait for element is Visible and Wait for Element Exists?

2 Answers 643 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Satpreet
Top achievements
Rank 1
Satpreet asked on 24 Aug 2017, 07:18 PM

On one of our webpage, on clicking the button we display the list of records. We have a loading screen with a text in <p> that is displayed until the records are fetched from DB.

I need to set some wait time using the text in <p> such that it waits until text is displayed before proceeding to the next steps. Once the text is replaced with the list items, want it to resume playback. What should I be using in this case?

 

Thanks

Satpreet

2 Answers, 1 is accepted

Sort by
0
Aaron
Top achievements
Rank 1
answered on 28 Aug 2017, 11:17 AM
Someone can correct me if I'm wrong but I believe exists looks for whether or not the element exists in the DOM at all, while visibility looks for whether or not the element is "visible" (for example, if it's an html element and you have the element "hidden" on the page. It exists, you just can't see it).
0
Elena
Telerik team
answered on 28 Aug 2017, 02:42 PM
Hi,

@Aaron: Thanks! I highly appreciate your contribution! And yes you are correct with the details you have listed! 

@Satpreet: You could be using a wait step for the element to contain some text. As far as I understand the workflow of the application this should work fine. Alternatively if you would need any further assistance please share additional details on what you have tried and what the result was. 

Thanks in advance for your cooperation! 

Regards,
Elena Tsvetkova
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Satpreet
Top achievements
Rank 1
Answers by
Aaron
Top achievements
Rank 1
Elena
Telerik team
Share this question
or