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:635–637 ·
view source on GitHub ↗
Gets the URL of the current page.
(self)
Source
from the content-addressed store, hash-verified
633
634
@property
635
def
current_url(self) -> str:
636
""
"Gets the URL of the current page."
""
637
return
self.execute(Command.GET_CURRENT_URL)[
"value"
]
638
639
@property
640
def
page_source(self) -> str:
Callers
nothing calls this directly
Calls
1
execute
Method · 0.95
Tested by
no test coverage detected