Repair errors in PAN4, PAN5 and PAN9

This commit is contained in:
cesar991 2016-07-19 12:55:15 +02:00
parent f1aceec1c8
commit 70557ff2c5
3 changed files with 7 additions and 4 deletions

View File

@ -8,6 +8,8 @@ from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import StaleElementReferenceException
from selenium.common.exceptions import NoSuchElementException
from selenium.common.exceptions import NoAlertPresentException
from selenium.webdriver.remote.webelement import WebElement
import unittest, time, re

View File

@ -11,6 +11,7 @@ from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import StaleElementReferenceException, NoSuchElementException
from selenium.common.exceptions import NoAlertPresentException
from selenium.webdriver.remote.webelement import WebElement
import unittest, time, re
@ -60,7 +61,7 @@ class PAN5(PandoraWebDriverTestCase):
#Check that there are japanese characters present on the event
try:
element = driver.find_element_by_xpath('//a[contains(.,u"Alert fired (Critical condition) assigned to (管理者ガイド)")]')
element = driver.find_element_by_xpath(u'//a[contains(.,"Alert fired (Critical condition) assigned to (管理者ガイド)")]')
self.assertIsInstance(element,WebElement)
except AssertionError as e:

View File

@ -22,7 +22,7 @@ class PAN9(PandoraWebDriverTestCase):
def test_pan9(self):
driver = self.driver
login(driver,pandora_url="http://192.168.50.50:84/")
login(driver)
detect_and_pass_all_wizards(driver)
create_agent_group(driver,"PAN9_A",propagate_acl=True,description="Group A, with propagate ACL, son of ALL")
@ -37,9 +37,9 @@ class PAN9(PandoraWebDriverTestCase):
create_user(driver,"PAN9_user","pandora",profile_list=l)
logout(driver,"http://192.168.50.50:84/")
logout(driver)
login(driver,user="PAN9_user",pandora_url="http://192.168.50.50:84/")
login(driver,user="PAN9_user")
detect_and_pass_all_wizards(driver)