'How to use Selenium IDE to verify a HTML element not present
I am using Selenium IDE on FF to verify that certain HTML source code should NOT appear in the page.

The syntax I'm using is:
Command: verifyNotHtmlSource
Target: css=iframe#MainFrame
Value: Cl<sup>-</sup>
I executed this command and I expect it to fail (since there is "Cl<sup>-<sup>" in the HTML source).
But it passed !!!

Can we figure out why? How do I verify that "Cl<sup>-</sup>" is not in the HTML source ?
Solution 1:[1]
how about assertElementNotPresent | //sup | or verifyElementNotPresent | //sup | ?
Solution 2:[2]
You might consider using assertNotVisible with a straightforward css selector to the element; if it doesn't exist, the result will be true.
For example:
assertNotVisible
css=h2 sup
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | BJATZ |
| Solution 2 | ekad |
