DEV Community

Alagupandi
Alagupandi

Posted on

Task-15

[Q.no.1]

Difference between selenium IDE, selenium webdriver, and selenuim grid.

1)Selenium IDE:-

(i) Selenium IDE is for less-technical testers to create a visual.

(ii) Selenium IDE offers simple installation and is easy to learn.

(iii) Selenium IDE is an open source test automation tool that can record and playback your actions on the web.

2)Selenium Web driver:-

(i) WebDriver should be used for more complex tests that need to loop, perform setup or interact with external systems.

(ii) WebDriver supports a wide range of browsers and provides more control over testing scenarios and browser configurations.

(iii) Selenium WebDriver is more powerful and flexible at a higher cost.

3)Selenium grid:-

(i) Grid-like example of what they want to test.

(ii) Selenium Grid is designed to facilitate parallel and distributed testing across multiple machines and browsers simultaneously.

(iii) Selenium Grid is a smart proxy server that makes it easy to run tests in parallel on multiple machines.

[Q.no.2]

I made some collapse in eclipse to create package for this question, so i copy and paste the code.

package Task15;

import org.openqa.selenium.chrome.ChromeDriver;

public class Task15Q2 {

public static void main(String[] args) {
    ChromeDriver driver = new ChromeDriver();

    //pass the url

    driver.get("https://www.google.com/");

    //Maximize the window

    driver.manage().window().maximize();

    //Close the browser

    driver.close();



}
Enter fullscreen mode Exit fullscreen mode

}

[Q.no.3]

Selenium:-

Selenium is an open-source suite of tools and libraries that is used for browser automation. Selenium us used to: It allows users to test their websites functionally on different browsers. Perform Cross browser testing to check if the website functions consistently across different browsers.

Selenium uses:-

  1. Language and Framework Support.
  2. Open Source Availability.
  3. Multi-Browser Support.
  4. Support Across Various Operating Systems.
  5. Ease Of Implementation.
  6. Reusability and Integrations.

[Q.no.4]

Web drivers used in selenium:-

The major implementation classes of WebDriver interface are
1.AndroidDriver
2.FirefoxDriver
3.ChromeDriver
4.SafariDriver
5.OperaDriver
6.iPhoneDriver
7.HtmlUnit Driver
8.InternetExplorerDriver.

Each driver class corresponds to a browser. We simply create the object of the driver classes and work with them. It helps you to execute Selenium Scripts on Chrome browser.

Top comments (0)