Skip to content

Commit

Permalink
Update raw selenium examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmintz committed Oct 13, 2023
1 parent b8f3e97 commit b0d1990
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion examples/migration/raw_selenium/flaky_messy_raw.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Flaky Raw Selenium Example - (ONLY Selenium / NO SeleniumBase)"""
import sys
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
from unittest import TestCase

Expand All @@ -20,7 +21,8 @@ def setUp(self):
"profile.password_manager_enabled": False,
}
options.add_experimental_option("prefs", prefs)
self.driver = webdriver.Chrome(options=options)
service = Service(service_args=["--disable-build-check"])
self.driver = webdriver.Chrome(options=options, service=service)

def tearDown(self):
if self.driver:
Expand Down
4 changes: 3 additions & 1 deletion examples/migration/raw_selenium/long_messy_raw.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Long & Messy Raw Selenium Example - (ONLY Selenium / NO SeleniumBase)"""
import sys
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
Expand All @@ -22,7 +23,8 @@ def setUp(self):
"profile.password_manager_enabled": False,
}
options.add_experimental_option("prefs", prefs)
self.driver = webdriver.Chrome(options=options)
service = Service(service_args=["--disable-build-check"])
self.driver = webdriver.Chrome(options=options, service=service)

def tearDown(self):
if self.driver:
Expand Down
4 changes: 3 additions & 1 deletion examples/migration/raw_selenium/messy_raw.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Messy Raw Selenium Example - (ONLY Selenium / NO SeleniumBase)"""
import sys
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
from unittest import TestCase
Expand All @@ -21,7 +22,8 @@ def setUp(self):
"profile.password_manager_enabled": False,
}
options.add_experimental_option("prefs", prefs)
self.driver = webdriver.Chrome(options=options)
service = Service(service_args=["--disable-build-check"])
self.driver = webdriver.Chrome(options=options, service=service)

def tearDown(self):
if self.driver:
Expand Down
4 changes: 3 additions & 1 deletion examples/migration/raw_selenium/refined_raw.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Refined Raw Selenium Example - (ONLY Selenium / NO SeleniumBase)"""
import sys
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
from unittest import TestCase
Expand All @@ -21,7 +22,8 @@ def setUp(self):
"profile.password_manager_enabled": False,
}
options.add_experimental_option("prefs", prefs)
self.driver = webdriver.Chrome(options=options)
service = Service(service_args=["--disable-build-check"])
self.driver = webdriver.Chrome(options=options, service=service)

def tearDown(self):
if self.driver:
Expand Down

0 comments on commit b0d1990

Please sign in to comment.