一些Ashot策略带有“模拟器”一词,它们之间有什么区别?

时间:2019-05-23 16:30:20

标签: java selenium automation ashot

我一直在研究Ashot库和Selenium的Browserstack API来拍摄设备的屏幕截图。通过射击策略,我注意到对于某些可用策略,有一个“模拟器”策略。

关于ashot库的文档很少:/

public static ShootingStrategy iPad2WithIOS8() {
    VariableCutStrategy cutStrategy = new VariableCutStrategy(41, 65, 960);
    return viewportNonRetina(500, cutStrategy);
}

public static ShootingStrategy iPad2WithIOS8Simulator() {
    VariableCutStrategy cutStrategy = new VariableCutStrategy(41, 65, 1250);
    return viewportNonRetina(500, cutStrategy);
}

public static ShootingStrategy iPad2WithIOS8Retina() {
    VariableCutStrategy cutStrategy = new VariableCutStrategy(41, 65, 960);
    return viewportRetina(500, cutStrategy, 2.0F);
}

public static ShootingStrategy iPad2WithIOS8RetinaSimulator() {
    VariableCutStrategy cutStrategy = new VariableCutStrategy(41, 65, 1250);
    return viewportRetina(500, cutStrategy, 2.0F);

每个版本都有一个模拟器版本。有人知道他们之间有什么区别吗?

1 个答案:

答案 0 :(得分:0)

也许是因为其中一个用于仿真,而另一个则用于真实设备。