Control Flow (Loops & Conditionals)
Instructions: This page tests loops, variables, and conditional logic.
- Looping: Use a `while` loop in your script to click the "Increment" button exactly 5 times.
- Variables: After the loop, get the text from the "Current Count" display and store it in a variable.
- Conditionals: Use an `if` statement to check if your variable's value is "5".
- If the condition is true, click the "Validate" button. A success message should appear.
- Element Condition: Use an `if` statement with an `element_visible` condition to check if the "Hidden Element" is visible after clicking "Toggle Visibility".
Counter Test
Current Count: 0
Visibility Test
Variable Navigation Test
The link below will be used to test variable-based navigation.
Go to Basic Inputs (for test)