📅  最后修改于: 2022-03-11 14:55:01.957000             🧑  作者: Mango
import { browser, element, by, ElementFinder} from 'protractor'
describe('Protractor Typescript Demo', function() {
browser.ignoreSynchronization = true; // for non-angular websites
browser.manage().window().maximize()
it('Mouse Operations', function() {
// set implicit time to 30 seconds
browser.manage().timeouts().implicitlyWait(30000);
browser.get("https://chercher.tech/practice/popups")
// mouse hover on a submenu
browser.actions().mouseMove(element(by.id("sub-menu"))).perform()
});
});