Test fail: Selenium Python send_keys stop working

0 votes

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?

May 16, 2018 in Selenium by Martin
• 4,220 points
331 views

1 answer to this question.

0 votes

Your chrome driver should be latest version than chrome 65. It will resolve your issue.

answered May 16, 2018 by Samarpit
• 5,130 points

Related Questions In Selenium

+1 vote
1 answer
0 votes
1 answer

Error: FF Browser not working for Selenium test after update

Since Firefox's latest update to version 47.0, ...READ MORE

answered Apr 20, 2018 in Selenium by king_kenny
• 3,610 points
84 views
+2 votes
1 answer

I want the console.log output from Chrome. I'm working with selenium on Python

So this is how you do it ...READ MORE

answered May 3, 2018 in Selenium by sniffy_god
• 760 points
8,984 views
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,070 points
441 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,130 points
791 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,130 points
432 views
+1 vote
2 answers

Drop-down menu option value not working using Selenium (Python)

from selenium.webdriver.support.select import Select inputElementGa ...READ MORE

answered Nov 28, 2018 in Selenium by Rijhu mal
4,083 views
0 votes
1 answer

How to login a forum using Selenium with Python

You should try to directly log in ...READ MORE

answered Apr 27, 2018 in Selenium by Samarpit
• 5,130 points
281 views