剧作家:Kendo Angular - 目标关闭

问题描述 投票:0回答:0

如何解决Target关闭的问题。我正在通过 Codegen 拉定位器。

定位器.填充: 目标关闭 ===========================日志====================== ===== 等待定位器('xpath=//html/body/app-root/app-account/div[2]/div/div/kendo-card/kendo-card-body/app-register/div/form/fieldset/ div[14]/kendo-formfield/div/input')

await page.locator('kendo-formfield').filter({ hasText: 'Password *' }).getByRole('textbox').fill('!Tester123');
await page.locator('kendo-formfield').filter({ hasText: 'Confirm Password *' }).getByRole('textbox').fill('!Tester123');

有测试失败的行

我尝试使用 Xpath 但随后出现新错误,严格模式违规,我尝试使用 #Id 但同样的问题无法找到定位器。我发现 Kendo UI 很难自动化。

typescript ui-automation playwright browser-automation
© www.soinside.com 2019 - 2024. All rights reserved.