Basically, both methods are used for the same purpose, And the purpose is to navigate a URL(a web page). If we talk about getting() method, a URL is passed as a parameter in this method like:
Here when this method is called its navigates to the webpage(yoursfriends.com) if the page is containing the js files or Ajax of the flash file so it would hold the process till then the page is loaded completely then the another action is performed. like
Step 1. driver.get();
Step 2. element.click();
Here, till then the page is completely loaded click is not to be performed.
Navigate method is also used to navigate a URL we can navigate to any URL by this method like driver.navigate.to(“ URL”); But here is the benefit that we can go back and forward in the browser history like:
So we can say that both method do exactly same thing.
I hope it helped you!