'sendKeys' are not working in Selenium WebDriver

后端 未结 12 1592
暗喜
暗喜 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:15

    Generally I keep a temporary variable. This should work.

    var name = element(by.id('name'));
    name.clear();
    name.sendKeys('anything');
    

提交回复
热议问题