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()


elem = driver.find_element_by_name("q")

elem.send_keys("Hello WebDriver!")



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


  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,340 points

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,890 points

Related Questions In Selenium

+1 vote
2 answers

Python with Selenium issue: “Chrome is being controlled by automated test software”

from selenium import webdriver chrome_options = webdriver.ChromeOptions() chrome_options.add_experimental_option("useAutomationExtension", False) chrome_options.add_experimental_option("excludeSwitches",["enable-automation"]) driver ...READ MORE

answered Apr 20, 2020 in Selenium by Manoj
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,710 points
+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
• 780 points
0 votes
2 answers

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,500 points
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
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,890 points
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 2, 2020 in Selenium by Sri
• 3,190 points
+1 vote
2 answers

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

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

answered Nov 28, 2018 in Selenium by Rijhu mal
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,890 points