webdriverio
webdriverio copied to clipboard
ios record can't be played normally ,when i use startRecordingScreen
i use saveRecordingScreen to save record , and it work normally 。but when i play the record, only the android record can be play normally。
there is my config
exports.ios = {
platformName: 'iOS',
platformVersion: '12.4',
deviceName: 'iPhone 6',
automationName: 'XCUITest',
app: xx.apk,
};
exports.android = {
platformName: 'Android',
platformVersion: '8.1.0',
deviceName: 'Android Emulator',
automationName: 'UiAutomator2',
appPackage: 'xxxx',
appActivity: 'xxx.envproxy.EnvProxyActivity',
app: xx.apk,
autoGrantPermissions: true
};
environment
node 10.16.0
appium 1.14.2
webdriverio 5.12.4
code
before(async function () {
const options = {
capabilities: config[global.PLATFORM],
logLevel: 'info',
...config.server
};
global.driver = await webdriverio.remote(options);
global.driver.startRecordingScreen();
return global.driver;
});
after(async function () {
const recordUrl = path.join(process.cwd(), `result/${global.PLATFORM}/record.mp4`);
await global.driver.saveRecordingScreen(recordUrl);
return await global.driver.deleteSession();
});
result
android: play normally
ios

Please report this bug in Appium as WebdriverIO only uses Appiums interface to create the video. Thanks!