From 6c232b3e89df29dd2fdbfbbb57aab304a20a9d2b Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Thu, 17 Oct 2024 20:47:53 +0800 Subject: [PATCH] Set sample search task to use Firefox webdriver --- backend/webdriver/tasks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/webdriver/tasks.py b/backend/webdriver/tasks.py index 50c355b..33b390a 100644 --- a/backend/webdriver/tasks.py +++ b/backend/webdriver/tasks.py @@ -23,7 +23,8 @@ def sample_selenium_task(): @shared_task(autoretry_for=(Exception,), retry_kwargs={'max_retries': 3, 'countdown': 5}) def simple_google_search(): - driver = setup_webdriver(use_proxy=False, use_saved_session=False) + driver = setup_webdriver(driver_type="firefox", + use_proxy=False, use_saved_session=False) driver.get(f"https://google.com/") google_search(driver, search_term="cat blog posts")