Spaces:
Running
Running
Trisha Tomy
commited on
Commit
·
110100c
1
Parent(s):
f4016b3
headless
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ _runner = None
|
|
19 |
async def perform_hardcoded_salesforce_login_and_get_cookies(username, password, login_url, target_url):
|
20 |
logger.info("Attempting hardcoded Salesforce login with Playwright to obtain cookies...")
|
21 |
async with async_playwright() as p:
|
22 |
-
browser = await p.chromium.launch(headless=
|
23 |
context = await browser.new_context()
|
24 |
page = await context.new_page()
|
25 |
|
@@ -89,7 +89,7 @@ async def initialize_runner_with_cookies(cookies: list, target_url: str):
|
|
89 |
"environment": {
|
90 |
"name": "webbrowser",
|
91 |
"homepage": "about:blank", # Safe startup, we'll open new tab programmatically
|
92 |
-
"headless":
|
93 |
"launch_args": ["--no-sandbox", "--disable-setuid-sandbox"],
|
94 |
"screenshot_delay": 0.5,
|
95 |
"include_html": True,
|
|
|
19 |
async def perform_hardcoded_salesforce_login_and_get_cookies(username, password, login_url, target_url):
|
20 |
logger.info("Attempting hardcoded Salesforce login with Playwright to obtain cookies...")
|
21 |
async with async_playwright() as p:
|
22 |
+
browser = await p.chromium.launch(headless=True, args=["--no-sandbox", "--disable-setuid-sandbox"])
|
23 |
context = await browser.new_context()
|
24 |
page = await context.new_page()
|
25 |
|
|
|
89 |
"environment": {
|
90 |
"name": "webbrowser",
|
91 |
"homepage": "about:blank", # Safe startup, we'll open new tab programmatically
|
92 |
+
"headless": True,
|
93 |
"launch_args": ["--no-sandbox", "--disable-setuid-sandbox"],
|
94 |
"screenshot_delay": 0.5,
|
95 |
"include_html": True,
|