Which of the following statements is true?
Answer : B
Automating tests is generally more expensive than manual testing in terms of initial setup and development costs. However, once automated tests are created, they can be run repeatedly with minimal additional cost. In contrast, manual testing typically requires human testers to perform the same tasks repeatedly, which can be more time-consuming and expensive in the long run.
It's worth noting that creating automated scripts for every manual test is not always the cheapest and best way to automate. Automating tests that are not frequently run or that do not provide much value in terms of detecting bugs or improving product quality may not be the best use of resources. Automated tests should be selected based on the goals of the testing and the expected return on investment.
Manual testers can run tests that an automated test would lack the context to interpret, and automated test script may not excel in interpreting the context of the testing. It depends on the scenario and the automation approach.
Which of the following statements about XPath is true?
Answer : D
XPath is a query language used to traverse and find nodes in XML documents. It uses a syntax expression to identify elements and attributes in an XML document, allowing you to select and extract specific data. XPath does not use CSS selectors to identify nodes, it uses its own syntax. Additionally, XPath is not used to gather input from users, but rather to traverse and find nodes in XML documents.
Which of the following is NOT part of a CSS rule-set?
Answer : D
A CSS rule-set consists of a selector and a declaration. The selector specifies which element(s) to style, and the declaration contains the property and the value which define how the element will be styled. Variables are not part of a CSS rule-set.
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?
Answer : B
Issuing the dismiss command for that alert is equal to manually pressing the Cancel button (Option B). The dismiss command is used to close an alert without taking any action, so it is the same as pressing the Cancel button.
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?
Answer : B
This method will wait until the element is both visible and enabled, ensuring that the button is in a clickable state before attempting to click on it.
Which of the following Selenium tools is primarily used for capture/playback?
Answer : A
Selenium IDE (Integrated Development Environment) is primarily used for capture/playback. Selenium IDE is a Firefox plugin that allows testers to record and playback user interactions with a web application. It can be used to quickly create automated tests that can be used to verify the functionality of the System Under Test (SUT). It is also easy to set up and use [1], making it ideal for those with limited technical understanding.
In test automation, what is the value of getting hooks into the System Under Test (SUT)?
Answer : B
Hooks increase the testability of the SUT, which may help improve the success of test automation. By adding hooks into the System Under Test (SUT), testers can gain access to important information that allows them to better understand the system and its behavior [1]. This in turn helps them to create more reliable and effective tests, as well as to make the necessary adjustments to the SUT when needed.
In test automation, getting hooks into the System Under Test (SUT) increases the testability of the SUT. Test hooks are points in the SUT where automated tests can interact with it, for example, by sending inputs and receiving outputs. By providing hooks into the SUT, developers make it easier for testers to automate tests and verify the behavior of the SUT. This can improve the overall success of the automation effort by increasing the coverage and reliability of the tests.