コード例 #1
0
 private void typeToInput(WaitRequestType type) {
   MetamerPage.waitRequest(
           spinner
               .advanced()
               .getInput()
               .advanced()
               .clear(ClearType.JS)
               .sendKeys(number)
               .advanced(),
           type)
       .trigger("blur");
 }
コード例 #2
0
 protected void increase(int count) {
   Double maxValue =
       Double.parseDouble(inputNumberSpinnerAttributes.get(InputNumberSpinnerAttributes.maxValue));
   Boolean cycled =
       Boolean.parseBoolean(inputNumberSpinnerAttributes.get(InputNumberSpinnerAttributes.cycled));
   Double actValue;
   WaitRequestType type;
   for (int i = 0; i < count; i++) {
     actValue = Double.parseDouble(spinner.advanced().getInput().getStringValue());
     type = (actValue < maxValue || cycled ? WaitRequestType.XHR : WaitRequestType.NONE);
     MetamerPage.waitRequest(spinner, type).increase();
   }
 }
コード例 #3
0
 /**
  * Getter for value that is displayed in spinner input.
  *
  * @return spinner input value
  */
 protected String getInputText() {
   return spinner.advanced().getInput().getStringValue();
 }