From 7619959b9f4c85dfdbf9d1fe555bc3c892a019a6 Mon Sep 17 00:00:00 2001 From: Satellite QE <115476073+Satellite-QE@users.noreply.github.com> Date: Mon, 3 Jun 2024 07:40:14 -0400 Subject: [PATCH] 6.15.z-fix subscription search box xpath (#1405) (#1412) --- airgun/entities/subscription.py | 1 + airgun/views/subscription.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/airgun/entities/subscription.py b/airgun/entities/subscription.py index 76c1009ec..6e2f89c1a 100644 --- a/airgun/entities/subscription.py +++ b/airgun/entities/subscription.py @@ -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() diff --git a/airgun/views/subscription.py b/airgun/views/subscription.py index ec0b23b27..cd3fcb24f 100644 --- a/airgun/views/subscription.py +++ b/airgun/views/subscription.py @@ -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')