From c139e7da58857c7616ac43b6d38b74df5dcff318 Mon Sep 17 00:00:00 2001 From: Dou Du Date: Sat, 18 May 2024 09:26:34 +0200 Subject: [PATCH] add sleep 3s --- test/test.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/test.py b/test/test.py index 0b265b3..9a5b90d 100644 --- a/test/test.py +++ b/test/test.py @@ -22,7 +22,7 @@ def setup_method(self, method): def teardown_method(self, method): self.driver.quit() - + def test_one_quantumwell(self): self.driver.get("http://localhost:8383/voila/render/index.ipynb") self.driver.set_window_size(1280, 720) @@ -35,12 +35,13 @@ def test_one_quantumwell(self): def test_asymmetricwell(self): self.driver.get("http://localhost:8383/voila/render/index.ipynb") self.driver.set_window_size(1280, 720) + time.sleep(3) self.driver.find_element(By.LINK_TEXT, "Avoided Crossings in a 1D Asymmetric Quantum Well").click() time.sleep(5) self.driver.execute_script("window.scrollTo(0, 400)") self.driver.find_element(By.CSS_SELECTOR, "label:nth-child(2) > input").click() time.sleep(5) - + download = self.driver.find_elements(By.XPATH, "//button[@title='Download plot']")[0] actions = ActionChains(self.driver) actions.move_to_element(download).click().perform()