Skip to content
This repository has been archived by the owner on Nov 15, 2020. It is now read-only.

Commit

Permalink
Merge pull request #158 from max-scald/156_disable_welcome_page
Browse files Browse the repository at this point in the history
156 disable welcome page
  • Loading branch information
kosteman authored Nov 26, 2018
2 parents 552fcad + 797cae7 commit 0795257
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public class TagMobileDriver {
private static final String APPIUM_APP_ACTIVITY = Props.get("appium.app.activity");
private static final boolean APPIUM_FILL_ADB = "true".equalsIgnoreCase(Props.get("appium.fill.adb"));
private static final boolean APPIUM_CLICK_ADB = "true".equalsIgnoreCase(Props.get("appium.click.adb"));
private static final String APPIUM_STRATEGIES_RESET = Props.get("appium.strategies.reset");

private static String deviceUdId;

private TagMobileDriver() {
Expand All @@ -51,6 +53,12 @@ private static void createDriver() {
capabilities.setCapability("autoGrantPermissions", "true");
capabilities.setCapability("unicodeKeyboard", "true");
capabilities.setCapability("resetKeyboard", "true");
if (APPIUM_STRATEGIES_RESET.equalsIgnoreCase("noreset")) {
capabilities.setCapability("noReset","true");
} else if (APPIUM_STRATEGIES_RESET.equalsIgnoreCase("fullreset")) {
capabilities.setCapability("fullReset","true");
}

LOG.info("Capabilities are {}", capabilities);

URL url;
Expand Down
11 changes: 11 additions & 0 deletions src/main/resources/config/application.properties-sample
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@ appium.app.activity = .Settings
appium.fill.adb = false
#optional. Avoid appium and click on elements throw adb by location. False by default
appium.click.adb = false
#optional. Select Reset Strategies.
#If specify noreset then add capabilities {"noReset","true"}
#(For Android. Do not stop app, do not clear app data, and do not uninstall apk.)
#(For iOS (including XCUITest) Do not destroy or shut down sim after test. Start tests running on whichever sim is running, or device is plugged in.)
#If specify fullreset then add capabilities {"fullReset","true"}
#(For Android Stop app, clear app data and uninstall apk after test)
#(For iOS Uninstall app after real device test, destroy Simulator after sim test)
#If don't specify anything or comment out, default strategy will be applied
#(For Android Stop and clear app data after test. Do not uninstall apk)
#(For iOS Shut down sim after test. Do not destroy sim. Do not uninstall app from real device.)
appium.strategies.reset = noreset

#IN CASE OF WEB
#parameters for web driver create
Expand Down

0 comments on commit 0795257

Please sign in to comment.