File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ public void ShouldNotBeAbleToClickOnAnElementThatIsNotDisplayed()
77
77
{
78
78
driver . Url = javascriptPage ;
79
79
IWebElement element = driver . FindElement ( By . Id ( "unclickable" ) ) ;
80
- Assert . Throws < ElementNotVisibleException > ( ( ) => element . Click ( ) ) ;
80
+ Assert . Throws < ElementNotInteractableException > ( ( ) => element . Click ( ) ) ;
81
81
}
82
82
83
83
[ Test ]
@@ -86,7 +86,7 @@ public void ShouldNotBeAbleToTypeAnElementThatIsNotDisplayed()
86
86
{
87
87
driver . Url = javascriptPage ;
88
88
IWebElement element = driver . FindElement ( By . Id ( "unclickable" ) ) ;
89
- Assert . Throws < ElementNotVisibleException > ( ( ) => element . SendKeys ( "You don't see me" ) ) ;
89
+ Assert . Throws < ElementNotInteractableException > ( ( ) => element . SendKeys ( "You don't see me" ) ) ;
90
90
91
91
Assert . AreNotEqual ( element . GetAttribute ( "value" ) , "You don't see me" ) ;
92
92
}
@@ -97,7 +97,7 @@ public void ShouldNotBeAbleToSelectAnElementThatIsNotDisplayed()
97
97
{
98
98
driver . Url = javascriptPage ;
99
99
IWebElement element = driver . FindElement ( By . Id ( "untogglable" ) ) ;
100
- Assert . Throws < ElementNotVisibleException > ( ( ) => element . Click ( ) ) ;
100
+ Assert . Throws < ElementNotInteractableException > ( ( ) => element . Click ( ) ) ;
101
101
}
102
102
103
103
[ Test ]
You can’t perform that action at this time.
0 commit comments