Fixed login twice in test PAN_2

This commit is contained in:
axl89 2016-05-24 19:33:41 +02:00
parent 9a0f13a2b4
commit 1590ffcfb0
1 changed files with 0 additions and 6 deletions

View File

@ -17,12 +17,6 @@ class PAN2(PandoraWebDriverTestCase):
def test_pan2(self): def test_pan2(self):
driver = self.driver driver = self.driver
login(driver,"admin","pandora",self.base_url) login(driver,"admin","pandora",self.base_url)
driver.get(self.base_url + "/pandora_console/index.php")
driver.find_element_by_id("nick").clear()
driver.find_element_by_id("nick").send_keys("admin")
driver.find_element_by_id("pass").clear()
driver.find_element_by_id("pass").send_keys("t3st1ng!")
driver.find_element_by_id("submit-login_button").click()
element = driver.find_element_by_xpath("//ul[@id='subViews']/li[4]/a/div") element = driver.find_element_by_xpath("//ul[@id='subViews']/li[4]/a/div")
driver.execute_script("arguments[0].click();", element) driver.execute_script("arguments[0].click();", element)
driver.find_element_by_id("submit-crt").click() driver.find_element_by_id("submit-crt").click()