本文整理匯總了TypeScript中protractor.protractor.Key.chord方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript protractor.Key.chord方法的具體用法?TypeScript protractor.Key.chord怎麽用?TypeScript protractor.Key.chord使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類protractor.protractor.Key
的用法示例。
在下文中一共展示了protractor.Key.chord方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: it
it('should toggle between edit and view mode with ctrl+`', () => {
page.body().sendKeys(protractor.Key.chord(protractor.Key.CONTROL, '`'));
expect(page.isInEditMode()).toBeTruthy();
page.body().sendKeys(protractor.Key.chord(protractor.Key.CONTROL, '`'));
expect(page.isInEditMode()).toBeFalsy();
});
示例2: it
it('should focus before and after trigger when tabbing past items', () => {
page.pressKey(Key.ENTER);
page.pressKey(Key.TAB);
page.expectFocusOn(page.triggerTwo());
// navigate back to trigger
page.pressKey(protractor.Key.chord(protractor.Key.SHIFT, protractor.Key.TAB));
page.pressKey(Key.ENTER);
page.pressKey(protractor.Key.chord(protractor.Key.SHIFT, protractor.Key.TAB));
page.expectFocusOn(page.start());
});
示例3: it
it('should focus before and after trigger when tabbing past items', () => {
let shiftTab = protractor.Key.chord(Key.SHIFT, Key.TAB);
pressKeys(Key.ENTER, Key.TAB);
expectFocusOn(page.triggerTwo());
// navigate back to trigger
pressKeys(shiftTab, Key.ENTER, shiftTab);
expectFocusOn(page.start());
});