Latest Selenium Interview Questions With Answers

Part 6

26 : Can nosotros automate desktop software application's testing using selenium WebDriver?
Answer : No. This Is the biggest disadvantage of selenium WebDriver API. We tin rate the sack automate alone spider web too mobile software application's testing using selenium WebDriver.

27 : Can you lot country me the choice driver.get() method to opened upward URL In browser?
Answer : We tin rate the sack exercise anyone from bellow given 2 methods to opened upward URL In spider web browser In selenium webdriver software testing tool.
  1. driver.get()
  2. driver.navigate().to()
28 : Can you lot country me a divergence between driver.get() and driver.navigate() methods?
Answer : Main too mostly used functions of both methods are equally bellow.

driver.get()
  • driver.get() method Is to a greater extent than oft than non used for Open URL of software spider web application.
  • It volition await till the whole page gets loaded.
driver.navigate()
  • driver.navigate() method Is to a greater extent than oft than non used for navigate to URL of software spider web application, navigate back, navigate forward, refresh the page.
  • It volition only navigate to the page but await non wait till the whole page gets loaded.
29 : WebDriver has built In Object Repository. Correct me If I am wrong.
Answer : No. WebDriver create non bring whatever built In object repository till now. But yes, I am using coffee .properties file In my framework to shop all required chemical cistron objects In my tests. View Example.

30 : Can you lot country me syntax to educate browser window size to 800(Width) X 600(Height)?
Answer : We tin rate the sack educate browser window size using setSize method of selenium webdriver software testing tool. To educate size at 800 X 600, Use bellow given syntax In your examine case.

driver.manage().window().setSize(new Dimension(500,500));


More interesting articles here :Generation Enggelmundus Internet Marketing Tool here :Zeageat IM http://www.software-testing-tutorials-automation.com/
Post a Comment (0)
Previous Post Next Post