Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit d406bf4

Browse files
committed
Clean: Remove kludgy explicit wait.
1 parent 7dc85c7 commit d406bf4

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

runestone/mchoice/test/test_assess.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
from unittest import TestCase
88
from selenium.webdriver.support import expected_conditions as EC
9-
from selenium.webdriver.support.ui import WebDriverWait
109
from selenium.webdriver.common.by import By
1110
from runestone.unittest_base import module_fixture_maker, RunestoneTestCase
1211

@@ -63,12 +62,6 @@ class MultipleChoiceQuestion_Tests(RunestoneTestCase):
6362
def test_ma1(self):
6463
"""Multiple Answer: Nothing selected, Check button clicked"""
6564
self.driver.get(self.host + "/index.html")
66-
wait = WebDriverWait(self.driver, 10)
67-
try:
68-
wait.until(EC.presence_of_element_located((By.ID, "question1")))
69-
except:
70-
text = self.driver.page_source
71-
print(text[:300])
7265
t1 = self.driver.find_element_by_id("question1")
7366

7467
btn_check = t1.find_element_by_tag_name("button")

0 commit comments

Comments
 (0)