0

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

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

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">

0

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.