输入时是否可以禁用Slowmo?
slowmo
允许执行测试时具有人为的延迟,以便我们可以看到正在发生的事情,但是如果我将其增加到1500ms,则需要年龄到 type 某物,因为每个字符将在1500ms之后键入。 我希望我只能启用Slowmo才能点击。
例如:
this.Browser = await this.PlaywrightContext.Chromium.LaunchAsync(new BrowserTypeLaunchOptions
{
Headless = false,
SlowMo = 1500,
});
可能有帮助的想法吗?
谢谢,
SlowMo
allows to have an artificial delay while executing the tests so that we can see what's going on, but if I increase it to 1500ms, then it takes ages to type something, because each character will be typed after 1500ms.
I wish I could enable the SlowMo only for clicks.
For example:
this.Browser = await this.PlaywrightContext.Chromium.LaunchAsync(new BrowserTypeLaunchOptions
{
Headless = false,
SlowMo = 1500,
});
Any idea that might help?
Thanks,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
delay
选项type()
呼叫怎么样?https://playwright.dev/dev/dev/dev/dev/dev/dev/dev/dev/class-elementhandhandhandlehandhandleble#元素处理型
How about
delay
option ontype()
call?https://playwright.dev/docs/api/class-elementhandle#element-handle-type