Skip to content

Commit be6c276

Browse files
committed
Use KeyboardHelper.EnterText instead of SendKeys
1 parent bb91354 commit be6c276

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

UITests/UITests.Tests.Shared/Controls/RangeSelectorTest.cs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,11 @@ public void SimpleTestMethod2()
5252
var submitMaximum = new Button(FindElement.ById("submitMaximum"));
5353
var submitAll = new Button(FindElement.ById("submitAll"));
5454

55-
inputStepFrequency.SendKeys("1");
56-
Wait.ForIdle();
57-
inputMinimum.SendKeys("0");
58-
Wait.ForIdle();
59-
inputRangeStart.SendKeys("10");
60-
Wait.ForIdle();
61-
inputRangeEnd.SendKeys("90");
62-
Wait.ForIdle();
63-
inputMaximum.SendKeys("100");
64-
Wait.ForIdle();
55+
KeyboardHelper.EnterText(inputStepFrequency, "1");
56+
KeyboardHelper.EnterText(inputMinimum, "0");
57+
KeyboardHelper.EnterText(inputRangeStart, "10");
58+
KeyboardHelper.EnterText(inputRangeEnd, "90");
59+
KeyboardHelper.EnterText(inputMaximum, "100");
6560

6661
submitAll.Click();
6762
Wait.ForIdle();

0 commit comments

Comments
 (0)