'sendKeys' are not working in Selenium WebDriver

后端 未结 12 1584
暗喜
暗喜 2020-12-05 13:36

I am not able to put any value in my application using WebDriver. My application is using frames.

I am able to clear the value of my textbox with driver.findEle

12条回答
  •  春和景丽
    2020-12-05 14:08

    I have gone with the same problem where copy-paste is also not working for that text box.

    The below code is working fine for me:

    WebDriver driver = new FirefoxDriver();
    String mobNo = "99xxxxxxxx";
    WebElement mobileElementIrs = 
    driver.findElement(By.id("mobileNoPrimary"));
    mobileElementIrs.click();
    mobileElementIrs.clear();
    mobileElementIrs.sendKeys(mobNo);
    

提交回复
热议问题