From 0ae4f6a2f2189be4518c65875a5dbb9a964197e0 Mon Sep 17 00:00:00 2001 From: Nazmus Sakib Date: Mon, 29 Apr 2024 14:41:56 +0600 Subject: [PATCH] add allow hidden filter --- Framework/Built_In_Automation/Shared_Resources/LocateElement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Framework/Built_In_Automation/Shared_Resources/LocateElement.py b/Framework/Built_In_Automation/Shared_Resources/LocateElement.py index b8c556b3d..ef23c5e20 100644 --- a/Framework/Built_In_Automation/Shared_Resources/LocateElement.py +++ b/Framework/Built_In_Automation/Shared_Resources/LocateElement.py @@ -896,7 +896,7 @@ def _get_xpath_or_css_element(element_query, css_xpath,data_set, index_number=No elif css_xpath == "css": all_matching_elements_visible_invisible = generic_driver.find_elements(By.CSS_SELECTOR, element_query) - if all_matching_elements_visible_invisible and len(filter_elements(all_matching_elements_visible_invisible, "")) > 0: + if all_matching_elements_visible_invisible and len(filter_elements(all_matching_elements_visible_invisible, Filter)) > 0: break if time.time() > end: break