1 / 12

DevLabs Alliance important Selenium Interview Questions for SDET continued

Read to get information about the important selenium interview questions.

Download Presentation

DevLabs Alliance important Selenium Interview Questions for SDET continued

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 Continued By DevLabs Alliance Visit us at: www.devlabsalliance.com Email: training@devlabsalliance.com Contact: +91 9717514555

  2. Selenium Interview Questions for SDET 21. How can you submit a form using Selenium? submit() method on element is used to submit a form. element.submit();

  3. Selenium Interview Questions for SDET 22. How can you login in the site if it is showing any authentication pop- up for username and password? We can login by passing the username and password with URL: http://username:password@url

  4. Selenium Interview Questions for SDET 23. What is Object Repository? Object Repository is used to store all the objects that are used in the scripts in one or more centralized location rather than scattered all over the test script. The main advantage of using Object repository is to segregate all objects in one place. If any locator value of any web element changes, then change need to be done at only one place i.e. object repository rather than making changes in all test cases where that particular locator is used.

  5. Selenium Interview Questions for SDET 24. How double click can be performed using Selenium Webdriver? We can performed double click by using Actions class. Actions act= new Actions(driver); act.doubleClick(webElement);

  6. Selenium Interview Questions for SDET 25. How to get a text of a web element? getText() method is used to get the text of a web element. string text= driver.findElement(by.id(“Text”)).getText();

  7. Selenium Interview Questions for SDET 26. What are Soft Assert and Hard Assert in Selenium? Soft Assert does not throw any exception if an assert statement fails and will continue to next step in the test after the assert statement. Hard Assert throws an AssertException if any assert statement fails and will not continue with the further steps in the test.

  8. Selenium Interview Questions for SDET 27. What is Selenium Webdriver? Webdriver is an API that is easy to explore and understand and helps us to make tests easier to read and maintain. It is an interface that comes under org.openqa.selenium package of Selenium.

  9. Selenium Interview Questions for SDET 28. Is Webdriver class or an Interface? Webdriver is an interface and comes under the org.openqa.selenium package of Selenium and a sub-interface of “SearchContext”.

  10. Selenium Interview Questions for SDET 29. Name some interfaces in Webdriver Interface. Some of the interfaces in Webdriver Interface are as follows: WebDriver.ImeHandler: An interface used for managing inputs. WebDriver.Navigation: An interface used for managing Page navigation. WebDriver.Options: An interface used for managing browser menu operations. WebDriver.TargetLocator: An interface used for locating frames and windows. WebDriver.Timeouts: An interface used for managing timeouts. WebDriver.Window: An interface used for managing window visualization. • • • • • •

  11. Selenium Interview Questions for SDET 30. How to launch a browser using Selenium WebDriver? Browser is launched by creating an object of a required driver class such as FirefoxDriver, ChromeDriver, InternetExplorerDriver, etc. Launching Chrome Driver: WebDriver driver = new ChromeDriver(); Launching FireFox Driver: WebDriver driver = new GeckoDriver(); Launching Internet Explorer Driver: WebDriver driver = new InternetExplorerDriver();

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

More Related