Skip to content

Commit

Permalink
Update selenium import for older python compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
KoolADE85 committed Jul 10, 2023
1 parent fe7a8e6 commit 259b63a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from selenium.common import TimeoutException
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.common.by import By
import pytest
Expand Down Expand Up @@ -48,9 +48,9 @@ def test_debounce_number_by_time(dash_dcc, debounce_number_app):

# expect that a short debounce calls back within a short amount of time
elem = dash_dcc.find_element("#input-fast")
elem.send_keys("67890")
elem.send_keys("10000")
WebDriverWait(dash_dcc.driver, timeout=1).until(
lambda d: d.find_element(By.XPATH, "//*[text()='67890']")
lambda d: d.find_element(By.XPATH, "//*[text()='10000']")
)

assert dash_dcc.get_logs() == []

0 comments on commit 259b63a

Please sign in to comment.