Skip to content

Commit

Permalink
Add PageObject_ActiveControl test
Browse files Browse the repository at this point in the history
  • Loading branch information
YevgeniyShunevych committed May 17, 2018
1 parent eb05f82 commit 30a1e4d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Atata.Tests/PageObjectTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,15 @@ public void PageObject_Press()
Press("e").
TextInput.Should.Equal("abcd");
}

[Test]
public void PageObject_ActiveControl()
{
Go.To<InputPage>().
TelInput.Set("123").
ActiveControl.Attributes.Value.Should.Equal("123").
IntTextInput.Focus().
ActiveControl.Attributes.Id.Should.Equal("int-text-input");
}
}
}

0 comments on commit 30a1e4d

Please sign in to comment.