Reputation: 1819
I want to be able to verify (or assert) that text is not present (Ex. assertTextAbsent: "SQL Error").
I would also like to verify/assert that a value is not equal to "0".
Can I do this with Selenium IDE?
Or do I need to use Selenium Web Driver? (If so, what extension/module works best with PHP?)
Upvotes: 2
Views: 14883
Reputation: 31
To Verify / Assert a value not equalling 0 there are two ways
verifyEval | ${variable}!==0 | true
verifyEval | ${variable}==0 | false
Where ${variable} is the Selenium code for a Variable (You can also use storedVars['variable']
As for checking whether text isn't present (Be confident on what you mean)
the syntax would be
verifyNotText
However I would also look into verifyNotVisible or VerifyElementNotPresent
Upvotes: 1
Reputation: 4318
Text not present can be done with selenium IDE in easy way and you can do it, by using command verifyTextNotPresent
and assertTextNotPresent
in selenium Ide.
Command | value | target
verifyTextNotPresent | | write text here
Upvotes: 2
Reputation: 3394
Try -
verifiedTextNotPresent | exact:??? | |
The text you want to verify goes in the 'target'.
Upvotes: 3