selenium - [Ashot][Selenium] - 为 iOS 和 Android 截图

标签 selenium testing automation automated-tests ashot

我目前正在尝试实现 Ashot 来为我当前的项目截取屏幕截图,它适用于桌面。

但是我想知道如何在 iOS 和 Android 设备上实现它,互联网上没有太多信息。

我使用了以下视口(viewport),它正在为 ipad 截屏:

全页截图 = new AShot().shootingStrategy(ShootingStrategies.viewportRetina(100, 0, 0, 2)).takeScreenshot(driver);

但我想知道如何使用给定的属性来为其他 IOS 和 Android 设备生成屏幕截图。

谢谢,

基拉

最佳答案

没什么区别)))除了dpr 只是需要使用这个参数,我猜:)并且不要忘记阅读这里的信息https://github.com/pazone/ashot/issues

关于selenium - [Ashot][Selenium] - 为 iOS 和 Android 截图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53443943/

相关文章:

javascript - Mocha 如何知道在测试套件中首先加载哪个文件

automation - BluePrism Java 应用程序 : Error while spying the element Index was outside the bounds of the array

python-2.7 - Opencv Python 2.7 中的轮廓检测

java - 如何使用 Java 检查 DOM 上的元素是否在 Selenium 中的前台?

python - 如何通过其内部文本(Python)找到带有 Selenium 的按钮?

python - Selenium Python ElementNotVisibleException

c# - 如何为 poco 对象创建测试

go - 有没有一种好方法来更新传递给Golang中子测试的结构

java - 通过 powershell 启动 selenium grid hub 时出错 - VSTS/TFS

macos - OSX 相当于 WinSCP 的全自动本地-远程 SFTP 同步?