예제 #1
0
 public void IsProgressBarReset()
 {
     ClickButton(startButton);
     WaitHelpers.WaitPresentElement(resetButton, Wait);
     CheckHelpers.CompareText(Driver.FindElement(progressBar).GetAttribute("class"), "success");
     ClickButton(resetButton);
     CheckHelpers.CompareText(Driver.FindElement(progressBar).GetAttribute("class"), "info");
 }
 public void LargeModalWindowTest(string text)
 {
     ClickButton(largeModalButton);
     WaitHelpers.WaitPresentElement(modalWindow, Wait);
     CheckHelpers.CompareText(BrowserHelpers.GetDialogText(Driver), text);
     ClickButton(closeLargeDialogButton);
     BrowserHelpers.IsDialogShown(Driver, modalWindow);
 }
 public void AddFewValues(string firstValue, string secondValue)
 {
     SendInfo(multipleField, firstValue);
     KeysHelpers.PressEnter(Wait, multipleField);
     SendInfo(multipleField, secondValue);
     KeysHelpers.PressEnter(Wait, multipleField);
     WaitHelpers.WaitPresentElement(multiplefieldFirstValue, Wait);
     WaitHelpers.WaitPresentElement(multiplefieldSecondValue, Wait);
     ClickButton(multipleFielDeleteButton);
     CheckHelpers.CompareText(Wait, multipleField, "");
 }
예제 #4
0
 public void CopmareDateTimeFormat() => DataHelpers.IsDataTimeFormatCorrect(WaitHelpers.WaitPresentElement(dateTimeField, Wait).GetAttribute("value"));
예제 #5
0
 protected void SendInfo(By locator, string text) => WaitHelpers.WaitPresentElement(locator, Wait).SendKeys(text);