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,320 points
2,226 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,910 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
15,879 views
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 21, 2018 in Selenium by king_kenny
• 3,710 points
1,386 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
• 780 points
41,823 views
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
13,649 views
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
9,131 views
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,910 points
7,209 views
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 3, 2020 in Selenium by Sri
• 3,190 points
7,865 views
+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
15,181 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,910 points
2,751 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP