Black Friday Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

Full Access iSQI CSeT-F Tutorials

Page: 2 / 2
Total 40 questions

A4Q Certified Selenium Tester Foundation Questions and Answers

Question 5

Which of the following snippets of code would allow you to open a browser window and go to the python web site using WebDriver with Python bindings?

Options:

A.

driver = webdriver Chrome()

get('HTTPS //www python com)

B.

driverwebdnver Chrome()

driver refresh('HTTPS://www_python com')

C.

driver = webdriver Chrome()

driver.get('HTTPS://www.python com ')

D.

driver webdriver Chrome(HTTPS://www python com)

Question 6

In the web application you are testing, you need to select several options in a dropdown menu

Which of the following is the BEST approach for selecting a dropdown option using WebDriver?

Options:

A.

Use the switch_to class to switch to the dropdown element, and then click on the option in the dropdown

B.

Click on the dropdown option using its relative XPath

C.

Click on the dropdown option using its absolute XPath

D.

Click on the dropdown element and then click on the option in the dropdown

Page: 2 / 2
Total 40 questions