0% found this document useful (0 votes)
6 views2 pages

Selenium Questions

The document contains a comprehensive list of questions related to Selenium, covering its benefits, limitations, WebDriver functionalities, locators, waits, and various testing frameworks like TestNG. It also includes practical problems that require scripting solutions for common automation tasks using Selenium. Overall, it serves as a guide for understanding and applying Selenium in test automation scenarios.

Uploaded by

vihelav995
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views2 pages

Selenium Questions

The document contains a comprehensive list of questions related to Selenium, covering its benefits, limitations, WebDriver functionalities, locators, waits, and various testing frameworks like TestNG. It also includes practical problems that require scripting solutions for common automation tasks using Selenium. Overall, it serves as a guide for understanding and applying Selenium in test automation scenarios.

Uploaded by

vihelav995
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Selenium Questions:

1. What are the Benefits of Selenium?


2. What are the Limitations of Selenium?
3. What is Selenium WebDriver?
4. What are the challenges or limitations of WebDriver?
5. What are the types of WebDriver APIs available in Selenium?
6. Define Locators
7. What are the different locators in Selenium?
8. What is dynamic locator?
9. What is XPATH?
10. What are the operators used in XPATH?
11. What is “AXES” in XPATH?
12. What are the relationships used in XPATH?
13. Explain the difference between single and double slash in XPATH?
14. Explain CSS Selector?
15. What is “Wait”? What is the purpose of adding waits?
16. What is Implicit Wait?
17. What is Explicit Wait?
18. Tell me few conditions that will be used in Explicit Wait?
19. What is the difference between Implicit & Explicit Wait?
20. What is Fluent Wait in Selenium?
21. What is Object Repository?
22. What is Page Factory?
23. What is Page Object Model?
24. What are the Advantages of POM?
25. What is TestNG? What are the features of TestNG?
26. List some of the functionality in TestNG which makes it more effective?
27. What are the different types of annotations used in TestNG?
28. How do you skip a test in TestNG?
29. How will you execute multiple tests of a pattern?
30. How will you execute tests belong to multiple classes at once?
31. What is the benefit of pom.xml?
32. What is Alert? How will you handle Alert?
33. What are different types of Alerts?
34. How will you retrieve the message in an alert box ?
35. How do you handle Web-based Pop-ups in Selenium?
36. Mention 5 different exceptions you had in Selenium webdriver?
37. What is JavaScriptExecutor and in which cases JavaScriptExecutor will help in Selenium automation?
38. Tell some scenarios you could handle using "Java Script Executor" Interface?
39. Explain what is the difference between findElements() and findElement()?
40. Explain what is assertion in Selenium and what are the types of assertion?
41. What is the difference between verify and assert commands?
42. What is regular expression? How can you use regular expressions in Selenium?
43. Mention what is Listeners in Selenium WebDriver?
44. Mention what are the types of Listeners in TestNG?
45. What is the difference between driver.get() and driver.navigate.to(“url”)?
46. What is the difference between getWindowhandles() and getwindowhandle() ?
47. Explain using Webdriver how you can perform double click?
48. How will you handle working with multiple windows in Selenium?
49. Explain how you can handle frames using Selenium?
50. How do you access Excel document?
51. How do you read test data from Excel document?
52. How do you write data in an Excel document?
53. How to capture Screenshot in Selenium WebDriver?
54. How do you create report in Selenium?

Selenium Problems:

1. Write a script to open a browser, launch an application (ex: facebook), identify a text box & key in a value,
identify a dropdown & pick a value from dropdown.
2. Write a script to launch an application in 3 different browsers (chrome, IE & Firefox) based on user’s choice &
ensure that you had to wait till all fields are loaded in the page
3. Write a script to open a browser, launch an application1, then move on to another application2, come to
application1 again and move on to application 2 again
4. Write a script to print the title & url of the web page and name of the tag & text from that tag
5. How can we handle Web-based Pop-ups or Alerts in Selenium?
6. How to select a value in a dropdown?
7. How to input text in the text box without calling the sendKeys()?
8. How to get a text of a web element?
9. How to get an attribute value using Selenium WebDriver?
10. How to submit a form using Selenium WebDriver?
11. How to press ENTER key on text box In Selenium WebDriver?
12. How to mouse hover on a web element using WebDriver?
13. How to handle hidden elements in Selenium WebDriver?
14. How to find more than one web element in the list?
15. How to read a JavaScript variable in Selenium WebDriver?
16. How To Scroll Web Page Down or UP using Selenium WebDriver?

You might also like