Back to Browse

Selenium with Java 53 - Cross Browser testing in selenium | Chrome, FIrefox, Edge and iE browsers

847 views
Sep 18, 2019
11:48

Cross browser testing for Chrome browser Cross browser testing for Firefox browser Cross browser testing for IE browser Cross browser testing for Edge browser What is Cross Browser Testing? Cross Browser Testing is a type of functional test to check that your web application works as expected in different browsers. Cross browser testing is the process of comparing a website or web application’s functionality and design across multiple web browsers and platforms to ensure consistent behavior and functionality for the end-user.  Why do we need Cross Browser Testing? Web-based applications are totally different from Windows applications. A web application can be opened in any browser by the end user so we need to do cross browser testing. Cross Browser Testing for Firefox Browser First we need to add Gecko driver exe file to the project @Test public void LaunchFireFoxBrowser() { WebDriver driver = new FirefoxDriver(); driver.get("http://ankpro.com/"); driver.quit(); } Cross Browser Testing for Chrome Browser First we need to add Chrome driver exe file to the project @Test public void LunchChromeBrowser() { WebDriver driver = new ChromeDriver(); driver.get("http://ankpro.com/"); driver.quit(); } Cross Browser Testing for IE Browser First we need to add Internet Explorer exe file to the project @Test public void LunchIEBrowser() { WebDriver driver = new InternetExplorerDriver(); driver.get("http://ankpro.com/"); driver.quit(); } Cross Browser Testing for Edge Browser First we need to edge browser exe file to the project [TestMethod] public void LunchEdgeBrowser() { IWebDriver driver = new EdgeDriver(); driver.Url=("http://ankpro.com/"); driver.Quit(); }

Download

0 formats

No download links available.

Selenium with Java 53 - Cross Browser testing in selenium | Chrome, FIrefox, Edge and iE browsers | NatokHD