Sample Selenium Framework with TestNG
Sample Selenium Framework with TestNG : Designing a Selenium automation framework requires a well-defined approach that considers both short-term
Selenium
Sample Selenium Framework with TestNG : Designing a Selenium automation framework requires a well-defined approach that considers both short-term
Difference between driver.close() and driver.quit()
This article will show the difference between .close() and quit() functions.
driver.close() : this method closes the browser window
Run BrowserStack Cloud Test BrowserStack is a live cloud-based browser testing on real desktop and mobile browsers. You can say goodbye to your lab devices and virtual machines if you use BrowserStack. Learn more about BrowserStack on its official website: https://www.browserstack.com BrowserStack Features 1000+ desktop browsers Cross-browser testing: latest versions of Edge, Safari, […]
WebDriver Code Snippets In this tutorial, we will learn some of the useful Webdriver code snippets useful across test automation programs. How to Accept Alert? public void AcceptAlert() throws Throwable { boolean status = false; Alert alert = null; try { alert = driver.switchTo().alert(); alert.accept(); status = true; } catch (NoAlertPresentException ex) { ex.printStackTrace(); } […]
Difference between Implicit and Explicit Wait In this post, we will go through the difference between Implicit Wait and Explicit wait in Selenium WebDriver. In addition, we would go through some code examples about both of them. Implicit Wait We can use Implicit wait for waiting for a web element. So, we would be able […]
Difference between driver.get() and driver.navigate() In this post, we will look at the difference between driver.get() and driver.navigate() methods. Both methods are used to open a webpage in the browser. Each of them loads a new web page in the current browser window. Also, this is done using an HTTP GET request operation, and the methods […]