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,820 points
2,720 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,910 points
5,314 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
3,643 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, 2020 in Selenium by Justin
• 140 points

recategorized Jun 18, 2020 by Gitika 835 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
• 28,140 points
5,432 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,500 points
13,649 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

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

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
9,131 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,910 points
7,209 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 3, 2020 in Selenium by Sri
• 3,190 points
7,865 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
• 58,020 points
24,127 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