7 -> 8 migration - hide keyboard #1782
Unanswered
ShannyWorkiz
asked this question in
Q&A
Replies: 1 comment
-
https://github.com/appium/java-client/blob/master/docs/v7-to-v8-migration-guide.md#appiumdriver |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey!
I used to work with java-client version 7.3.0, when moving to 8.0.0 the driver.hideKeyboard() is not accessible anymore.
Does anyone face this issue?
where my drive was set as:
public static AppiumDriver driver;
` public static void initDriver(String className) throws Exception {
Drivers.setDefaultParams();
URL url = new URL(props.getProperty("appiumUrl"));
switch (props.getProperty("platformName").toLowerCase()) {
case "android":
driver = Drivers.setAndroidDriver(url, className);
currentPlatform = "android";
break;
case "ios":
driver = Drivers.setIosDriver(url, className);
currentPlatform = "ios";
break;
default:
throw new RuntimeException("'platformName' property value is not valid! Got: " + props.getProperty("platformName"));
}
logger.info("driver initialized: " + driver);
}
//===================================================================================================
Beta Was this translation helpful? Give feedback.
All reactions