File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -48,22 +48,16 @@ public void SameElementLookedUpDifferentWaysUsingFindElementsShouldHaveSameHashC
48
48
}
49
49
50
50
[ Test ]
51
- [ IgnoreBrowser ( Browser . Chrome , "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4443" ) ]
52
- public void AnElementFoundInADifferentFrameViaJsShouldHaveSameId ( )
51
+ public void AnElementFoundInViaJsShouldHaveSameId ( )
53
52
{
54
53
driver . Url = EnvironmentManager . Instance . UrlBuilder . WhereIs ( "missedJsReference.html" ) ;
55
54
56
55
driver . SwitchTo ( ) . Frame ( "inner" ) ;
57
56
IWebElement first = driver . FindElement ( By . Id ( "oneline" ) ) ;
58
57
59
- driver . SwitchTo ( ) . DefaultContent ( ) ;
60
- IWebElement element = ( IWebElement ) ( ( IJavaScriptExecutor ) driver ) . ExecuteScript ( "return frames[0].document.getElementById('oneline');" ) ;
58
+ IWebElement element = ( IWebElement ) ( ( IJavaScriptExecutor ) driver ) . ExecuteScript ( "return document.getElementById('oneline');" ) ;
61
59
62
- driver . SwitchTo ( ) . Frame ( "inner" ) ;
63
-
64
- IWebElement second = driver . FindElement ( By . Id ( "oneline" ) ) ;
65
60
Assert . AreEqual ( first , element ) ;
66
- Assert . AreEqual ( second , element ) ;
67
61
}
68
62
}
69
63
}
You can’t perform that action at this time.
0 commit comments