if element “element_name” is not present on UI then click on element “element_name” else do nothing
Desktop step-Definition if element “element_name” is not present on UI then click on element “element_name” else do nothing Keyword Given, When, And, Then Description If first element is not present on UI, a click will be performed on second element Declaration Code Element Application Test Data Then if element “printedContent” is not present on UI then click on element “submitBtn” else do nothing printedContent XPATH //div[@id=’printedContent’]/p submitBtn XPATH //button[text()=’Submit’] NILL NILL Remarks The “String Value” that is used through test data file should be in angular brackets We can use any variable name Restriction Element and application file should be in xml format. Table of contents Keyword Description Declaration Remarks Restriction