Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Selenium error - Cannot navigate to invalid URL

I get the following error :

unknown error: unhandled inspector error:
{"code":-32603,"message":"Cannot navigate to     
invalid URL"} (Session info: chrome=29.0.1547.57) (Driver info:    
chromedriver=2.2,platform=Windows NT 6.1 SP1 x86_64)

I think its got to do with chrome browser last updated version (29) about two days ago.

*Note:*my chromedriver is up to date (2.2).

please let me know what should i do to fix it.

like image 439
Daniela Avatar asked Aug 25 '13 13:08

Daniela


1 Answers

I received the same error while using Selenium on python. Prepending the destination url with http:// solved my problem:

self.driver.get("http://"+url.rstrip())
like image 62
amitdatta Avatar answered Sep 28 '22 10:09

amitdatta