About this question
I am currently automating a web-based application by using Selenium WebDriver. When I was navigating through different pages, I needed to capture the current URL of the web page programmatically. How can I use the selenium’s “getCurrentUrl” method for achieving this particular Objective?