Testing With Selenium WebDriver (71 Blogs) Become a Certified Professional
AWS Global Infrastructure

Software Testing

Topics Covered
  • Testing With Selenium WebDriver (61 Blogs)

Top Selenium Interview Questions For Beginners In 2022

Last updated on Aug 30,2022 6.9K Views

According to Business Wire, web testing continues to become increasingly popular, especially with the widespread use of web components and shadow DOM in apps, as well as Chrome, Mozilla, and Edge blocking APIs. Selenium has earned the mettle of web testing tools’ poster boy, with a whopping 300 percent increase in job postings over the past three years. Organizations are hunting for professionals with Selenium certification.

There has never been a better time to attend Selenium interviews. To help you breeze through them, we have curated a list of probable Selenium interview questions and answers for the beginner level. In case you have attended Software Testing interviews recently, we encourage you to add the Selenium interview questions you faced in the comments tab below. All the best!

1. How does Selenium score over other automation tools like HP QTP, IBM RFT, and TestComplete?

HP QTP vs IBM RFT vs TestComplete vs Selenium

FeaturesHP QTPIBM RFTTestCompleteSelenium
LicenseRequiredRequiredRequiredOpen Sourced
Customer SupportYesYesYesYes, Open source community
Coding SkillsLowLowLowVery High
Environment SupportOnly WindowsOnly WindowsWindows only (7, Vista, Server 2008 or later OS)Windows, Linux, Mac
Language SupportVB ScriptJava and C#VB Script, JS Script, Delphi Script, C++ & C#Java, C#, Ruby, Python, Perl & PHP

2. What is Selenium?

  • Wikipedia defines Selenium as “a portable software testing  framework for web applications. Selenium provides a record/playback tool for authoring tests without learning a test scripting language.”
  • In other words, Selenium is a browser automation tool that allows you to automate operations such as Type, Click, and Selection from a web page drop down.

 3. What is Selenium 1.0?

Selenium 1.0 is also known as Selenium Remote Control. It is essentially a virtual library that is available in multiple languages.

4. What is Selenium 2.0?

  • Selenium 2.0 is also known as WebDriver. This is the latest offering of Selenium that aims to:
  • Provide a better, more robust API compared to Selenium 1.0
  • Overcome the Javascript security restriction that hinders the performance of Selenium 1.0.
  • Supports more UI operations such as drag and drop

5. What is Selenium IDE?

Selenium IDE is a record and playback tool which is distributed as a Firefox plugin. Selenium IDE can be used only with Firefox browser.

6. Which is the latest Selenium tool?

Selenium WebDriver

7. List the different Selenium tools.

  • Selenium Integrated Development Environment (IDE)
  • Selenium Remote Control (RC)
  • Selenium WebDriver
  • Selenium Grid

8. What kind of testing does Selenium support?

Selenium supports Functional Testing and Regression Testing.

9. What is Selenese?

Selenese is the language used to write test scripts in Selenium IDE.

10. What are the different ways Selenium IDE can be opened?

Selenium IDE can be opened either through the sidebar or as a pop-up window.

11. What is Selenium Grid?

Selenium grid is the functionality that lets you distribute your tests simultaneously across multiple machines. Selenium Grid helps in reducing the time taken for test execution and provides instant feedback to stack holders.

12. When should one use Selenium Grid?

Selenium Grid could be used to execute the same or different test scripts on multiple platforms and browsers in parallel. It helps achieve distributed test execution, testing under different environments, and saving execution timelines.

Setting up a grid with all required browsers and operating systems is a challenge. For this, multiple online platforms provide an online Selenium Grid that you can access to run your selenium automation scripts. For example, you can use LambdaTest. It has more than 2000 browser environments over which you can run your tests and truly automate cross-browser testing.

13. What is the difference between Assert and Verify commands?

The Assert command checks is a particular condition is true or false. If the condition is true, the program control will execute the next test step. If the condition is false, the execution will stop, and no further tests will be executed.

The Verify command also checks if a particular condition is true or false. The program execution doesn’t stop, irrespective of whether the condition is true or false.

14. List the different types of locaters in Selenium.

  • ID
  • ClassName
  • Name
  • TagName
  • LinkText
  • PartialLinkText
  • Xpath
  • CSS Selector
  • DOM

15. What is the function of Xpath?

Xpath is a locater used to locate a web element based on its XML path. XML stands for Extensible Markup Language and organizes and transports arbitrary data. It stores data in a key value, similar to HTML tags.

16. Explain the difference between single and double slash in X-path.

A single slash ( / ) begins selection from the document node, while a double slash ( // ) begins selection matching anywhere in the document.

17. List the different types of Drivers in WebDriver.

  • FirefoxDriver
  • InternetExplorerDriver
  • ChromeDriver
  • SafariDriver
  • OperaDriver
  • AndroidDriver
  • IPhoneDriver
  • HtmlUnitDriver

18. What is the difference between Verification and Assertion?

 Verification and Assertion are two Check functionalities. Verification allows test execution to continue even when Check fails, while assertion stops the test execution.

19. List the parameters that one needs to pass in Selenium.

  • Host
  • Port Number
  • Browser
  • URL

20. Explain the difference between Implicit Wait and Explicit Wait.

In Selenium, the Implicit Wait function sets a timeout for all successive web element searches. For a certain amount of time, it will attempt to look for an element repeatedly before throwing a NoSuchElementException. ExplicitWait, on the other hand, is a one-time function that is used for a particular search.

21. How does one submit a form in Selenium?

WebElement el  =  driver.findElement(By.id(“ElementID”)); el.submit();

22.  How does one execute Java scripts function in Selenium?

JavascriptExecutor js = (JavascriptExecutor) driver; String title = (String) js.executeScript(“pass your java scripts”);

23. How does one calculate the number of rows using Selenium 2.0?

JavascriptExecutor js = (JavascriptExecutor) driver;

String title = (String) js.executeScript(“pass your java scripts”);

24. How does one capture a page title in Selenium 2.0?

String title =  driver.getTitle()

25. How does one store the current URL using Selenium 2.0?

String currentURL  = driver.getCurrentUrl()

Edureka has a specially curated course on Testing with Selenium WebDriver that is co-created with real-life industry practitioners. The course deep dives into Selenium and WebDriver including TDD, TestNG, Sikuli, and JaCoCo. New batches are coming up so check out the Selenium course in Bangalore to learn more.

Got a question for us? Please mention it in the comments section and we will get back to you.

Related Posts:

Get Started with Testing with Selenium WebDriver

Test Automation with Selenium WebDriver

Upcoming Batches For Selenium Certification Training Course
Course NameDate
Selenium Certification Training Course

Class Starts on 10th September,2022

10th September

SAT&SUN (Weekend Batch)
View Details
Selenium Certification Training Course

Class Starts on 19th September,2022

19th September

MON-FRI (Weekday Batch)
View Details
Selenium Certification Training Course

Class Starts on 8th October,2022

8th October

SAT&SUN (Weekend Batch)
View Details
1 Comment

Join the discussion

Browse Categories

Send OTP
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP

Subscribe to our Newsletter, and get personalized recommendations.

image not found!
image not found!

Top Selenium Interview Questions For Beginners In 2022