Styrow.dev
Question 47 of 82

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();


šŸ“² Practice Offline on Mobile: Download the free QA Automation & SDET Prep app on Google Play & App Store.