public VendOrHold SelectCapacity(int capacity)
        {
            var key = $"cap{capacity}";

            WaitUtils.WaitLocator(Driver, Locators[key], 5);
            elements[key].Click();
            return(this);
        }
        public bool IsPrefixNumberValidated(int timeoutSecond = 15)
        {
            var el = WaitUtils.WaitLocator(Driver, Locators["prefixValidationError"], timeoutSecond);

            return(el != null);
        }
Exemple #3
0
 public Review ClickVendIdentifier()
 {
     WaitUtils.WaitLocator(Driver, Locators["vendIdentifier"], 5);
     elements["vendIdentifier"].Click();
     return(this);
 }
Exemple #4
0
        public string ReadLabel(string elementKey)
        {
            var el = WaitUtils.WaitLocator(Driver, Locators[elementKey], 15);

            return(el.Text);
        }
Exemple #5
0
 public OnHoldPrefixesReview ClickYesButton()
 {
     WaitUtils.WaitLocator(Driver, Locators["yesButton"], 5).Click();
     return(this);
 }
 public OpenPrefixRange ClickNextButton()
 {
     WaitUtils.WaitLocator(Driver, Locators["next"], 5);
     elements["next"].Click();
     return(this);
 }
 public OpenPrefixRange ClickEnableAutomaticVending()
 {
     WaitUtils.WaitLocator(Driver, Locators["autoVendingCheckbox"], 5);
     elements["autoVendingCheckbox"].Click();
     return(this);
 }
Exemple #8
0
 protected override void WaitForPage()
 {
     WaitUtils.WaitLocator(Driver, Locators["thankYou"], 180);
 }
 public VendOrHold ClickEdiComIdButton()
 {
     WaitUtils.WaitLocator(Driver, Locators["ediComIdButton"], 5);
     elements["ediComIdButton"].Click();
     return(this);
 }
 public VendOrHold ClickEanPrefix()
 {
     WaitUtils.WaitLocator(Driver, Locators["eanPrefixButton"], 5);
     elements["eanPrefixButton"].Click();
     return(this);
 }
 public VendOrHold ClickHoldAPrefix()
 {
     WaitUtils.WaitLocator(Driver, Locators["hold"], 5);
     elements["hold"].Click();
     return(this);
 }
 public VendOrHold ClickVendAnIdentifier()
 {
     WaitUtils.WaitLocator(Driver, Locators["vend"], 5);
     elements["vend"].Click();
     return(this);
 }
 public VendOrHold EnterReasonForHolding(string reason)
 {
     WaitUtils.WaitLocator(Driver, Locators["reason"], 5);
     elements["reason"].SetText(reason);
     return(this);
 }
 public VendOrHold EnterLabelerCode(string labelerCode)
 {
     WaitUtils.WaitLocator(Driver, Locators["labelerCode"], 5);
     elements["labelerCode"].SetText(labelerCode);
     return(this);
 }
 public VendOrHold WaitPrefixAvailableLabel()
 {
     WaitUtils.WaitLocator(Driver, By.CssSelector("div.status.green"), 15);
     return(this);
 }
 protected override void WaitForPage()
 {
     WaitUtils.WaitLocator(Driver, Locators["agreementLastPara"], 60);
 }
Exemple #17
0
 public ClosePrefixRange EnterRange(string range)
 {
     WaitUtils.WaitLocator(Driver, Locators["range"], 5);
     elements["range"].SetText(range);
     return(this);
 }
 protected override void WaitForPage()
 {
     WaitUtils.WaitLocator(Driver, Locators["dropdown"], 20);
 }
        public bool IsSyncSucceeded(int timeoutSecond = 120)
        {
            var el = WaitUtils.WaitLocator(Driver, Locators["syncSuccessNotice"], timeoutSecond);

            return(el != null);
        }
 public OpenPrefixRangeReview ClickOpenRange()
 {
     WaitUtils.WaitLocator(Driver, Locators["openRangeButton"], 5);
     elements["openRangeButton"].Click();
     return(this);
 }
 public OpenPrefixRange EnterReasonForOpening(string reason)
 {
     WaitUtils.WaitLocator(Driver, Locators["reason"], 5);
     elements["reason"].SetText(reason);
     return(this);
 }
Exemple #22
0
 protected override void WaitForPage()
 {
     WaitUtils.WaitLocator(Driver, Locators["welcome"], 60);
 }
Exemple #23
0
 public OnHoldPrefixesReview ClickVendPrefix()
 {
     WaitUtils.WaitLocator(Driver, Locators["vendPrefixButton"], 5);
     elements["vendPrefixButton"].Click();
     return(this);
 }
 public ClosePrefixRangeReview ClickCloseRange()
 {
     WaitUtils.WaitLocator(Driver, Locators["closeRangeButton"], 5);
     elements["closeRangeButton"].Click();
     return(this);
 }
Exemple #25
0
 public bool HasLabel(string label) =>
 WaitUtils.WaitLocator(Driver, By.XPath($"//div[text()='{label}']"), 5) != null;
Exemple #26
0
 public Main SelectVendOrHold()
 {
     WaitUtils.WaitLocator(Driver, Locators["vendOrHold"], 5);
     elements["vendOrHold"].Click();
     return(this);
 }
Exemple #27
0
 protected override void WaitForPage()
 {
     WaitUtils.WaitLocator(Driver, Locators["no"], 15);
 }
Exemple #28
0
 public Main SelectClosePrefixRange()
 {
     WaitUtils.WaitLocator(Driver, Locators["closePrefixRange"], 5);
     elements["closePrefixRange"].Click();
     return(this);
 }
Exemple #29
0
 public Review ClickHoldPrefix()
 {
     WaitUtils.WaitLocator(Driver, Locators["holdPrefix"], 5);
     elements["holdPrefix"].Click();
     return(this);
 }
Exemple #30
0
 public Main SelectOnHoldPrefixes()
 {
     WaitUtils.WaitLocator(Driver, Locators["onHoldPrefixes"], 5);
     elements["onHoldPrefixes"].Click();
     return(this);
 }