Self-test questions
- What color is an element bordered with when the Find button is clicked in Selenium IDE?
- Red.
- Green.
- Amber.
- Yellow.
- If you wanted to use JavaScript to find an element on the page, which strategy would you use to find it?
- ID.
- Name.
- DOM.
- CSS Selector.
- XPath.
- Pick two from the following to perform a partial match on an attribute on an element from the beginning of the value:
contains()
.
starts-with()
.
ends-with()
.
- What is the most common way to find an element on a page?
- ID.
- XPath.
- CSS Selector.
- Name.
- If you wanted to find the sibling input that is after an input in the DOM, what will the XPath look like?
- What will the CSS look like for the previous question?