Selenium ChromeBrowser get() method is not working

0 votes

Below is the error when I execute my code:

Traceback (most recent call last):

  File "C:/Users/StyleZ/PycharmProjects/SpamBot/AddToGroup.py", line 13, in <module>

    browser.get(base_url)

  File "C:\Users\StyleZ\PycharmProjects\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 324, in get

    self.execute(Command.GET, {'url': url})

  File "C:\Users\StyleZ\PycharmProjects\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 312, in execute

    self.error_handler.check_response(response)

  File "C:\Users\StyleZ\PycharmProjects\venv\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response

    raise exception_class(message, screen, stacktrace)

selenium.common.exceptions.WebDriverException: Message: unknown error: unhandled inspector error: {"code":-32000,"message":"Cannot navigate to invalid URL"}

  (Session info: chrome=65.0.3325.181)

  (Driver info: chromedriver=2.32.498550 (9dec58e66c31bcc53a9ce3c7226f0c1c5810906a),platform=Windows NT 10.0.10586 x86_64)*
May 25, 2018 in Selenium by Martin
• 4,220 points
545 views

1 answer to this question.

0 votes

Make sure you are passing a valid URL to get()

selenium.common.exceptions.WebDriverException: Message: unknown error: unhandled inspector error: {"code":-32000,"message":"Cannot navigate to invalid URL"}

  (Session info: chrome=65.0.3325.181)

answered May 25, 2018 by Samarpit
• 5,130 points

Related Questions In Selenium

0 votes
1 answer

Selenium WebDriver.get(url) not working

It is a Selenium defect. Problem is ...READ MORE

answered Jun 7, 2018 in Selenium by Meci Matt
• 9,420 points
1,964 views
0 votes
0 answers

How to hover element when action class is not working in my Selenium framework ?

When i am writing the code to ...READ MORE

Feb 15 in Selenium by Raishul
319 views
0 votes
1 answer

i am not able to perform this method in selenium driver.get("google")

Hi Sachin, are you getting any errors ...READ MORE

answered May 15 in Selenium by Abha
• 22,870 points
28 views
0 votes
1 answer
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
1 answer

Selenium-Debugging Error: Element is not clickable at point (X,Y)

Another element is covering the element you ...READ MORE

answered Jul 2, 2018 in Selenium by Samarpit
• 5,130 points
2,359 views
0 votes
1 answer