-
-
Notifications
You must be signed in to change notification settings - Fork 758
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add isKeyboardShown command for iOS #887
Conversation
|
||
import static io.appium.java_client.MobileCommand.isKeyboardShownCommand; | ||
|
||
public interface HasDeviceDetails extends ExecutesMethod { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather rename the interface to HasOnScreenKeyboard
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm makes sense
@@ -64,7 +64,7 @@ | |||
*/ | |||
@SuppressWarnings("unchecked") | |||
public class AppiumDriver<T extends WebElement> | |||
extends DefaultGenericMobileDriver<T> implements ComparesImages { | |||
extends DefaultGenericMobileDriver<T> implements ComparesImages, HasDeviceDetails { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather add it to only ios and Android drivers, but not to the generic one.
@@ -51,7 +51,7 @@ | |||
public class AndroidDriver<T extends WebElement> | |||
extends AppiumDriver<T> | |||
implements PressesKeyCode, HasNetworkConnection, PushesFiles, StartsActivity, | |||
FindsByAndroidUIAutomator<T>, LocksDevice, HasAndroidSettings, HasDeviceDetails, | |||
FindsByAndroidUIAutomator<T>, LocksDevice, HasAndroidSettings, HasAndroidDeviceDetails, | |||
HasSupportedPerformanceDataType, AuthenticatesByFinger, | |||
CanRecordScreen, SupportsSpecialEmulatorCommands, | |||
SupportsNetworkStateManagement, ListensToLogcatMessages, HasAndroidClipboard { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The interface should be added to AndroidDriver as well
import static io.appium.java_client.android.AndroidMobileCommandHelper.getDisplayDensityCommand; | ||
import static io.appium.java_client.android.AndroidMobileCommandHelper.getSystemBarsCommand; | ||
|
||
public interface HasAndroidDeviceDetails extends HasOnScreenKeyboard { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather add the extension separately.
Change list
Add isKeyboardShown command for iOS
Types of changes
What types of changes are you proposing/introducing to Java client?
Put an
x
in the boxes that apply