Selenium Test Elements

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


Autocomplete (datalist)

Type to choose from suggestions.

How to test with Selenium

- Autocomplete uses datalist; type the value and assert the input value.

el = driver.findElement(By.id("element_autocomplete"));
el.sendKeys("Apple");
# Python
driver.find_element(By.ID, "element_autocomplete").send_keys('Apple')

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


Back to Setup