Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/seleniumbase/SeleniumBase
/ __focus
Method
__focus
seleniumbase/core/sb_cdp.py:547–550 ·
view source on GitHub ↗
(self, element)
Source
from the content-addressed store, hash-verified
545
)
546
547
def
__focus(self, element):
548
return
(
549
self.loop.run_until_complete(element.focus_async())
550
)
551
552
def
__gui_click(self, element, timeframe=None):
553
element.scroll_into_view()
Callers
1
__add_sync_methods
Method · 0.95
Calls
1
focus_async
Method · 0.80
Tested by
no test coverage detected