com.video.recorder.AppiumScreenRecordFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of AppiumTestDistribution Show documentation
Show all versions of AppiumTestDistribution Show documentation
A tool run Android and iOS test in parallel across devices
package com.video.recorder;
import com.appium.android.AndroidDeviceConfiguration;
import com.appium.entities.MobilePlatform;
import com.appium.manager.AppiumDeviceManager;
import java.io.IOException;
public class AppiumScreenRecordFactory {
private static AndroidDeviceConfiguration androidDeviceConfiguration
= new AndroidDeviceConfiguration();
public static IScreenRecord recordScreen() throws IOException, InterruptedException {
if (AppiumDeviceManager.getMobilePlatform().equals(MobilePlatform.ANDROID)) {
if (androidDeviceConfiguration.getDeviceManufacturer()
.equals("unknown") && !androidDeviceConfiguration
.checkIfRecordable()) {
return new Flick();
}
}
return new AppiumScreenRecorder();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy