FutureStack
⌘K
  • Certifications
  • Live Projects
  • Roadmaps
  • R&D Services
  • My Dashboard
Courses
Certifications
Live Projects
Roadmaps
R&D Services
Cart
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
healthy
Loading 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.

Test plan & results

0/4
Ready to run
0 passed · 0 failed · 4 pending
  • TC1 · Type into text fieldsName and email accept input.
    1. Open the page
    2. Type "Ram Sharma" into #fullName
    3. Type "ram@example.com" into #email
    4. Assert #fullName has value "Ram Sharma"
  • TC2 · Number, date and textareaSpecial input types take values.
    1. Open the page
    2. Type "27" into #age
    3. Type "1999-05-14" into #dob
    4. Type "QA engineer in the making" into #bio
    5. Assert #age has value "27"
  • TC3 · Submit and verify the echoThe result line shows what was submitted.
    1. Open the page
    2. Type "Ram Sharma" into #fullName
    3. Type "ram@example.com" into #email
    4. Type "27" into #age
    5. Click #submitInput
    6. Assert #inputResult contains "Ram Sharma"
  • TC4 · Read-only and disabled fieldsTheir state can be asserted.
    1. Open the page
    2. Assert #readonlyField has value "FS-1042"
    3. Assert #disabledField is disabled
Locator tips
  • Prefer id or data-testid over positional XPath.
  • Read-only fields are readable but not editable; disabled fields are neither.

Run history

Your runs on this challenge show up here.