-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
Implement Espresso contrib mobile commands #324
Conversation
...rver/app/src/androidTest/java/io/appium/espressoserver/lib/handlers/DrawerActionHandler.java
Outdated
Show resolved
Hide resolved
...o-server/app/src/androidTest/java/io/appium/espressoserver/lib/model/DrawerActionParams.java
Outdated
Show resolved
Hide resolved
espresso-server/app/src/androidTest/java/io/appium/espressoserver/lib/handlers/NavigateTo.java
Outdated
Show resolved
Hide resolved
...esso-server/app/src/androidTest/java/io/appium/espressoserver/lib/handlers/ScrollToPage.java
Outdated
Show resolved
Hide resolved
...esso-server/app/src/androidTest/java/io/appium/espressoserver/lib/handlers/ScrollToPage.java
Outdated
Show resolved
Hide resolved
...esso-server/app/src/androidTest/java/io/appium/espressoserver/lib/handlers/ScrollToPage.java
Outdated
Show resolved
Hide resolved
...esso-server/app/src/androidTest/java/io/appium/espressoserver/lib/handlers/ScrollToPage.java
Outdated
Show resolved
Hide resolved
espresso-server/app/src/androidTest/java/io/appium/espressoserver/lib/handlers/SetDate.java
Outdated
Show resolved
Hide resolved
espresso-server/app/src/androidTest/java/io/appium/espressoserver/lib/handlers/SetDate.java
Show resolved
Hide resolved
espresso-server/app/src/androidTest/java/io/appium/espressoserver/lib/handlers/SetTime.java
Show resolved
Hide resolved
espresso-server/app/src/androidTest/java/io/appium/espressoserver/lib/model/SetTimeParams.java
Outdated
Show resolved
Hide resolved
lib/commands/general.js
Outdated
commands.mobileNavigateTo = async function (opts = {}) { | ||
let {element, menuItemId} = assertRequiredOptions(opts, ['menuItemId', 'element']); | ||
|
||
let menuItemIdAsNumber = parseInt(menuItemId, 0); |
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.
, 10
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.
@dpgraham how about fixing the second argument of parseInt?
* Renamed 'Screenshot' to 'ScreenshotHandler' to avoid naming conflict
778aa2f
to
38ea8ba
Compare
Fixes pushed. I'm using the validate.js library to validate scrollTo parameters now. |
espresso-server/app/src/androidTest/java/io/appium/espressoserver/lib/handlers/NavigateTo.java
Show resolved
Hide resolved
...esso-server/app/src/androidTest/java/io/appium/espressoserver/lib/handlers/ScrollToPage.java
Outdated
Show resolved
Hide resolved
LGTM, only one comment is left (parseInt arg) |
Mobile commands:
setDate
,setTime
,navigateTo
,scrollToPage
,openDrawer
,closeDrawer
(connect with: #323)