如果在iframe里面输入的时候,抛出“can't focus on the element”异常的时候,可以使用Actions类来操作:
Actions actions = Selenide.actions();
actions.moveToElement(element);
actions.click();
actions.sendKeys("test");
actions.perform();
如果在iframe里面输入的时候,抛出“can't focus on the element”异常的时候,可以使用Actions类来操作:
Actions actions = Selenide.actions();
actions.moveToElement(element);
actions.click();
actions.sendKeys("test");
actions.perform();
转载于:https://my.oschina.net/forgetttttttt/blog/1031512