示例#1
0
 public static void input(String object, String data) {
   try {
     Log.info("Entering the text in " + object);
     driver.findElement(By.xpath(OR.getProperty(object))).sendKeys(data);
   } catch (Exception e) {
     Log.error("Not able to Enter UserName --- " + e.getMessage());
     DriverScript.bResult = false;
   }
 }
示例#2
0
 public static void click(String object, String data) {
   try {
     Log.info("Clicking on Webelement " + object);
     driver.findElement(By.xpath(OR.getProperty(object))).click();
   } catch (Exception e) {
     Log.error("Not able to click --- " + e.getMessage());
     DriverScript.bResult = false;
   }
 }