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?
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
Which of the following states for a link WebElement could be checked to ensure that trying to click on the WebElement does not fail?
Choose three of the seven answers
A. The WebElement is selected
B. The WebElement exists
C. The WebElement is not selected
D. The WebElement is displayed
E. The WebElement is at a particular X,Y location
F. The WebElement is enabled
G. The WebElement has a text value
Which of the following is a good definition for DOM?
A. An API interface which treats an HTML document as a tree structure where each node represents an object
B. A mock object, emulator or simulator which allows the automation to consistently test some capability, even when the physical object is not available
C. A test automation pattern which forces the technical and business layers to be considered separately
D. A layer which provides an environment for automated test scripts to execute
If you need to test the content within a specific frame in a web page, which one of the following is the BEST approach for gaining access to the frame?
A. Get handles for the open frames and switch to the frame with that handle
B. Execute JavaScriptwindow_open code to open the desired frame
C. Create a WebDriver object for the frame and use the gotframeQ method using the object
D. Use the swltch_to class to switch to the desired frame
Which of the following is a limitation of a test automation project that is likely to cause an organization to get less return on their investment than they expected?
A. Approach stating that all manual tests should be automated
B. The pesticide paradox is decreased with automation
C. Short-term thinking and inadequate planning for the automation
D. Executing tests outside of normal business hours
Given a link with an ID = "Hnk1". which line(s) of code will get the text within the webelement?

A. Option A
B. Option B
C. Option C
D. Option D
Which of the following is an example of a potential negative outcome associated with Selenium test automation project?
A. Ease of running large sets of regression tests when new features are added
B. Reduced code coverage at the unit and integration test levels
C. Finding so many defects that the release process is slowed down
D. Allowing people with limited technical understanding to automate tests
In the web application you are testing, you need to select each option in several dropdown menus.Which of the following is the BEST approach for making your test scripts maintainable?
A. Assign IDs for each dropdown and each option
B. Create a function for clicking on a dropdown then clicking on the option
C. Create unique tags for the elements
D. Create keywords for the dropdowns and the options
Assume thatwithin the ACME com homepage there exists the following edit box:

and that it is the only text box with the name "q" Lookat the following lines of code:

What is the correct sequence of above lines to take a screenshot of ACME.com homepage?
A. IV, II, V, I. Ill
B. II, IV. I, V. Ill
C. II, IV, III, V, I
D. II. IV. V. I. Ill
Which would be the best set of methods called by a Page Object that corresponds to the following dialog box?

A. log_in, cancel_log_in, remind_password
B. log_in, cancel_log_in. clear_user, clear_password
C. enter_login. enter_password, log_in, cancel
D. push_button(button), enter__text(text). clickjink(link)