旁观者-离开输入栏

问题描述

我正在使用spectator来测试使用ag-grid的Angular应用程序。 我试图单击一个单元格,输入一些值,然后离开该单元格。 (按Enter或单击页面上的其他位置)

spectator.click('.ag-center-cols-container .ag-row:first-child .ag-cell');
spectator.typeInElement(
  'hello','.ag-center-cols-container .ag-row:first-child .ag-cell input'
);
spectator.click();

第2行工作,我可以选择第一个单元格,然后更改值。问题是第三行,我无法离开输入。

我也尝试了以下方法spectator.keyboard.pressEnter();

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)