Fix selenium test

This commit is contained in:
Aitor Magán 2015-01-26 16:56:53 +01:00
parent 474b49efe4
commit 078c22a18a
1 changed files with 2 additions and 4 deletions

View File

@ -178,12 +178,10 @@ class TestSelenium(unittest.TestCase):
driver.find_element_by_id('field-description').send_keys(resource_description)
driver.find_element_by_id('s2id_autogen1').clear()
driver.find_element_by_id('s2id_autogen1').send_keys(resource_format)
save_elements = driver.find_elements_by_name('save')
save_elements[len(save_elements) - 1].click()
driver.find_element_by_css_selector('button.btn.btn-primary').click()
# THIRD PAGE: Metadata
save_elements = driver.find_elements_by_name('save')
save_elements[len(save_elements) - 1].click()
driver.find_element_by_css_selector('button.btn.btn-primary').click()
def modify_ds(self, url, name, description, tags, private, searchable, allowed_users, acquire_url):
driver = self.driver