示例#1
0
        public VendOrHold SelectCapacity(int capacity)
        {
            var key = $"cap{capacity}";

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

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

            return(el.Text);
        }
示例#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);
 }
示例#8
0
 protected override void WaitForPage()
 {
     WaitUtils.WaitLocator(Driver, Locators["thankYou"], 180);
 }
示例#9
0
 public VendOrHold ClickEdiComIdButton()
 {
     WaitUtils.WaitLocator(Driver, Locators["ediComIdButton"], 5);
     elements["ediComIdButton"].Click();
     return(this);
 }
示例#10
0
 public VendOrHold ClickEanPrefix()
 {
     WaitUtils.WaitLocator(Driver, Locators["eanPrefixButton"], 5);
     elements["eanPrefixButton"].Click();
     return(this);
 }
示例#11
0
 public VendOrHold ClickHoldAPrefix()
 {
     WaitUtils.WaitLocator(Driver, Locators["hold"], 5);
     elements["hold"].Click();
     return(this);
 }
示例#12
0
 public VendOrHold ClickVendAnIdentifier()
 {
     WaitUtils.WaitLocator(Driver, Locators["vend"], 5);
     elements["vend"].Click();
     return(this);
 }
示例#13
0
 public VendOrHold EnterReasonForHolding(string reason)
 {
     WaitUtils.WaitLocator(Driver, Locators["reason"], 5);
     elements["reason"].SetText(reason);
     return(this);
 }
示例#14
0
 public VendOrHold EnterLabelerCode(string labelerCode)
 {
     WaitUtils.WaitLocator(Driver, Locators["labelerCode"], 5);
     elements["labelerCode"].SetText(labelerCode);
     return(this);
 }
示例#15
0
 public VendOrHold WaitPrefixAvailableLabel()
 {
     WaitUtils.WaitLocator(Driver, By.CssSelector("div.status.green"), 15);
     return(this);
 }
 protected override void WaitForPage()
 {
     WaitUtils.WaitLocator(Driver, Locators["agreementLastPara"], 60);
 }
示例#17
0
 public ClosePrefixRange EnterRange(string range)
 {
     WaitUtils.WaitLocator(Driver, Locators["range"], 5);
     elements["range"].SetText(range);
     return(this);
 }
示例#18
0
 protected override void WaitForPage()
 {
     WaitUtils.WaitLocator(Driver, Locators["dropdown"], 20);
 }
示例#19
0
        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);
 }
示例#21
0
 public OpenPrefixRange EnterReasonForOpening(string reason)
 {
     WaitUtils.WaitLocator(Driver, Locators["reason"], 5);
     elements["reason"].SetText(reason);
     return(this);
 }
示例#22
0
 protected override void WaitForPage()
 {
     WaitUtils.WaitLocator(Driver, Locators["welcome"], 60);
 }
示例#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);
 }
示例#25
0
 public bool HasLabel(string label) =>
 WaitUtils.WaitLocator(Driver, By.XPath($"//div[text()='{label}']"), 5) != null;
示例#26
0
 public Main SelectVendOrHold()
 {
     WaitUtils.WaitLocator(Driver, Locators["vendOrHold"], 5);
     elements["vendOrHold"].Click();
     return(this);
 }
示例#27
0
 protected override void WaitForPage()
 {
     WaitUtils.WaitLocator(Driver, Locators["no"], 15);
 }
示例#28
0
 public Main SelectClosePrefixRange()
 {
     WaitUtils.WaitLocator(Driver, Locators["closePrefixRange"], 5);
     elements["closePrefixRange"].Click();
     return(this);
 }
示例#29
0
 public Review ClickHoldPrefix()
 {
     WaitUtils.WaitLocator(Driver, Locators["holdPrefix"], 5);
     elements["holdPrefix"].Click();
     return(this);
 }
示例#30
0
 public Main SelectOnHoldPrefixes()
 {
     WaitUtils.WaitLocator(Driver, Locators["onHoldPrefixes"], 5);
     elements["onHoldPrefixes"].Click();
     return(this);
 }