how to enter numeric value into textbox in webdriver
问题 How to enter numeric value into textbox in Selenium webdriver. The code is below: sendKeys() method is not working for numeric value, is there any alternative command for the integers. @FindBy(id="toolbox-options-key") private WebElement BillingRateTextBox; public void createNewBill(String billingRate) { BillingRateTextBox.sendKeys(10); } 回答1: You need to convert the Integer to String and pass them to sendKeys like this: element.sendKeys(String.valueOf(number)) 回答2: running this: paris