The line of code which you have tried as :
It is a typical Java-based line of code.
However, as per the current Python API Docs of The WebDriver implementation navigate() method is yet to be supported/implemented.
To navigate to a webpage you just write
You can do this in your program multiple times.
Hope this helps!