Skip to content

Commit

Permalink
Added full window option in selemium
Browse files Browse the repository at this point in the history
  • Loading branch information
VRSEN committed Feb 12, 2024
1 parent 36b1fae commit 3640aca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion agency_swarm/agents/browsing/tools/util/selenium.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
selenium_config = {
"chrome_profile_path": None,
"headless": False,
"full_page_screenshot": False,
}


Expand Down Expand Up @@ -56,7 +57,10 @@ def get_web_driver():

if selenium_config.get("headless", False):
chrome_options.add_argument('--headless')
chrome_options.add_argument("--window-size=960,1080")
if selenium_config.get("full_page_screenshot", False):
chrome_options.add_argument("--start-maximized")
else:
chrome_options.add_argument("--window-size=960,1080")
chrome_options.add_argument('--no-sandbox')
chrome_options.add_argument('--disable-dev-shm-usage')
chrome_options.add_argument("--disable-extensions")
Expand Down

0 comments on commit 3640aca

Please sign in to comment.