Skip to content

Commit 2843434

Browse files
committed
Fix the save_page_source() method
1 parent aa259bb commit 2843434

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

seleniumbase/fixtures/page_actions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1530,7 +1530,7 @@ def save_page_source(driver, name, folder=None):
15301530
rendered_source = log_helper.get_html_source_with_base_href(
15311531
driver, page_source
15321532
)
1533-
html_file = open(html_file_path, "w+", "utf-8")
1533+
html_file = open(html_file_path, mode="w+", encoding="utf-8")
15341534
html_file.write(rendered_source)
15351535
html_file.close()
15361536

0 commit comments

Comments
 (0)