1 / 12

DevLabs Alliance important Selenium Interview Questions for SDET (1)

selenium questions

Download Presentation

DevLabs Alliance important Selenium Interview Questions for SDET (1)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Important Selenium Interview Questions for SDET By DevLabs Alliance Visit us at: www.devlabsalliance.com Email: training@devlabsalliance.com Contact: +91 9717514555

  2. Selenium Interview Questions for SDET 11. What is the syntax of XPath? //tagName[@attributeName = ‘attributeValue’] for eg.: //input[@id = ‘txtUserName’]

  3. Selenium Interview Questions for SDET 12. What is the difference between findElement() and findElements()? FindElement() returns only one Web Element.If there are more than 1 matches, then it will return first appearance in DOM. If there is no such element present in the DOM, then it will throw ElementNotFound exception. FindElements() returns the list of Web elements present in the webpage. If there is no such element present, then it will return the empty list and will not throw any exception.

  4. Selenium Interview Questions for SDET 13. What is the difference between Implicit Wait and Explicit Wait? Implicit Wait: It is used to tell Web driver to wait for some certain amount of time while trying to find an element in DOM before throwing an exception. It is applied on all Selenium commands. Explicit Wait: It is used to tell the Web driver to wait for some extended amount of time for some specific search or till the time some specific condition is met. It is one-timer and is used for a particular search.

  5. Selenium Interview Questions for SDET 14. What are the different Exceptions present in Selenium Web driver? The various exceptions in Selenium Webdriver are as follows: NoSuchElementException ElementNotVisibleException TimeOutException NotFoundException SessionNotFoundException • • • • •

  6. Selenium Interview Questions for SDET 15. What are the different ways to refresh browser using Selenium? The different ways to refresh the browser are: navigate.refresh() getCurrentURL() navigate.to(driver.getCurrentURL()) sendKeys(Keys.F5) • • • •

  7. Selenium Interview Questions for SDET 16. What are the different types of navigation commands? The different types of navigation commands are: driver.navigate().to(Url) driver.navigate().forward() driver.navigate().refresh() driver.navigate().back() • • • •

  8. Selenium Interview Questions for SDET 17. What are the different ways to select a value in a dropdown? The different ways to select a value in a dropdown are: selectByVisibleText() selectByValue() selectByIndex() • • •

  9. Selenium Interview Questions for SDET 18. What is the difference between driver.close() and driver.quit() commands? driver.close() is used to close only the current window that IWebDriver is controlling driver.quit() is used to close all the Windows opened by IWebDriver.

  10. Selenium Interview Questions for SDET 19. What is Single Slash(/) and Double Slash(//) in XPath? Single Slash is used in Absolute XPath and it instructs the XPath Search Engine to start searching for element starting from the root node. Double Slash is used in Relative XPath and it instructs the XPath Search Engine to search for matching element anywhere in the XML document.

  11. Selenium Interview Questions for SDET 20. How to use screen coordinates while using click command? To click on any specific part of an element, clickAt command is used. ClickAt command uses element locator and x,y co-ordinates as arguments- clickAt(locator, coordString)

  12. Visit us at: www.devlabsalliance.com Email: training@devlabsalliance.com Contact: +91 9717514555

More Related