if element “element_name” is present on UI then click on it else do nothing
Desktop step-Definition check element “element_name” exists on the UI, if not found then click on this element “element_name” Keyword Given, When, And, Then Description Will check for the first element, if first element not found then click on second element Declaration Code Element Application Test Data When check element “CloseBtn” exists on the UI, if not found then click on this element “LoginBtn” ” CloseBtn XPATH //input[@id=”close”] LoginBtn XPATH //input[@id=”login”] ” 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
if element “element_name” is present on UI then click on it else do nothing Read More »