Which of the following methods can find an element by its class name? Select two options
A. find__element__by__css__selector
B. find.__element__by__id.
C. find_ element_bY_xpath
D. find_element_by_tag_name
E. find_element_by_partial_link_text
Given a frame with an ID of "framelD". which of the following is/are the best line(s) of code for changing the context of the test script to theframe?
A. Option A
B. Option B
C. Option C
D. Option D
Your SUT displays an alert with two buttons OK and Cancel
Issuing the dismiss*) command for that alert is equal to manually pressing which button?
A. OK
B. Cancel
C. Neither
D. It is impossible to tell
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?
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)
Given that only one alert message in your web application says. "Account deleted", which line(s) of code will allow you to know that the "Account deleted" alert is displayed?
A. Option A
B. Option B
C. Option C
D. Option D
Consider the following HTML document
Which of the following CSS selectors will find the Cancel button?
A. .big.button[name="cancel"]
B. ."big button" [name="cancel'']
C. . .big_button[name="cancel"]
D. .big.button[@name="cancel"]
Consider the following XML document
A. //temperature[Berlin]/text()
B. //temperature[city="Berlin"]/text ()
C. //*[@city='Berlin' 3/text ()
D. //* f@city="Berlin"]/CDATA
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
Which of the following is a good definition for a fixture?
A. A mock object or environment used to consistently test some item, device, or piece of software
B. A function in a software library whose main purpose is to call another function often adding or enhancing functionality
C. A test automation pattern which requires that technical logic and business logic be dealt with at different levels
D. An environment for automated test scripts to execute, including tools, libraries
In test automation, what is the value of getting hooks into the System Under Test (SUT)?
A. Hooks reduce the need for changes after maintenance of the SUT
B. Hooks increase the testability of the SUT which may help success
C. Because hooks don't apply to the service level, we can test web services easier
D. Because hooks are well documented, they allow us to automate more
Which of the following is NOT part of a CSS rule-set?
A. Selector
B. Declaration
C. Property
D. Variable
Which of the following statements is true?
A. The cheapest and best way to automate is to create automated scripts for every manual test
B. While it is more expensive to automate tests, maintenance of them is much cheaper than manual testing
C. A recorded automated test script excels in interpreting the context of the testing
D. A manual tester can run tests that an automated test would lack the context to interpret
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
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 of the following BEST explains how Selenium fits within the test automation architecture?
A. Selenium supports designing test cases
B. Selenium interfaces with the SUT
C. Selenium supports implementing test cases
D. Selenium is a tool, not part of the test automation architecture