Cannot click on Google search.

0 votes

I am using name tag to find the search button in google and am unable to click on that I am getting an error saying :

org.openqa.selenium.ElementNotVisibleException: element not interactable

Can someone help me?

I am using

driver.findElement(By.name("btnK")).click();

Dec 21, 2018 in Selenium by Jino
• 5,670 points
784 views

1 answer to this question.

0 votes

There is a very tiny mistake that you are doing here:

The element requires a response of submit and not click.

So just by changing the method of response you will be good to go!

driver.findElement(By.name("btnK")).submit();

Hope this helps.

answered Dec 21, 2018 by Shuvodip
Thanks for the help :)

Related Questions In Selenium

+1 vote
1 answer

Angular JS: Selenium cannot click a button by python code on mac

You can try clicking it with javascript ...READ MORE

answered Aug 9, 2018 in Selenium by Samarpit
• 5,890 points
1,903 views
0 votes
1 answer

Cannot click on a button using selenium

The error that I figured out was ...READ MORE

answered Jan 4, 2019 in Selenium by Dushyant
940 views
0 votes
0 answers

I cannot click on the last element and i have been trying for hours PLEASE HELP!!!

from selenium import webdriver from selenium.webdriver.chrome.options import Options from ...READ MORE

Jun 18 in Selenium by Justin
• 140 points

recategorized Jun 18 by Gitika 44 views
0 votes
2 answers

Python & Selenium: How to find and click on YouTube's Like button

Hello Nitin, as the Like button on ...READ MORE

answered Aug 23, 2019 in Selenium by Abha
• 27,930 points
1,811 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,510 points
3,121 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,890 points
2,355 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,890 points
2,504 views
0 votes
2 answers

Unable to Click on an Element in Selenium (Python) even after finding it.

Here, I give you working script which ...READ MORE

answered Sep 19, 2018 in Selenium by Priyaj
• 57,550 points
15,333 views