SELENIUM ERROR HELP

0 votes

The errors are

Traceback (most recent call last):

  File "C:/Users/Pc/PycharmProjects/SeleniumTest/Demo/Sample.py", line 12, in <module>

    driver.find_element_by_name("btnK").send_keys(Keys.ENTER)

  File "C:\Users\Pc\PycharmProjects\SeleniumTest\venv\lib\site-packages\selenium\webdriver\remote\webelement.py", line 477, in send_keys

    self._execute(Command.SEND_KEYS_TO_ELEMENT,

  File "C:\Users\Pc\PycharmProjects\SeleniumTest\venv\lib\site-packages\selenium\webdriver\remote\webelement.py", line 628, in _execute

    return self._parent.execute(command, params)

  File "C:\Users\Pc\PycharmProjects\SeleniumTest\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 312, in execute

    self.error_handler.check_response(response)

  File "C:\Users\Pc\PycharmProjects\SeleniumTest\venv\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 237, in check_response

    raise exception_class(message, screen, stacktrace)

selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable

  (Session info: chrome=87.0.4280.88)

I just came from the selenium PyCharm tutorial from javapoint.com  Please help. I am trying to click the search with google button. It gives me the error above. Please help

My code is: 

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
# Imports Selenium and common keys, like enter
driver = webdriver.Chrome()
# Opens chrome
driver.maximize_window()
# maximize window
driver.get("https://www.google.com/")
# go to webpage google.com
driver.find_element_by_name("q").send_keys("Hello World")
# find the element with the name "q" (search bar) then types "Hello World"
driver.find_element_by_name("btnK").send_keys(Keys.ENTER)
Jan 5 in Python by MeLikeFish
• 120 points
120 views

1 answer to this question.

0 votes

Hi, @There,

A possibility is that the element is currently unclickable because it is not visible. Reasons for this may be that another element is covering it up or it is not in view, i.e. it is outside the currently viewable area.

answered Jan 5 by Gitika
• 65,870 points

Related Questions In Python

0 votes
1 answer

Help fixing the pandas error.

Try this: Uninstall python with admin privileges. Shut down ...READ MORE

answered Feb 13, 2019 in Python by Saru
5,432 views
0 votes
0 answers

hello world, somebody can help me to correct this error

for label, value in s.iteritems():     s.set_value(label, ...READ MORE

Jun 5, 2020 in Python by WELL
• 140 points
298 views
0 votes
1 answer
+2 votes
2 answers

Error while printing hello world in python.

You must be trying this command in ...READ MORE

answered Mar 31, 2018 in Python by GandalfDwhite
• 1,320 points
1,221 views
0 votes
1 answer

Installing Selenium Webdriver with Python package

Hey Hemant, for installing Selenium Webdriver with ...READ MORE

answered May 8, 2019 in Selenium by Anvi
• 14,150 points
6,056 views
0 votes
1 answer

Error:urllib and “SSL: CERTIFICATE_VERIFY_FAILED”

Hello @kartik, Insert this code at the beginning ...READ MORE

answered Jun 5, 2020 in Python by Niroj
• 82,720 points
1,843 views
0 votes
1 answer

How do I read CSV data into a record array in NumPy?

Hello @kartik, You can use Numpy's genfromtxt() method to do ...READ MORE

answered Jun 22, 2020 in Python by Niroj
• 82,720 points
2,322 views
0 votes
1 answer

How to manage local vs production settings in Django?

Hello @kartik, In settings.py: try: from local_settings ...READ MORE

answered Jun 22, 2020 in Python by Niroj
• 82,720 points
199 views
0 votes
1 answer

Please Help me About this Pygame Error installing on pip

Hi, @Micheal, Download pygame‑1.9.3‑cp37‑cp37m‑win_amd64. While if you have a 64-bit ...READ MORE

answered Oct 12, 2020 in Python by Gitika
• 65,870 points
876 views
+1 vote
1 answer

Can anyone help me with this error: TypeError: list indices must be integers or slices, not str

Hi, @Varshap  It’s a TypeError, which tells us ...READ MORE

answered Nov 5, 2020 in Python by anonymous
• 65,870 points
1,024 views