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

The addition #458. #456 FIX #454 FIX #513

Closed
wants to merge 15 commits into from
Closed

The addition #458. #456 FIX #454 FIX #513

wants to merge 15 commits into from

Conversation

TikhomirovSergey
Copy link
Contributor

@TikhomirovSergey TikhomirovSergey commented Nov 12, 2016

Change list

The addition #458. #456 FIX #454 FIX:

  • AppiumDriver is the non-abstract class now;
  • MobileElement is the non-abstract class now;
  • The list of methods which were marked deprecated and they are going to be removed;
    • AppiumDriver#swipe(int, int, int, int, int)
    • AppiumDriver#pinch(WebElement)
    • AppiumDriver#pinch(int, int)
    • AppiumDriver#zoom(WebElement)
    • AppiumDriver#zoom(int, int)
    • AppiumDriver#tap(int, WebElement, int)
    • AppiumDriver#tap(int, int, int, int)
    • AppiumDriver#swipe(int, int, int, int, int)
    • MobileElement#swipe(SwipeElementDirection, int)
    • MobileElement#swipe(SwipeElementDirection, int, int, int)
  • API redesign:
    • these interfaces were marked deprecated and they are going to be removed:
      • io.appium.java_client.DeviceActionShortcuts
      • io.appium.java_client.android.AndroidDeviceActionShortcuts
      • io.appium.java_client.ios.IOSDeviceActionShortcuts
    • instead following inerfaces were designed:
      • io.appium.java_client.HasDeviceTime
      • io.appium.java_client.HidesKeyboard
      • io.appium.java_client.HidesKeyboardWithKeyName
      • io.appium.java_client.PressesKeyCode
      • io.appium.java_client.ios.ShakesDevice
        That was done because Windows automation tools have some features that were considered as Android-specific and iOS-specific.
      • io.appium.java_client.CreatesSwipeAction
  • Redesign of TouchAction and MultiTouchAction
    • constructors were redesigned. There is no strict binding of AppiumDriver and TouchAction /MultiTouchAction. They can pass any instance of a class that implements PerformsTouchActions.
    • deprecated methods of AppiumDriver/MobileElement were moved to TouchAction/MultiTouchAction.
  • io.appium.java_client.android.AndroidTouchAction and io.appium.java_client.ios.IOSTouchAction were added. They create the swiping gesture. Both classes implement the new io.appium.java_client.CreatesSwipeAction API.

Types of changes

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

SrinivasanTarget and others added 14 commits August 12, 2016 00:13
- new interfaces were added
- deprecated API
- new methods were added to MultiTouchAction
- AppiumDriver methods which perform multiple touch actions were marked as Deprecated
 - Constructors of TouchAction and MultiTouchAction were changed. Now it accepts any instance that can perform touch action and multiple touch actions.
- the new interface CreatesSwipeAction was added.

- the reversion of last changes of TouchableElement.

- the `swipe` is deprecated method.
Forgot to commit this change
- CreatesSwipeAction API was implemented
- SwipeElementDirection was redesigned
- constructors of TouchAction and MultiTouchAction were improved.
- IOSSwipeGestureTest was added
- the swiping combined with the tapping.
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.

LGTM 👍

@SrinivasanTarget SrinivasanTarget mentioned this pull request Nov 16, 2016
3 tasks
TikhomirovSergey pushed a commit that referenced this pull request Nov 24, 2016
* Splitting of TouchActions

* Codacy Fixes

* #456 FIX #454 FIX: API redesign.
- new interfaces were added
- deprecated API

* #456 FIX #454 FIX: MultiTouchAction refactoring
- new methods were added to MultiTouchAction
- AppiumDriver methods which perform multiple touch actions were marked as Deprecated
 - Constructors of TouchAction and MultiTouchAction were changed. Now it accepts any instance that can perform touch action and multiple touch actions.

* #456 FIX #454 FIX: New CreatesSwipeAction API

- the new interface CreatesSwipeAction was added.

- the reversion of last changes of TouchableElement.

- the `swipe` is deprecated method.

* #456 FIX #454 FIX:

Forgot to commit this change

* #456 FIX #454 FIX:  CreatesSwipeAction API was implemented

- CreatesSwipeAction API was implemented
- SwipeElementDirection was redesigned
- constructors of TouchAction and MultiTouchAction were improved.

* #456 FIX #454 FIX: AndroidTouchActions were covered with tests.

- also code issues were got fixed

* #456 FIX #454 FIX: Refactoring of MobileElement

* #456 FIX #454 FIX: IOSGesturesTest was redesigned.
- IOSSwipeGestureTest was added

* #456 FIX #454 FIX: Checkstyle issues were got fixed

* #456 FIX #454 FIX: The additional test on Android.
- the swiping combined with the tapping.

* Issues that found by codecy were got fixed

* The addition #513

Fixed Codacy errors

Fixed Codacy errors

* Fixed tests

Fixed tests

Fixed tests

Fixed tests
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.

To make AppiumDriver the non-abstract class
2 participants