10 Answers, 1 is accepted
One key question to answer that affects how to accomplish this, is the 2nd drop down simply hidden or is it actually removed from the DOM (i.e. the HTML driving the page). Assuming it's simply hidden there are a few different ways to do this. You can verify whether the element is not visible or disabled.
Please watch this video demonstrating how to use the DOM explorer to locate an element that is not visible on screen to perform a verification on it. It may be easier for you to create the "element is not visible" verification first, while it is still visible, and then drag the Verify step after the step that hides it. This way prevents hunting through the DOM.
To verify if an element is disabled, please read this KB article.
the Telerik team
I have a situation where a UI object is removed from the DOM and I need to verify that it does not exist. How do I go about it?
Please ignore my previous post.
I found what I was looking for here: http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/troubleshooting_guide/test-execution-problems/if-else-logical-step-fails.aspx
Is there current documentation relevant to this forum post? Both the KB article and the documentation link are dead.
KB article: http://www.telerik.com/automated-testing-tools/support/kb/how-to-verify-the-disabled-attribute.aspx
The first article should be available soon under this URL. The second article you can find here.
Thanks for your patience and please excuse us for the inconvenience caused.
There is functionality in Test Studio for such cases, which is called WaitForExistsNo or VerifyExistsNot, which validates for certain timeout that element is not found on the page.
Please check this article to see how to use it: https://docs.telerik.com/teststudio/knowledge-base/verification-kb/verify-deleted-data
Hope this helps
Thanks for the question.
There is difference between not visible and not exist. In your case you have to change the verification to not exist. The reason is that if you have not visible out framework is waiting to find the element.
If you use not exist you will verify that the element is not there.
Do not hesitate to write back for further questions.