You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The WebElement clear() command doesn't work on certain inputs.
I believe it is related to React Components.
To Reproduce
Run the following script
from selenium import webdriver
from time import sleep
driver = webdriver.Chrome() #Can be Firefox as well
driver.get('https://reactjs.org/')
name_field = driver.find_element_by_id("algolia-doc-search")
print(name_field.get_property('value'))
name_field.send_keys('hello')
print(name_field.get_property('value'))
sleep(1)
name_field.clear()
print(name_field.get_property('value'))
driver.close()
Run the script. It will type 'hello' into the search bar, pause, and then send the clear command. The search bar will remain filled.
Expected behavior
clear() should empty the search bar.
Test script or set of commands reproducing this issue
python tmp.py
Issues without a reproduction script are likely to stall and eventually be closed.
Environment
OS: Linux pop-os 4.18.0-13-generic
Browser: Chrome
Browser version: 71.0.3578.98 (64-bit)
Browser Driver version: ChromeDriver 2.45
Language Bindings version: Python 3.141.0
-- or --
OS: Linux pop-os 4.18.0-13-generic
Browser: Firefox
Browser version: 64.0
Browser Driver version: GeckoDriver 0.23.0
Language Bindings version: Python 3.141.0
The text was updated successfully, but these errors were encountered:
🐛 Bug Report
The WebElement clear() command doesn't work on certain inputs.
I believe it is related to React Components.
To Reproduce
Run the following script
Run the script. It will type 'hello' into the search bar, pause, and then send the clear command. The search bar will remain filled.
Expected behavior
clear() should empty the search bar.
Test script or set of commands reproducing this issue
python tmp.py
Issues without a reproduction script are likely to stall and eventually be closed.
Environment
OS: Linux pop-os 4.18.0-13-generic
Browser: Chrome
Browser version: 71.0.3578.98 (64-bit)
Browser Driver version: ChromeDriver 2.45
Language Bindings version: Python 3.141.0
-- or --
OS: Linux pop-os 4.18.0-13-generic
Browser: Firefox
Browser version: 64.0
Browser Driver version: GeckoDriver 0.23.0
Language Bindings version: Python 3.141.0
The text was updated successfully, but these errors were encountered: