@@ -571,12 +571,12 @@ def go_forward(self):
571
571
self .__demo_mode_pause_if_active ()
572
572
573
573
def is_element_present (self , selector , by = By .CSS_SELECTOR ):
574
- self .__check_scope ()
574
+ self .wait_for_ready_state_complete ()
575
575
selector , by = self .__recalculate_selector (selector , by )
576
576
return page_actions .is_element_present (self .driver , selector , by )
577
577
578
578
def is_element_visible (self , selector , by = By .CSS_SELECTOR ):
579
- self .__check_scope ()
579
+ self .wait_for_ready_state_complete ()
580
580
selector , by = self .__recalculate_selector (selector , by )
581
581
return page_actions .is_element_visible (self .driver , selector , by )
582
582
@@ -602,7 +602,7 @@ def is_link_text_present(self, link_text):
602
602
""" Returns True if the link text appears in the HTML of the page.
603
603
The element doesn't need to be visible,
604
604
such as elements hidden inside a dropdown selection. """
605
- self .__check_scope ()
605
+ self .wait_for_ready_state_complete ()
606
606
soup = self .get_beautiful_soup ()
607
607
html_links = soup .find_all ('a' )
608
608
for html_link in html_links :
@@ -614,7 +614,7 @@ def is_partial_link_text_present(self, link_text):
614
614
""" Returns True if the partial link appears in the HTML of the page.
615
615
The element doesn't need to be visible,
616
616
such as elements hidden inside a dropdown selection. """
617
- self .__check_scope ()
617
+ self .wait_for_ready_state_complete ()
618
618
soup = self .get_beautiful_soup ()
619
619
html_links = soup .find_all ('a' )
620
620
for html_link in html_links :
@@ -626,7 +626,7 @@ def get_link_attribute(self, link_text, attribute, hard_fail=True):
626
626
""" Finds a link by link text and then returns the attribute's value.
627
627
If the link text or attribute cannot be found, an exception will
628
628
get raised if hard_fail is True (otherwise None is returned). """
629
- self .__check_scope ()
629
+ self .wait_for_ready_state_complete ()
630
630
soup = self .get_beautiful_soup ()
631
631
html_links = soup .find_all ('a' )
632
632
for html_link in html_links :
@@ -658,7 +658,7 @@ def get_partial_link_text_attribute(self, link_text, attribute,
658
658
value. If the partial link text or attribute cannot be found, an
659
659
exception will get raised if hard_fail is True (otherwise None
660
660
is returned). """
661
- self .__check_scope ()
661
+ self .wait_for_ready_state_complete ()
662
662
soup = self .get_beautiful_soup ()
663
663
html_links = soup .find_all ('a' )
664
664
for html_link in html_links :
0 commit comments