Automation Practice Hub
Watch real scripts run. See exactly where they break.
Every challenge is a live page with a ready-made script in six frameworks. Let it run on Auto, or switch to Manual and do the steps yourself — the hub checks each one. Flip on Inject bug to see where a failing test gets stuck.
0/12
Challenges solved
0/46
Test cases passed
0
Runs
0
Bugs caught
0%
Overall progress
Best healthy run per challenge
InputsEasy4 test cases
Text Inputs
Text, email, password, number, date, phone, textarea, read-only and disabled fields.
Run mode
Page mode
Speed
Elements on this page — click to copy a locator
futurestack.co.in/practice-hub#inputs
healthyLoading practice page…
1import os
2from selenium import webdriver
3from selenium.webdriver.common.by import By
4from selenium.webdriver.common.action_chains import ActionChains
5from selenium.webdriver.support.ui import Select, WebDriverWait
6from selenium.webdriver.support import expected_conditions as EC
7
8BASE = "https://www.futurestack.co.in/practice-hub#inputs"
9driver = webdriver.Chrome()
10
11
12def test_tc1_type_into_text_fields():
13 """Name and email accept input."""
14 driver.get(BASE)
15 driver.find_element(By.ID, "fullName").clear()
16 driver.find_element(By.ID, "fullName").send_keys("Ram Sharma")
17 driver.find_element(By.ID, "email").clear()
18 driver.find_element(By.ID, "email").send_keys("ram@example.com")
19 assert driver.find_element(By.ID, "fullName").get_attribute("value") == "Ram Sharma"
20
21
22def test_tc2_number_date_and_textarea():
23 """Special input types take values."""
24 driver.get(BASE)
25 driver.find_element(By.ID, "age").clear()
26 driver.find_element(By.ID, "age").send_keys("27")
27 driver.find_element(By.ID, "dob").clear()
28 driver.find_element(By.ID, "dob").send_keys("1999-05-14")
29 driver.find_element(By.ID, "bio").clear()
30 driver.find_element(By.ID, "bio").send_keys("QA engineer in the making")
31 assert driver.find_element(By.ID, "age").get_attribute("value") == "27"
32
33
34def test_tc3_submit_and_verify_the_echo():
35 """The result line shows what was submitted."""
36 driver.get(BASE)
37 driver.find_element(By.ID, "fullName").clear()
38 driver.find_element(By.ID, "fullName").send_keys("Ram Sharma")
39 driver.find_element(By.ID, "email").clear()
40 driver.find_element(By.ID, "email").send_keys("ram@example.com")
41 driver.find_element(By.ID, "age").clear()
42 driver.find_element(By.ID, "age").send_keys("27")
43 driver.find_element(By.ID, "submitInput").click()
44 assert "Ram Sharma" in driver.find_element(By.ID, "inputResult").text
45
46
47def test_tc4_read_only_and_disabled_fields():
48 """Their state can be asserted."""
49 driver.get(BASE)
50 assert driver.find_element(By.ID, "readonlyField").get_attribute("value") == "FS-1042"
51 assert not driver.find_element(By.ID, "disabledField").is_enabled()
Console output
Run the tests automatically, or choose Manual and do the steps yourself on the live page.