Unable to type in CKEditor with Selenium + Chrome 62

狂风中的少年 提交于 2021-01-28 12:57:12

问题


In one of my Selenium test cases, I need to type something into a CKEditor text area.
It works fine with Chromedriver 2.20 + Chrome 59. But since I upgraded to Chrome 62, the textarea isn't detected anymore. Selenium doesn't throw any exception, it just doesn't type in the CKEditor and goes on with the next step.

Method:

WebElement element = driver.findElement(By.cssSelector("some-cute-custom-angular-selector"));
new Actions(driver).moveToElement(element).click().perform();
new Actions(driver).moveToElement(element).sendKeys(element,notes).perform();

Any idea (other than downgrading)? Thanks in advance.

来源:https://stackoverflow.com/questions/47339951/unable-to-type-in-ckeditor-with-selenium-chrome-62

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!