Skip to content

Commit a462f4f

Browse files
committed
Fix bug with logging screenshots
1 parent edf0fce commit a462f4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

seleniumbase/core/log_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def log_screenshot(test_logpath, driver, screenshot=None, get=False):
2727
return
2828
try:
2929
if not screenshot:
30-
element = driver.find_element_by_tag_name("body")
30+
element = driver.find_element("tag name", "body")
3131
screenshot = element.screenshot_as_base64
3232
if screenshot != screenshot_warning:
3333
with open(screenshot_path, "wb") as file:

0 commit comments

Comments
 (0)