Skip to content

Commit

Permalink
Use driver.click instead of driver.js_click
Browse files Browse the repository at this point in the history
Fixes #279.

driver.js_click has been unreliable for some users (to the point of
causing crashes for them) whereas driver.click has been much more
reliable.
  • Loading branch information
jdholtz committed Aug 17, 2024
1 parent 34f3966 commit cc64426
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/webdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def _get_driver(self) -> Driver:
logger.debug("Loading Southwest home page (this may take a moment)")
driver.open(BASE_URL)
self._take_debug_screenshot(driver, "after_page_load.png")
driver.js_click("(//div[@data-qa='placement-link'])[2]")
driver.click("(//div[@data-qa='placement-link'])[2]")
return driver

def _headers_listener(self, data: JSON) -> None:
Expand Down

0 comments on commit cc64426

Please sign in to comment.