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.