Skip to content

Commit e77ce76

Browse files
committed
Update get_element_html(selector)
1 parent 2b9519b commit e77ce76

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

seleniumbase/core/sb_cdp.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1336,7 +1336,10 @@ def get_attribute(self, selector, attribute):
13361336
return self.find_element(selector).get_attribute(attribute)
13371337

13381338
def get_element_html(self, selector):
1339+
"""Find an element and return the outerHTML."""
13391340
selector = self.__convert_to_css_if_xpath(selector)
1341+
self.find_element(selector)
1342+
self.__add_light_pause()
13401343
return self.loop.run_until_complete(
13411344
self.page.evaluate(
13421345
"""document.querySelector('%s').outerHTML"""

0 commit comments

Comments
 (0)