diff --git a/src/wirecloud/commons/utils/remote.py b/src/wirecloud/commons/utils/remote.py index 2ca0d59877..accc3488c0 100644 --- a/src/wirecloud/commons/utils/remote.py +++ b/src/wirecloud/commons/utils/remote.py @@ -1368,7 +1368,7 @@ def login(self, username='admin', password='admin', next=None): def get_current_view(self): try: - return self.driver.execute_script("return Wirecloud.UserInterfaceManager.header.currentView.view_name;") + return self.driver.execute_script("return document.querySelector('.wc-body').classList.contains('se-on-transition') ? '' : Wirecloud.UserInterfaceManager.header.currentView.view_name;") except: return ""