📜  量角器中带有箭头的鼠标移动 - 任何代码示例

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

代码示例1
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()
    });
});