File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -810,35 +810,6 @@ public void AnElementFoundInADifferentFrameIsStale()
810
810
Assert . That ( ( ) => { string foo = element . Text ; } , Throws . InstanceOf < StaleElementReferenceException > ( ) ) ;
811
811
}
812
812
813
- [ Test ]
814
- [ IgnoreBrowser ( Browser . Chrome , "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4443" ) ]
815
- public void AnElementFoundInADifferentFrameViaJsCanBeUsed ( )
816
- {
817
- driver . Url = missedJsReferencePage ;
818
-
819
- try
820
- {
821
- driver . SwitchTo ( ) . Frame ( "inner" ) ;
822
- IWebElement first = driver . FindElement ( By . Id ( "oneline" ) ) ;
823
-
824
- driver . SwitchTo ( ) . DefaultContent ( ) ;
825
- IWebElement element = ( IWebElement ) ( ( IJavaScriptExecutor ) driver ) . ExecuteScript (
826
- "return frames[0].document.getElementById('oneline');" ) ;
827
-
828
-
829
- driver . SwitchTo ( ) . Frame ( "inner" ) ;
830
-
831
- IWebElement second = driver . FindElement ( By . Id ( "oneline" ) ) ;
832
-
833
- Assert . AreEqual ( first , element ) ;
834
- Assert . AreEqual ( second , element ) ;
835
- }
836
- finally
837
- {
838
- driver . SwitchTo ( ) . DefaultContent ( ) ;
839
- }
840
- }
841
-
842
813
/////////////////////////////////////////////////
843
814
// Tests unique to the .NET bindings
844
815
/////////////////////////////////////////////////
You can’t perform that action at this time.
0 commit comments