SeeTestAutomation - VerifyElementNotFound
Please note that this tool is classified as a Legacy tool. We recommend transitioning to our updated solutions to maintain optimal performance and security in your workflows. For more information on this matter, please reach out to technical support .
**VerifyElementNotFound(**Zone, Element, Index)
Description
Verify that an element is not found in a specified zone
Parameters
- SeeTestAutomation - Zone: Select Zone
- SeeTestAutomation - Element: what to not find: select the Element from the drop-down list OR insert text (for OCR text identification) OR insert Native property into the empty box in the drop-down list
- SeeTestAutomation - Index: Element Order (= the number of times the element appears more then once). Index=0 refers to the first appearance of the element; Index=1 refers to the second appearance of the element, etc.
Usage
Scenario: In the following example I will check that the login process was made successfully by verifying that the 'Login' text is not found.
Command usage: In order to verify that an element is not found, you can use the 'VerifyElementNotFound" command, which will throw an exception if the element is found.
Parameters:
- Zone - Select Zone – will be set to "TEXT"
- Element - What to search for: select the Element from the drop-down list OR insert text into the empty box in the drop-down list (for OCR text identification) – will be set to 'Login'
- Index - Element or text index - will be set to "0"
Code Examples
Java Example
client.VerifyElementNotFound("TEXT", "Login", 0);
C# Example Expand source
client.VerifyElementNotFound("TEXT", "Login", 0);
VBScript Example Expand source
client.VerifyElementNotFound "TEXT", "", 0
Report
Python Example Expand source
self.client.verifyElementNotFound("TEXT", "Login", 0)
Perl Example Expand source
$client->verifyElementNotFound("TEXT", "Login", 0);