mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 00:42:49 +08:00
Fix Safari language switch selector
This commit is contained in:
1 parent
a8cf46f2da
commit
386c6ad49b
1 file changed
+1
-1
@@ -29,7 +29,7 @@ def check_page(driver: webdriver.Safari, width: int, height: int, label: str) ->
|
||||
assert client_link.is_displayed()
|
||||
assert demo_link.is_displayed()
|
||||
|
||||
english_button = driver.find_element(By.CSS_SELECTOR, ".lang-switch button:last-child")
|
||||
english_button = driver.find_element(By.CSS_SELECTOR, ".language-switch button:last-child")
|
||||
driver.execute_script("arguments[0].click()", english_button)
|
||||
WebDriverWait(driver, 10).until(
|
||||
lambda current: any(
|
||||
|
||||
Reference in new issue
Block a user