Web Automation Practice

Control Flow (Loops & Conditionals)

Instructions: This page tests loops, variables, and conditional logic.

  1. Looping: Use a `while` loop in your script to click the "Increment" button exactly 5 times.
  2. Variables: After the loop, get the text from the "Current Count" display and store it in a variable.
  3. Conditionals: Use an `if` statement to check if your variable's value is "5".
  4. If the condition is true, click the "Validate" button. A success message should appear.
  5. 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)