Styrow.dev
Question 47 of 64

How do we fetch current URL of browser?

Question

How do we fetch current URL of browser?

Answer

We can fetch current URL of browser by using getCurrentUrl() method

driver.getCurrentUrl();