private void typeToInput(WaitRequestType type) { MetamerPage.waitRequest( spinner .advanced() .getInput() .advanced() .clear(ClearType.JS) .sendKeys(number) .advanced(), type) .trigger("blur"); }
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(); } }
/** * Getter for value that is displayed in spinner input. * * @return spinner input value */ protected String getInputText() { return spinner.advanced().getInput().getStringValue(); }