diff --git a/tests/console/include/common_classes_60.py b/tests/console/include/common_classes_60.py index 23b87e60ba..e66aa5ca44 100644 --- a/tests/console/include/common_classes_60.py +++ b/tests/console/include/common_classes_60.py @@ -50,7 +50,7 @@ class PandoraWebDriverTestCase(TestCase): self.sauce_labs_job_id = self.driver.session_id # We store this information to update the job info when the tests are done self.driver.implicitly_wait(30) - self.base_url = "http://localhost/" + self.base_url = "http://127.0.0.1/" self.verificationErrors = [] self.accept_next_alert = True super(PandoraWebDriverTestCase, self).setUp() diff --git a/tests/console/include/common_functions_60.py b/tests/console/include/common_functions_60.py index 6c8210e73a..3cdde1a3a9 100644 --- a/tests/console/include/common_functions_60.py +++ b/tests/console/include/common_functions_60.py @@ -44,7 +44,13 @@ def refresh_N_times_until_find_element(driver,n,element_text,how=By.ID,refresh_t raise TimeoutException("Element %s not found" % (element_text)) def logout(driver,url): - driver.get(url+'/pandora_console/index.php?bye=bye') + if url[-1] != '/': + driver.find_element_by_xpath('//div[@id="container"]//a[@href="'+url+'/pandora_console/index.php?bye=bye"]').click() + else: + driver.find_element_by_xpath('//div[@id="container"]//a[@href="'+url+'pandora_console/index.php?bye=bye"]').click() + + driver.get(url+"/pandora_console/index.php") + refresh_N_times_until_find_element(driver,2,"nick") def create_report(driver,nombre,group_name): click_menu_element(driver,"Custom reporting")