Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (19.7k points)

I'm trying to get the current url after a series of navigations in Selenium. I know there's a command called getLocation for ruby, but I can't find the syntax for Python.

1 Answer

0 votes
by (62.9k points)

Please visit this documentation for reference:

driver.current_url

And new documentation contain it to https://seleniumhq.github.io/docs/site/en/webdriver/browser_manipulation/#get-current-url

If you are interested to learn Selenium on a much deeper level and want to become a professional in the testing domain, check out Intellipaat’s automation testing course online!

Browse Categories

...