From 51eaecd533c933de658fdfa9719cff3e0956f946 Mon Sep 17 00:00:00 2001 From: axl89 Date: Mon, 8 Aug 2016 13:22:45 +0200 Subject: [PATCH] Fixed string check. Now both branches develop and pandora_6.0 translations works --- tests/console/Policies.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/console/Policies.py b/tests/console/Policies.py index f0b54c3852..5bfa2c3f94 100644 --- a/tests/console/Policies.py +++ b/tests/console/Policies.py @@ -23,7 +23,7 @@ class Policies(PandoraWebDriverTestCase): def test_1_create_policy(self): driver = self.driver - login(driver) + login(driver,pandora_url="http://192.168.50.50:84/") detect_and_pass_all_wizards(driver) create_policy(driver,self.policy_name,"Applications",description="Policy for test") @@ -36,12 +36,12 @@ class Policies(PandoraWebDriverTestCase): def test_2_add_network_server_module_to_policy(self): driver = self.driver - login(driver) + login(driver,pandora_url="http://192.168.50.50:84/") detect_and_pass_all_wizards(driver) add_module_policy(driver,self.policy_name,"network_server",driver,module_name=self.network_server_module_name,component_group="Network Management",network_component="Host Alive") - element = driver.find_element_by_xpath('//td[contains(.,"Successfully added module.")]') + element = driver.find_element_by_xpath('//td[contains(.,"uccessfully")]') self.assertIsInstance(element,WebElement)