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,560 points
279 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

Related Questions In Selenium

0 votes
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,130 points
747 views
0 votes
1 answer

Cannot click on a button using selenium

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

answered Jan 4 in Selenium by Dushyant
125 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 in Selenium by Abha
• 22,870 points
584 views
0 votes
1 answer

How do i click on <input type=file> on any browser if i'm testing with Selenium Webdriver?

Does not matter which OS or which ...READ MORE

answered Apr 29, 2018 in Selenium by king_kenny
• 3,650 points
2,970 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,090 points
550 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,130 points
885 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,130 points
546 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
• 56,520 points
7,337 views