Selenium Test Elements

Select an element from the dropdown (top-right) or use the links to open a dedicated test page with instructions.


Text Input

A simple text input you can interact with using Selenium.

How to test with Selenium

- Locate the element by id element_text and send keys.

// Java
WebElement el = driver.findElement(By.id("element_text"));
el.sendKeys("Hello Selenium");

// Python
el = driver.find_element(By.ID, "element_text")
el.send_keys("Hello Selenium")

- To assert value:

assert el.getAttribute("value").equals("Hello Selenium");
# Python: assert el.get_attribute('value') == 'Hello Selenium'

Tip: use By.id selectors where possible. IDs used on this page are stable and intended for automated testing.


Back to Setup