This short trivial code worked fine as of bef. yesterday, but now send_keys is not working anymore:
Below code was working fine earlier but not it is not working
from selenium import webdriver
driver = webdriver.Chrome()
driver.get("http://www.google.com")
elem = driver.find_element_by_name("q")
elem.send_keys("Hello WebDriver!")
elem.submit()
print(driver.title)
Stack Trace:
C:\Users\Rui\PycharmProjects\geo\venv\Scripts\python.exe C:/Users/Rui/PycharmProjects/geo/send_keys.py
debug value ('Hello WebDriver!',)
Traceback (most recent call last):
File "C:/Users/Rui/PycharmProjects/geo/send_keys.py", line 5, in <module>
elem.send_keys("Hello WebDriver!")
File "C:\Users\Rui\PycharmProjects\geo\venv\lib\site-packages\selenium\webdriver\remote\webelement.py", line 483, in send_keys
'value': keys_to_typing(value)})
File "C:\Users\Rui\PycharmProjects\geo\venv\lib\site-packages\selenium\webdriver\remote\webelement.py", line 632, in _execute
return self._parent.execute(command, params)
File "C:\Users\Rui\PycharmProjects\geo\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 312, in execute
self.error_handler.check_response(response)
File "C:\Users\Rui\PycharmProjects\geo\venv\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: call function result missing 'value'
(Session info: chrome=65.0.3325.181)
(Driver info: chromedriver=2.34.522940 (1a76f96f66e3ca7b8e57d503b4dd3bccfba87af1),platform=Windows NT
6.1.7601 SP1 x86)
Process finished with exit code 1
(the string:
debug value ('Hello WebDriver!',)
results that trying to understand what is going on, in "webelement.py" I added this line "print("debug value " + str(value))":
def send_keys(self, *value):
# 2018MAR25
# send_key generating errors since 2018MAR24!
print("debug value " + str(value))
And as it really prints "debug value ('Hello WebDriver!',)" I cannot understand why "webelement.py" is complaining that "call function result missing 'value'"
How can I solve this issue?