node.js - Taiko 不等待navigationTimeout 完成
问题描述
根据goto
文档,我必须设置navigationTimeout
以options
覆盖 30 秒的默认等待时间。我试图将其覆盖为 100 秒,但它不起作用 - 它在 40 秒内超时,如下所示:
这是我的步骤:
step('Go to <path>', async function (path) {
await goto(process.env.BASE_URL + path, { navigationTimeout: 100000 })
})
我的测试用例:
# Add product to cart
* Go to "/collections/all-products"
* Click on the link with the text "A Prodcut"
* Click the button with the label "Add to Cart"
* Go to "/cart"
解决方案
NavigationTimeOut 等待该毫秒数,而 waitForNavigations 等待导航该时间。
您可以在您发布的链接中查看
推荐阅读
- python - tkinter 条目文本变量未在 Python 3 中显示
- flutter - 颤振滑块不移动或更新
- html - 烧瓶多个提交按钮
- java - Java ExplorerManager 过滤器
- functor - VerifiedFunctor - 证明映射(映射 g)x = x
- webpack - 尝试导入自定义 Angular 主题时 Webpack 失败
- python - Python Threading 执行时间不一致
- docker - Dockerized Neo4J 通过以某种方式重新启动来维护卷?
- python - 是否可以在一个替换方法中使用多个替换参数?
- facebook-graph-api - Instagram 图形 API