We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7211403 + a1fbaa0 commit 0fdb9e8Copy full SHA for 0fdb9e8
webui.py
@@ -184,6 +184,15 @@ async def run_custom_agent(
184
playwright = await async_playwright().start()
185
chrome_exe = os.getenv("CHROME_PATH", "")
186
chrome_use_data = os.getenv("CHROME_USER_DATA", "")
187
+
188
+ if chrome_exe == "":
189
+ chrome_exe = None
190
+ elif not os.path.exists(chrome_exe):
191
+ raise ValueError(f"Chrome executable not found at {chrome_exe}")
192
193
+ if chrome_use_data == "":
194
+ chrome_use_data = None
195
196
browser_context_ = await playwright.chromium.launch_persistent_context(
197
user_data_dir=chrome_use_data,
198
executable_path=chrome_exe,
0 commit comments