@@ -181,6 +181,7 @@ public void ShouldThrowExceptionOnSelectByTextExactMatchIfOptionDoesNotExist()
181
181
}
182
182
183
183
[ Test ]
184
+ [ IgnoreBrowser ( Browser . Firefox , "Not working in all bindings." ) ]
184
185
public void ShouldNotAllowInvisibleOptionsToBeSelectedByVisibleText ( )
185
186
{
186
187
IWebElement element = driver . FindElement ( By . Name ( "invisi_select" ) ) ;
@@ -201,7 +202,7 @@ public void ShouldThrowExceptionOnSelectByVisibleTextIfOptionDisabled()
201
202
{
202
203
IWebElement element = driver . FindElement ( By . Name ( "single_disabled" ) ) ;
203
204
SelectElement elementWrapper = new SelectElement ( element ) ;
204
- Assert . Throws < NoSuchElementException > ( ( ) => elementWrapper . SelectByText ( "Disabled" ) ) ;
205
+ Assert . Throws < InvalidOperationException > ( ( ) => elementWrapper . SelectByText ( "Disabled" ) ) ;
205
206
}
206
207
207
208
[ Test ]
@@ -227,7 +228,7 @@ public void ShouldThrowExceptionOnSelectByIndexIfOptionDisabled()
227
228
{
228
229
IWebElement element = driver . FindElement ( By . Name ( "single_disabled" ) ) ;
229
230
SelectElement elementWrapper = new SelectElement ( element ) ;
230
- Assert . Throws < NoSuchElementException > ( ( ) => elementWrapper . SelectByIndex ( 1 ) ) ;
231
+ Assert . Throws < InvalidOperationException > ( ( ) => elementWrapper . SelectByIndex ( 1 ) ) ;
231
232
}
232
233
233
234
[ Test ]
@@ -253,7 +254,7 @@ public void ShouldThrowExceptionOnSelectByReturnedValueIfOptionDisabled()
253
254
{
254
255
IWebElement element = driver . FindElement ( By . Name ( "single_disabled" ) ) ;
255
256
SelectElement elementWrapper = new SelectElement ( element ) ;
256
- Assert . Throws < NoSuchElementException > ( ( ) => elementWrapper . SelectByValue ( "disabled" ) ) ;
257
+ Assert . Throws < InvalidOperationException > ( ( ) => elementWrapper . SelectByValue ( "disabled" ) ) ;
257
258
}
258
259
259
260
[ Test ]
@@ -287,7 +288,7 @@ public void ShouldAllowUserToDeselectOptionsByVisibleText()
287
288
}
288
289
289
290
[ Test ]
290
-
291
+ [ IgnoreBrowser ( Browser . Firefox , "Not working in all bindings." ) ]
291
292
public void ShouldNotAllowUserToDeselectOptionsByInvisibleText ( )
292
293
{
293
294
IWebElement element = driver . FindElement ( By . Name ( "invisi_select" ) ) ;
0 commit comments