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

可以找到弹窗的关闭按钮,但却无法关闭弹窗。 #398

Open
xwyrobin-ops opened this issue Feb 17, 2025 · 1 comment
Open

Comments

@xwyrobin-ops
Copy link

xwyrobin-ops commented Feb 17, 2025

找到了最后一个弹窗的关闭按钮,但是却无法关闭这个弹窗,这是一个iframe的弹窗。

环境:
"nodeJS":“v18.20.6”,
"@midscene/web": "^0.11.0",
"@playwright/test": "^1.50.1",
"@types/node": "^22.13.1",
"typescript": "~5.6.3"

所用AI:
qwen-vl-max-latest

ui测试工具:
playwright

提示信息:
Further actions cannot be performed in the current environment

相关代码:

`test.beforeEach(async ({ page }) => {
    page.setViewportSize({ width: 1300, height: 905 });
    await page.goto("https://www.hp.com/au-en/shop/");
    await page.waitForLoadState("networkidle");
});

test("search hp", async ({ ai, aiQuery, aiAssert }) => {
    await ai('找到标题是"your privacy"的弹窗,并且点击"reject all"按钮');
    await ai('找到标题是"Thank you for visiting the AUSTRALIA HP Store"的弹窗,并且点击"stay in australia"按钮');
    await ai('找到页面中"Sign up & Save 10%*"文本的弹窗');
    await ai('点击这个弹窗的关闭按钮');
    // 👀 用 AI 断言
    await aiAssert('页面中是否已经关闭了全部的弹窗');
});`
@zhoushaw
Copy link
Member

需要把报告提供一下 @xwyrobin-ops

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

2 participants