check for the first element “element_name”, if not found then click on second element “element_name” in the desktop window
Desktop step-Definition check for the first element “element_name”, if not found then click on second element “element_name” in the desktop window Keyword Given, When, And, Then Description Check for the presence of the first element, and if not found, click on the second element in the desktop window. Declaration Code Element Application Test Data When check for the first element “UseremailField”, if not found then click on second element “InputField” in the desktop window ” InputField ID Input ” NILL NILL Remarks This step checks for the first element with the name “element_name” in the desktop window. If not found, it clicks on the second element with the same name. Restriction There should be at least two elements with the name “element_name” in the desktop window. The elements should be accessible and interactable. Table of contents Keyword Description Declaration Remarks Restriction