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