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,770 points
896 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
2,224 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
1,198 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 89 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
2,177 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,520 points
3,806 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

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

answered Aug 31 in Selenium by Sri
• 2,970 points
4,787 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,890 points
2,758 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 2 in Selenium by Sri
• 2,970 points
3,121 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,700 points
16,729 views