From 634e845f9be5d45db00b97e876bc2dc38ebc4c85 Mon Sep 17 00:00:00 2001 From: vijay sawant Date: Mon, 3 Jun 2024 16:59:22 +0530 Subject: [PATCH] 6.15.z-fix subscription search box xpath (#1405) * fix subscription search box xpath * add sleep to test changes in CI (cherry picked from commit 4e395a88d71931310c6200540200f441ece01990) --- 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')