Skip to content

Commit

Permalink
Updating .NET element finding tests for empty tag name
Browse files Browse the repository at this point in the history
  • Loading branch information
jimevans committed Jan 22, 2016
1 parent e23c598 commit 9afb684
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dotnet/test/common/ElementFindingTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,14 +189,14 @@ public void ShouldNotBeAbleToLocateByTagNameMultipleElementsThatDoNotExist()
public void FindingASingleElementByEmptyTagNameShouldThrow()
{
driver.Url = formsPage;
Assert.Throws<InvalidSelectorException>(() => driver.FindElement(By.TagName("")));
Assert.Throws<NoSuchElementException>(() => driver.FindElement(By.TagName("")));
}

[Test]
public void FindingMultipleElementsByEmptyTagNameShouldThrow()
{
driver.Url = formsPage;
Assert.Throws<InvalidSelectorException>(() => driver.FindElements(By.TagName("")));;
Assert.Throws<NoSuchElementException>(() => driver.FindElements(By.TagName("")));;
}

[Test]
Expand Down

0 comments on commit 9afb684

Please sign in to comment.