标签: javascript node.js ui-automation cypress
我已经在项目中安装了赛普拉斯,并且尝试使用npx cypress run运行赛普拉斯时,出现以下错误:
npx cypress run
找不到要运行的测试。 我们查看了但在此文件夹中找不到cypress.json文件...
答案 0 :(得分:2)
如果您是第一次运行,我想您需要输入try { Robot robot = new Robot(); robot.keyPress(KeyEvent.VK_TAB); robot.keyRelease(KeyEvent.VK_TAB); } catch (AWTException e) { e.printStackTrace(); } 。创建项目后,您就可以使用npx cypress open
try { Robot robot = new Robot(); robot.keyPress(KeyEvent.VK_TAB); robot.keyRelease(KeyEvent.VK_TAB); } catch (AWTException e) { e.printStackTrace(); }
npx cypress open