I added this piece of code: Any inputs to get this working would be helpful

WebElement inputElement = driver.findElement(By.cssSelector("input[type='number'] 
     ((JavascriptExecutor) driver).executeScript("arguments[0].scrollIntoView(true);", inputElement);

Tried with Actions Class,.click method,javascript click ,Keys.UpArrow changed the xpath still it is not clicking on the Arrorw button

Below is the DOM :

      <input type="number" formcontrolname="sample" class="form-control form-control-sm ng-pristine ng-valid ng-touched">


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.