public static boolean IsAt() {
    // TODO Auto-generated method stub
    Log.info("Verifying Dashboard Title");
    int dash = Driver.Instance.findElements(By.tagName("h1")).size();

    if (dash > 0) {
      Log.info("Dashboard Title found");
      return true;
    } else {
      Log.info("Dashboard Title NOT found");
      return false;
    }
  }
예제 #2
0
 public static void turnOffWait() {
   // TODO Auto-generated method stub
   Instance.manage().timeouts().implicitlyWait(0, TimeUnit.SECONDS);
   Log.info("Driver Time-Out turned OFF");
 }
예제 #3
0
 public static void Close() {
   // TODO Auto-generated method stub
   Instance.close();
   Log.info("Driver closed.");
 }