Package org.openqa.selenium.chrome

Examples of org.openqa.selenium.chrome.ChromeDriver.quit()


//    by xpath
    dr.findElement(By.xpath("/html/body/form/div[3]/div/label/input")).click();
    Thread.sleep(1000);
   
    System.out.println("browser will be close");
    dr.quit()
  }

}
View Full Code Here


//    SendKeys to A
    dr.findElement(By.id("A")).sendKeys(Keys.chord("watir webdriver is better than selenium webdriver"));
   
    Thread.sleep(1000);
    System.out.println("browser will be close");
    dr.quit()
  }

}
View Full Code Here

      System.out.println("element does not exist");
    }
   
    Thread.sleep(1000);
    System.out.println("browser will be close");
    dr.quit()
  }

}
View Full Code Here

    WebElement link = dr.findElement(By.id("myModal")).findElement(By.id("click"));
    ((JavascriptExecutor)dr).executeScript("$(arguments[0]).click()", link);
   
    Thread.sleep(1000);
    System.out.println("browser will be close");
    dr.quit()
  }
}
View Full Code Here

  public static void main(String[] args) {
    WebDriver dr = new ChromeDriver();
    System.out.println("browser will be closed");
   
    dr.quit()
    System.out.println("browser is closed");
  }

}
View Full Code Here

    ((JavascriptExecutor)dr).executeScript("$(arguments[0]).fadeOut();", button);
     
   
    Thread.sleep(1000);
    System.out.println("browser will be close");
    dr.quit()
  }

}
View Full Code Here

    dr.switchTo().frame("f1");
    dr.findElement(By.linkText("click")).click();
   
    Thread.sleep(1000);
    System.out.println("browser will be close");
    dr.quit()
  }

}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.