Hi All,
I am using Eclipse for java. I have to read a file. Here is my code.
The below code is in a ButtonHelper.java class:
public static String ClickButton(String locator){
try {
driver.findElement(By.xpath(locator)).click();
}catch (NoSuchElementException e) {
e.printStackTrace();
return "Fail - Click Button Not Found";
}
return "Pass";
}
In the above code, I have to read the locator from the another file called OR properties file. So how can I do that.
Help me guys.
Regards,
Sudheer