Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exec 函数一直返回超时,求解 #37

Open
amosnothing opened this issue May 14, 2021 · 1 comment
Open

exec 函数一直返回超时,求解 #37

amosnothing opened this issue May 14, 2021 · 1 comment

Comments

@amosnothing
Copy link

it('click: 删除分类', async function () {
    await driver.sleep(300).wait('#root', 30000).then(function (root) {
        return driver.sleep(300).exec('return arguments[0].shadowRoot', root)
            .then(function (ele) {
                return ele.find('#iconshanchu', 30000).click();
            })
    });
});

有没有哪位大佬帮忙看看脚本哪里有问题~!!

image

@amosnothing
Copy link
Author

目的是找到 root 元素底下的隐藏 dom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant