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, 2021 in Python by MeLikeFish
• 120 points
1,339 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, 2021 by Gitika
• 65,910 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 14, 2019 in Python by Saru
8,805 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 6, 2020 in Python by WELL
• 140 points
913 views
0 votes
1 answer
0 votes
0 answers

Help, How can I fix this? TypeError: Getting error as __init__() got an unexpected keyword argument 'rotaion_range'.

datagen = ImageDataGenerator(zoom_range=0.2,rotaion_range=10,width_shift_range=0.1, height_shift_range=0.1,horizontal_flip=True, vertical_flip = False ...READ MORE

Oct 20, 2021 in Python by anonymous
• 120 points
331 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
15,187 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,880 points
6,098 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,880 points
3,241 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,880 points
670 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,910 points
3,076 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,910 points
2,037 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