Skip to content

Automate browser based workflows with AI

[Webeye] Fix JS loader encoding for domUtils.js (#3991)

kerry1cfa4577369a
diff --git a/skyvern/webeye/utils/page.py b/skyvern/webeye/utils/page.py
index f14361e8d..cb9e23b7f 100644
--- a/skyvern/webeye/utils/page.py
+++ b/skyvern/webeye/utils/page.py
@@ -25,7 +25,7 @@ def load_js_script() -> str:
try:
# TODO: Implement TS of domUtils.js and use the complied JS file instead of the raw JS file.
# This will allow our code to be type safe.
- with open(path) as f:
+ with open(path, encoding="utf-8") as f:
return f.read()
except FileNotFoundError as e:
LOG.exception("Failed to load the JS script", path=path)