Visibility
Checking if element is visible on screen may be a non trivial task.
- An element may be removed (simplest case),
- it may have zero height or width,
- it may be covered by another element,
- it may be hidden using styles: opacity: 0, visibility: hidden, display: none,
- or moved offscreen.
Scenario
- Learn locators of all buttons.
- In your testing scenario press Hide button.
- Determine if other buttons visible or not.
Playground
| | | |
| | | |