Skip to content

Commit

Permalink
dogtail: support multiple status bar
Browse files Browse the repository at this point in the history
* And consider the last one as the one responsible for displaying the
  selection.
* This is needed for upcoming changes
  • Loading branch information
jeromerobert committed Sep 19, 2021
1 parent 3f2f78c commit aa0cd57
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test.py
Expand Up @@ -152,7 +152,10 @@ def _wait_cond(self, cond):

def _assert_selected(self, selection):
app = self._app()
statusbar = app.child(roleName="status bar")
from dogtail import predicate
allstatusbar = app.findChildren(predicate.GenericPredicate(roleName="status bar"), showingOnly=False)
# If we have multiple status bar, concider the last one as the one who display the selection
statusbar = allstatusbar[-1]
self.assertEqual(statusbar.name, "Selected pages: " + selection)

def _icons(self):
Expand Down

0 comments on commit aa0cd57

Please sign in to comment.