Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SeleniumHQ/selenium
/ current_url
Method
current_url
py/selenium/webdriver/remote/webdriver.py:624–626 ·
view source on GitHub ↗
Gets the URL of the current page.
(self)
Source
from the content-addressed store, hash-verified
622
623
@property
624
def
current_url(self) -> str:
625
""
"Gets the URL of the current page."
""
626
return
self.execute(Command.GET_CURRENT_URL)[
"value"
]
627
628
@property
629
def
page_source(self) -> str:
Callers
nothing calls this directly
Calls
1
execute
Method · 0.95
Tested by
no test coverage detected