Selenium click event does not trigger angularjs ng-click

后端 未结 6 1358
眼角桃花
眼角桃花 2020-12-16 00:50

I have this page where there is a textbox and there is save button associated with each text box. I need to click on the save button so that it will save the value in text b

6条回答
  •  执念已碎
    2020-12-16 01:23

    In Selenium IDE try:

     sendKeysAndWait
     id=mybutton
     ${KEY_ENTER}
    

    same with Webdriver:

    WebElement element_p = (new WebDriverWait(_driver, 3))
                .until(ExpectedConditions.visibilityOfElementLocated(By
                        .id("myButton")));
    element_p.sendKeys(Keys.RETURN);
    

提交回复
热议问题