MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / get_active_element

Method get_active_element

seleniumbase/core/sb_cdp.py:847–850  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

845 self.__add_light_pause()
846
847 def get_active_element(self):
848 return self.loop.run_until_complete(
849 self.page.js_dumps("document.activeElement")
850 )
851
852 def get_active_element_css(self):
853 from seleniumbase.js_code import active_css_js

Callers

nothing calls this directly

Calls 1

js_dumpsMethod · 0.45

Tested by

no test coverage detected