From 15e4f6bb27148cb7a287024b3f09cc9c388bf507 Mon Sep 17 00:00:00 2001 From: axl89 Date: Thu, 14 Jul 2016 11:21:38 +0200 Subject: [PATCH] Fixed PAN8 failing sometimes in the assert --- tests/console/PAN8.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/console/PAN8.py b/tests/console/PAN8.py index 55043fb1fd..11699e2098 100644 --- a/tests/console/PAN8.py +++ b/tests/console/PAN8.py @@ -45,10 +45,12 @@ class PAN8(PandoraWebDriverTestCase): detect_and_pass_all_wizards(driver) search_agent(driver,"PAN_8") - + try: #The user should be able to see the module with Tag + module = driver.find_element_by_xpath('//td[contains(.,"With tag")]') self.assertEqual("With tag" in driver.page_source,True) + except AssertionError as e: self.verificationErrors.append(str(e))