Skip to content
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

Merged
merged 4 commits into from
Dec 17, 2016
Merged

#471 FIX #538

merged 4 commits into from
Dec 17, 2016

Conversation

TikhomirovSergey
Copy link
Contributor

@TikhomirovSergey TikhomirovSergey commented Dec 16, 2016

Change list

  • 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.

Types of changes

  • No changes in production code.
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

#471 FIX
#530 FIX

- 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.
@TikhomirovSergey
Copy link
Contributor Author

ping @SrinivasanTarget
@yodurr @JonStoneman you are invited to review this PR too

@@ -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))) {
Copy link
Member

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?

Copy link
Member

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?

Copy link
Member

@SrinivasanTarget SrinivasanTarget left a 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);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lowercase w?

Copy link
Contributor Author

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 :)

Copy link

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?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup :)

Copy link
Contributor Author

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);
Copy link

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

@yodurr
Copy link

yodurr commented Dec 16, 2016

This work is great to see, thank you Sergey!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants