Skip to content

Commit

Permalink
Hard code location of chromdriver for the test server
Browse files Browse the repository at this point in the history
  • Loading branch information
asset-web committed Oct 23, 2023
1 parent b1301be commit 4478ad5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/base_selenium_test_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
logger = logging.getLogger(__name__)

class SeleniumBaseTestCase(StaticLiveServerTestCase):
"""A base test case for Selenium, providing helper methods."""
"""A base test case for Selenium, providing helper methods - NB specifically to be run on the test server"""

@classmethod
def setUpClass(cls):
super(SeleniumBaseTestCase, cls).setUpClass()
cls.display = Display(visible=0, size=(1920, 1080))
cls.display.start()
# ref: https://github.com/SeleniumHQ/selenium/issues/12746
service = webdriver.ChromeService(executable_path="../../bin/chromedriver")
service = webdriver.ChromeService(executable_path="/usr/local/projects/temmpo/lib/test/bin/chromedriver")
cls.driver = webdriver.Chrome(service=service)
cls.driver.implicitly_wait(10)

Expand Down

0 comments on commit 4478ad5

Please sign in to comment.