Published On : 28/Jan/2023 09:54:16 AM

Selenium Interview Question and Answers1) What is an Object Repository, and how does it work?An object repository is a critical component of any UI automation since it allows a tester to keep all of the objects that will be utilised in the scripts in one or more centralised locations rather than scattering them throughout the test scripts. 2) What is the Selenium Grid and how does it work?The tests were delivered to the hub by Selenium Grid. These tests are routed through Selenium Webdriver, which opens the browser and runs the test. It is possible to run tests in parallel using the whole test suite. 3) Is Selenium grid suitable for performance testing?Yes. However, it does not perform as well as a specialised Performance Testing tool such as Loadrunner. 4) What are the benefits of using Webdriver instead of Selenium Server?You don't require the Selenium-WebDriver plugin if you're using Selenium-WebDriver.Selenium Server is unique in that it use a completely separate technology.Selenium Server has Selenium RC capabilities, which is needed for backwards compatibility with Selenium 1.0.Selenium Web driver provides direct calls to browsers, taking advantage of each browser's inherent automation functionality, whereas Selenium RC relies on the selenium server injecting Javascript into the browser. 5) What capabilities does Selenium WebDriver or Selenium 2.0 have?When you need better support for something, WebDriver is the way to go.Multiple frames, pop-ups, browser windows, and notifications to managePage navigation and Ajax-based UI elements that can be dragged and droppedMulti-browser testing, including better capability for Selenium 1.0 browsers that aren't well supported 6) What are the limitations that can be encountered while inserting capabilities in webdriver to execute tests on a browser that is not supported by a webdriver?The "findElement" command may not perform as expected, which is a major limitation of injecting capabilities. 7) How can you use the Selenium Web driver to discover damaged images on a page?The Selenium web driver can be used to find broken images on a page.Get XPath and use tag name to get all the links on the page.Click on each and every link on the page.

https://dridhon.com/selenium-interview-question-and-answers/