All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.codeborne.selenide.appium.AppiumScreenSourceExtractor Maven / Gradle / Ivy

There is a newer version: 7.5.1
Show newest version
package com.codeborne.selenide.appium;

import com.codeborne.selenide.Config;
import com.codeborne.selenide.impl.WebPageSourceExtractor;
import org.openqa.selenium.WebDriver;

import java.io.File;

import static com.codeborne.selenide.appium.AppiumDriverUnwrapper.isMobile;

public class AppiumScreenSourceExtractor extends WebPageSourceExtractor {
  @Override
  protected File createFile(Config config, WebDriver webDriver, String fileName) {
    return isMobile(webDriver) ?
      new File(config.reportsFolder(), fileName + ".xml") :
      super.createFile(config, webDriver, fileName);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy