I've noticed the following behavior while working with Selenium WebDriver in Firefox:
Given you open a url containing a hash: http://example.com/#app
When you try to access it again using webdriver.get()
nothing happens in Firefox (the same behavior can be noticed when you select the current url manually and press Enter).
If you do this in Chrome, the page would be re-opened.
But when you try to access the url again in Firefox using webdriver.navigate.to()
the page is re-opened.
Can someone please explain the difference between webdriver.get()
and webdriver.navigate.to()
in this case?
I've seen here https://stackoverflow.com/a/5665218/3307322 that there's no difference between the two methods, but obviously in this case they behave differently.
Thank you.