📜  selenium press enter without element - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:43.742000             🧑  作者: Mango

代码示例1
try {
    Robot robot = new Robot();
    robot.keyPress(KeyEvent.VK_ENTER);
    robot.keyRelease(KeyEvent.VK_ENTER);
    robot.delay(200);
}