Skip to content
  • Tutorials
    • c programming
      • libraries
    • c++
    • Linux
    • Python
    • batch programming
    • Technology
  • IDE
  • Tools
how to get the url of the current page in selenium python 1

how to get the url of the current page in selenium python

May 15, 2022 by Anurag batra
print(driver.current_url)

Here is what the above code is Doing:
1. We’re creating a new instance of the Chrome driver.
2. We’re telling the driver to get the page at the URL we provided.
3. We’re printing the current URL to the console.

Categories Python Examples
Post navigation
use incognito in selenium
python function to check list element ratio with total data
© MyEduKit - 2022 . All Rights Reserved.