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)
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
In the web application you are testing, a button on a page can be enabled or disabled Given the following code
Which of the following wait convenience methods is the MOST appropriate to replace [convenience method] above to click on an enabled button?
A. visibility_of_element_located
B. element_to_be_clickabl^
C. invisibility_of_element located
D. presence_of_element_located
Your web application uses a framework that creates dialogs using templates such that "OK" and "Cancel" buttons are reused by multiple dialogs The dialogs are complicated, with many buttons and other elements. You are allowed to make changes to the source code to help in testing
Which of the following is the BEST approach for locating the Cancel button in one specific dialog?
A. Add a unique class name to the button and locate it within a loaded dialog
B. Add a unique ID to the button and locate it within a loaded dialog
C. Use the absolute XPath for the button for the loaded dialog
D. Use the link text for the button to locate it within a loaded dialog
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
Consider the following test steps;
Which of the following function signatures is the best for keyword implementing test step number 1 ?
A. def login ():
B. def login_with_admin_credentials () :
C. def login(username, password) :
D. def create_user (username, user_email, password)
What is the correct sequence of standard Python log levels from lowest to highest?
A. DEBUG, WARNING. CRITICAL, INFO, ERROR
B. INFO, WARNING, ERROR, CRITICAL. BLOCKER
C. NOTE, DEBUG, INFO, WARNING, ERROR
D. DEBUG, INFO, WARNING. ERROR. CRITICAL
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
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