使用 Nativescript 解决方法的 Puppeteer
Puppeteer with Nativescript workaround
我正在尝试使用 Nativescript 和 puppeteer,但目前它不起作用。我试图找到另一个无头浏览器解决方案,但我不知道它是否适用于 nativescript。
Puppeteer 在测试浏览器应用程序时替换了 Selenium。对于移动设备,您使用 Appium (iOS / Android),您将在其中将 isHeadless
功能设置为 true。
Github repo 已经有一个问题解释了它是如何完成的。
Set "isHeadless":true
on desired device in appium.capabilities.json
我正在尝试使用 Nativescript 和 puppeteer,但目前它不起作用。我试图找到另一个无头浏览器解决方案,但我不知道它是否适用于 nativescript。
Puppeteer 在测试浏览器应用程序时替换了 Selenium。对于移动设备,您使用 Appium (iOS / Android),您将在其中将 isHeadless
功能设置为 true。
Github repo 已经有一个问题解释了它是如何完成的。
Set
"isHeadless":true
on desired device inappium.capabilities.json