Skip to content

Commit 90cd568

Browse files
dont break the loop until a displayed element is found
1 parent 2732705 commit 90cd568

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Framework/Built_In_Automation/Shared_Resources/LocateElement.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ def _get_xpath_or_css_element(element_query, css_xpath, index_number=False, Filt
710710
By.CSS_SELECTOR, element_query
711711
)
712712

713-
if all_matching_elements_visible_invisible:
713+
if all_matching_elements_visible_invisible and len(filter_elements(all_matching_elements_visible_invisible, "")) > 0:
714714
break
715715
time.sleep(0.5)
716716
# end of while loop

0 commit comments

Comments
 (0)