Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[6.14.z] 6.15.z-fix subscription search box xpath #1412

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading