click on button “element_name” and verify text in alert box partial matches with “<testdata_name>”
All Step Definition click on button “element_name” and verify text in alert box partial matches with “<testdata_name>” Keyword Given, When, And, Then Description Will check partial text in alert box Declaration Code Element Application Test Data when click on button “showAlertBtn” and verify text in alert box partial matches with “This is a simple alert” ” showAlertBtn XPATH //button[contains(text(),’Show Alert’)] ” NILL NILL Browser Support Google Chrome Firefox Edge 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 Browser Support Remarks Restriction