File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -189,14 +189,14 @@ public void ShouldNotBeAbleToLocateByTagNameMultipleElementsThatDoNotExist()
189
189
public void FindingASingleElementByEmptyTagNameShouldThrow ( )
190
190
{
191
191
driver . Url = formsPage ;
192
- Assert . Throws < InvalidSelectorException > ( ( ) => driver . FindElement ( By . TagName ( "" ) ) ) ;
192
+ Assert . Throws < NoSuchElementException > ( ( ) => driver . FindElement ( By . TagName ( "" ) ) ) ;
193
193
}
194
194
195
195
[ Test ]
196
196
public void FindingMultipleElementsByEmptyTagNameShouldThrow ( )
197
197
{
198
198
driver . Url = formsPage ;
199
- Assert . Throws < InvalidSelectorException > ( ( ) => driver . FindElements ( By . TagName ( "" ) ) ) ; ;
199
+ Assert . Throws < NoSuchElementException > ( ( ) => driver . FindElements ( By . TagName ( "" ) ) ) ; ;
200
200
}
201
201
202
202
[ Test ]
You can’t perform that action at this time.
0 commit comments