Skip to content

Commit

Permalink
6.15.z-fix subscription search box xpath (#1405) (#1412)
Browse files Browse the repository at this point in the history
  • Loading branch information
Satellite-QE authored Jun 3, 2024
1 parent c9bf740 commit 7619959
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions airgun/entities/subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ def delete(self, entity_name):
def read_subscriptions(self):
"""Return subscriptions table"""
view = self.navigate_to(self, 'All')
view.wait_displayed(timeout=10, delay=1)
return view.table.read()


Expand Down
4 changes: 3 additions & 1 deletion airgun/views/subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
# Search field and button on Subscriptions page uses different locators,
# so subclass it and use it in our custom SearchableViewMixin
class SubscriptionSearch(Search):
search_field = TextInput(locator=(".//input[starts-with(@id, 'downshift-')]"))
search_field = TextInput(
locator=('//input[@aria-label="Search input" and @placeholder="Search"]')
)
search_button = Button('Search')


Expand Down

0 comments on commit 7619959

Please sign in to comment.