-
-
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
#471 FIX #538
#471 FIX #538
Conversation
- WindowsDriver was designed - WindowsElement was designed - WindowsKeyCode was added - Page object tools were updated: - WindowsFindBy was added - AppiumFieldDecorator and supporting tools were actualized Additional change: All constructors declared by AppiumDriver are public now.
ping @SrinivasanTarget |
@@ -335,7 +335,7 @@ public void zoom(int x, int y) { | |||
@Override public String getContext() { | |||
String contextName = | |||
String.valueOf(execute(DriverCommand.GET_CURRENT_CONTEXT_HANDLE).getValue()); | |||
if (contextName.equals("null")) { | |||
if ("null".equalsIgnoreCase(String.valueOf(contextName))) { |
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.
Cant this be done using java Optional class?
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.
contextName
is already a string right then why are we using valueof() again?
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.
just few questions but LGTM 👍
@@ -34,7 +36,8 @@ | |||
YOUI_ENGINE(AutomationName.YOUI_ENGINE.toLowerCase(), YouiEngineElement.class), | |||
IOS_XCUI_TEST(AutomationName.IOS_XCUI_TEST.toLowerCase(), IOSElement.class), | |||
ANDROID_UI_AUTOMATOR(MobilePlatform.ANDROID.toLowerCase(), AndroidElement.class), | |||
IOS_UI_AUTOMATION(MobilePlatform.IOS.toLowerCase(), IOSElement.class); | |||
IOS_UI_AUTOMATION(MobilePlatform.IOS.toLowerCase(), IOSElement.class), | |||
WINDOwS(MobilePlatform.WINDOWS, WindowsElement.class); |
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.
lowercase w?
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.
Ok. Maybe it is excessive :)
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.
sorry, I mean why is it "WINDOwS" on line 40? Shouldn't it be all caps?
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.
Yup :)
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.
Ok. I will improve that :)
@@ -183,29 +183,29 @@ private static void checkDisallowedAnnotationPairs(Annotation a1, Annotation a2) | |||
iOSFindAll iOSFindAll = annotatedElement.getAnnotation(iOSFindAll.class); | |||
|
|||
if (iOSFindByArray != null && iOSFindByArray.length == 1) { | |||
return createBy(new Annotation[] {iOSFindByArray[0]}, HowToUseSelectors.USE_ONE); | |||
return createBy(new Annotation[] {iOSFindByArray[0]}, HowToUseSelectors.USE_ONE); |
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.
probably should undo the extra space
This work is great to see, thank you Sergey! |
Change list
WindowsDriver
was designedWindowsElement
was designedWindowsKeyCode
was addedWindowsFindBy
was addedAppiumFieldDecorator
and supporting tools were actualizedAdditional change:
AppiumDriver
are public now.Types of changes
#471 FIX
#530 FIX