Change tracking systems like GitHub Issues track all changes to a product-both bugs and enhancement requests.
True
The reason for using a change tracking system like GitHub Issues is that it:
All HTML elements must have a name, id, or class.
False
What does the following snippet print?
url_ddg = “https://api.duckduckgo.com”
resp = requests.get(url_ddg + “/?=presidents%20of%20the%20united%20states&format=json”
rsp_data = resp.json()
print(rsp_data[“Heading”])
prints the one and only value of the “Heading” dictionary item returned by the website, assuming that such an item exists
Using relative XPath is preferred over absolute XPath.
True
In pytest-bdd, scenario outlines can usually be replaced by pytest parametrization.
True
In Selenium tests, what type of wait should one use if there is an element that might load slowly, such as an image?
Explicit
Every element on a page might have a unique locator, but it is not required.
True
Why are Web elements and locators separate concerns?
HTML class attributes are unique within a document.
False
What are the commands or actions supported by python’s requests REST API?
get - retrieves information from a server
post - can create a subordinate resource
put - can replace a resource at a known URL
delete - removes a resource
In a Selenium test, how do find_element and find_elements differ?
In Selenium tests, an element may exist before it appears.
True
HTML name attribute is unique within a document.
False
Which of the following CSS selectors would select only “div” elements with the class name “parent”?
div.parent
The HTML DOM structures the web page as a tree.
True
CSS selectors can uniquely identify any given element on a Web page.
False
A Gherkin Background section will execute before each Scenario.
True
JSON is represented in Python by a dictionary.
True
Testing often requires the tester to identify manually the element to test and its locator.
True
The HTML DOM defines the logical structure of documents and the way a document is accessed and manipulated.
True