File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
java/client/test/org/openqa/selenium Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -770,6 +770,7 @@ public void testShouldNotBeAbleToLocateASingleElementOnABlankPage() {
770
770
771
771
@ SwitchToTopAfterTest
772
772
@ Test
773
+ @ Ignore (FIREFOX )
773
774
public void testAnElementFoundInADifferentFrameIsStale () {
774
775
driver .get (pages .missedJsReferencePage );
775
776
driver .switchTo ().frame ("inner" );
@@ -779,6 +780,21 @@ public void testAnElementFoundInADifferentFrameIsStale() {
779
780
.isThrownBy (element ::getText );
780
781
}
781
782
783
+ @ SwitchToTopAfterTest
784
+ @ Test
785
+ @ Ignore (CHROME )
786
+ @ Ignore (EDGE )
787
+ @ Ignore (IE )
788
+ @ Ignore (SAFARI )
789
+ public void testAnElementInAFrameCannotBeAccessedFromAnotherFrame () {
790
+ driver .get (pages .missedJsReferencePage );
791
+ driver .switchTo ().frame ("inner" );
792
+ WebElement element = driver .findElement (By .id ("oneline" ));
793
+ driver .switchTo ().defaultContent ();
794
+ assertThatExceptionOfType (NoSuchElementException .class )
795
+ .isThrownBy (element ::getText );
796
+ }
797
+
782
798
@ SwitchToTopAfterTest
783
799
@ Test
784
800
@ NotYetImplemented (SAFARI )
You can’t perform that action at this time.
0 commit comments