private static string GetActualInputBoxValue(SpinnerPage spinner) { string actualInputBoxValue = spinner.InputBoxValue != null ? spinner.InputBoxValue.ToString() : "null"; return(actualInputBoxValue); }
public void TestSpinnerFirstInputValueShouldBeNull() { var spinner = new SpinnerPage(Driver); spinner.SpinnerButton.Click(); spinner.AssertOnPageLoadInputValueIsNull(spinner.InputBoxValue); }
public void TestSpinnerWidgetUp() { var spinner = new SpinnerPage(Driver); spinner.SpinnerButton.Click(); spinner.ToggleWidget.Click(); spinner.AssertWidgetUpIsNull(spinner.WidgetUp); }
public void TestSpinnerWhenSetValueIsPressedInputValueShouldBe5() { var spinner = new SpinnerPage(Driver); spinner.SpinnerButton.Click(); spinner.SetValueTo5.Click(); spinner.AssertValueinInputFieldShouldBeAsGiven(spinner.InputBoxValue, 5); }
public void TestSpinnerGetValueInitialyShouldShowNull() { var spinner = new SpinnerPage(Driver); spinner.SpinnerButton.Click(); var actualInputBoxValue = GetActualInputBoxValue(spinner); spinner.GetValue.Click(); spinner.AssertValueShownInPopUpIsSameAsInInputBox(actualInputBoxValue); }
public void TestClickSpinnerWidgetUpIncreaseValue() { var spinner = new SpinnerPage(Driver); spinner.SpinnerButton.Click(); spinner.SetValueTo5.Click(); var oldValue = GetActualInputBoxValue(spinner); var expectedValue = (double.Parse(oldValue) + 1).ToString(); spinner.ClickUpWidget(); var actualValue = GetActualInputBoxValue(spinner); spinner.AssertDoubleValuesAreEqual(expectedValue, actualValue); }