Selenium Actions sendKeys 操作无效

lofbat · April 25, 2018 · 440 hits

试图操作 crtl+t 快捷键失败,手动操作是可行的,为什么会出现这种情况?有什么使用限制么

if(pageTitle==NEW_PAGE){
            Actions action=new Actions(chromeDriver);
            action.sendKeys(Keys.CONTROL+"t").perform();
            log.info("create new page:"+NEW_PAGE);
        }
No Reply at the moment.
需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up