webdriverio icon indicating copy to clipboard operation
webdriverio copied to clipboard

ios record can't be played normally ,when i use startRecordingScreen

Open Junting-Liu opened this issue 7 years ago • 1 comments

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 屏幕快照 2019-08-27 下午8 48 46 屏幕快照 2019-08-27 下午8 48 56

Junting-Liu avatar Aug 27 '19 12:08 Junting-Liu

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

christian-bromann avatar Aug 27 '19 12:08 christian-bromann