Selenium test is now working
It uses chrome driver rather than firefox/gecko, however.
This commit is contained in:
parent
3b0a440066
commit
a12949fba1
@ -27,9 +27,6 @@ class SeleniumTest(LiveServerTestCase):
|
||||
chrome_options.add_argument('--headless')
|
||||
chrome_options.add_argument('--disable-gpu')
|
||||
cls.sl = webdriver.Chrome(chrome_options=chrome_options)
|
||||
# profile = webdriver.FirefoxProfile()
|
||||
# profile.set_preference("dom.forms.number", False)
|
||||
# cls.sl = webdriver.Firefox(profile)
|
||||
cls.sl.implicitly_wait(TIMEOUT)
|
||||
super(SeleniumTest, cls).setUpClass()
|
||||
|
||||
@ -98,8 +95,7 @@ class MapTest(SeleniumTest):
|
||||
)
|
||||
self.sl.find_element_by_css_selector('.leaflet-marker-icon').click()
|
||||
|
||||
details_link = self.sl.find_element_by_css_selector('.ledfgdfgaflet-popup-content a.btn')
|
||||
# details_link = self.sl.find_element_by_css_selector('.leaflet-popup-content a.btn')
|
||||
details_link = self.sl.find_element_by_css_selector('.leaflet-popup-content a.btn')
|
||||
self.assertTrue(details_link.is_displayed())
|
||||
|
||||
details_link.click()
|
||||
|
Loading…
Reference in New Issue
Block a user