Skip to content

Commit

Permalink
Make get_current_view return none if wirecloud is in transition
Browse files Browse the repository at this point in the history
  • Loading branch information
aarranz committed Sep 13, 2018
1 parent a939d74 commit 5efa34e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wirecloud/commons/utils/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""

Expand Down

0 comments on commit 5efa34e

Please sign in to comment.