How do we write a generic function for DDF for verifying any text from excel and webelement present on the application | Selenium Forum
S
sajjad ali khurasani Posted on 07/06/2020

Hi Ashish,

 

I want to compare the value in the excel file with the locatorKey(actual text)

for verifying it I can hard code the value but the function should be generic so that it can be worked for any data. 


A
Ashish Thakur Replied on 09/06/2020

yes you can  make function like verifyText(String objectKey, String expectedTextKey)

objectKey- Locator of element for which text has to be verified(kept in properties file)

expectedTextKey - key in properties file holding the expected text


Related Posts