mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2024-11-16 19:59:24 +08:00
Set sample search task to use Firefox webdriver
This commit is contained in:
parent
2d6f34012b
commit
6c232b3e89
1 changed files with 2 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue