Which of the following methods can find an element by its class name? Select two options
Answer(s): A,D
Note that the method name in the options are not in proper format, the correct one should be find_element_by_class_name and find_element_by_tag_name
which of the following may be used as a closing tag?
Answer(s): A
Note that option B <html> is the opening tag, whereas A</html> is a closing tag. C and D are not closing tags.
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)B)C)D)
In the web application you are testing, you need to select several options in a dropdown menuWhich of the following is the BEST approach for selecting a dropdown option using WebDriver?
Answer(s): D
This approach directly interacts with the dropdown element and then the option within it. Using relative or absolute XPath can work but they may become brittle if the web page structure changes. The switch_to class is mainly used to switch between the different frames and windows, it's not the best approach for this scenario.
Your SUT displays an alert with two buttons OK and CancelIssuing the dismiss*) command for that alert is equal to manually pressing which button?
Answer(s): B
The dismiss command is used to dismiss or cancel the alert, it is equivalent to clicking on the 'Cancel' button. If you want to accept the alert, you should use the accept() command.
Post your Comments and Discuss iSQI CSET-F exam prep with other Community members: