Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/microsoft/playwright-python
/ as_element
Method
as_element
playwright/_impl/_js_handle.py:110–111 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
108
}
109
110
def
as_element(self) -> Optional[
"ElementHandle"
]:
111
return
None
112
113
async
def
dispose(self) -> None:
114
try
:
Callers
15
test_jshandle_as_element_work
Function · 0.45
test_jshandle_as_element_return_none_for_non_elements
Function · 0.45
attach_frame
Method · 0.45
test_add_script_tag_should_work_with_a_url
Function · 0.45
test_add_script_tag_should_work_with_a_path
Function · 0.45
test_add_script_tag_should_work_with_content
Function · 0.45
test_add_style_tag_should_work_with_a_url
Function · 0.45
test_add_style_tag_should_work_with_a_path
Function · 0.45
test_add_style_tag_should_work_with_content
Function · 0.45
test_content_frame_for_non_iframes
Function · 0.45
test_content_frame_for_document_element
Function · 0.45
test_owner_frame
Function · 0.45
Calls
no outgoing calls
Tested by
15
test_jshandle_as_element_work
Function · 0.36
test_jshandle_as_element_return_none_for_non_elements
Function · 0.36
test_add_script_tag_should_work_with_a_url
Function · 0.36
test_add_script_tag_should_work_with_a_path
Function · 0.36
test_add_script_tag_should_work_with_content
Function · 0.36
test_add_style_tag_should_work_with_a_url
Function · 0.36
test_add_style_tag_should_work_with_a_path
Function · 0.36
test_add_style_tag_should_work_with_content
Function · 0.36
test_content_frame_for_non_iframes
Function · 0.36
test_content_frame_for_document_element
Function · 0.36
test_owner_frame
Function · 0.36
test_owner_frame_for_cross_process_iframes
Function · 0.36