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

MobileElement improvements from PR #265 #296

Closed
wants to merge 9 commits into from
Closed

Conversation

mach6
Copy link
Contributor

@mach6 mach6 commented Jun 3, 2016

moved the PR #265 to a local branch and opening this PR for continued tracking.

@mach6 mach6 added this to the 1.1.0 milestone Jun 3, 2016
@mach6 mach6 changed the title MobileElement improvements from PR #269 MobileElement improvements from PR #265 Jun 3, 2016
import org.apache.commons.lang.StringUtils;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.remote.RemoteWebElement;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

unused import. Will fix this

alizelzele and others added 5 commits June 27, 2016 15:46
  1. adding a common interface for both android and ios objects
  2. changing yaml reader and code generator to  support new interface and yaml files.
  3. add more elements to Android elements.
  4. add parameters to config Mobile annotation parameters from suite and command line.
  5. creating new android test app that match with ios test app to be able to test common interface.
  6. adding test suites and test cases for testing common interface and updating old test cases to be able to work with new one.
- Also fixed an issue with processing
  androidCustomElements
usually you want to wait for an element from page file, waits now support elements directly
private static final String TEXT_FIELD_LOCATOR = "xpath=//UIAApplication[1]/UIAWindow[1]/UIATextField[2]";

@Test
@MobileTest(appPath = "http://localhost:8000/webServer/pageObject.app.zip", device = "iphone:9.3", deviceType = "iPhone 6")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This hard-coded path is not ideal

One functional change:
- MOBILE_PLATFORM config option no longer case sensitive

/**
* it is not accurate and is best to used only for setting value to 0 or 1, otherwise the result is close to number
* @param value The desired decimal value from 0 to 1, inclusive. A 0 value represents far left and a value of 1
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@alizelzele this comment seems incomplete. Will you please update it.. A value of 1, far right?


@MobileTest
@Test
public void testTableClickAndroid() throws Exception {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@alizelzele shouldn't this be limited to groups = "android"?

Copy link
Contributor

Choose a reason for hiding this comment

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

@mach6 This test will work on both platforms. The method has a wrong name. i will fix it in next commit.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@alizelzele any progress on the next commit? thanks!

Copy link
Contributor

Choose a reason for hiding this comment

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

@mach6 I was waiting for the test fail issue that you reported in AppiumAndroidCheckBoxSeekBarTest.java. creating a pull request now.

@sebady
Copy link

sebady commented Jul 12, 2016

@alizelzele I have update this pr with your latest commit. I'm doing a little more testing on these changes but will be squashing and merging this branch shortly.

@sebady
Copy link

sebady commented Jul 12, 2016

merged

@sebady sebady closed this Jul 12, 2016
@mach6
Copy link
Contributor Author

mach6 commented Jul 13, 2016

@sebady @alizelzele Thanks for this!

@sebady sebady deleted the alizelzele-develop branch July 18, 2016 15:05
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.

None yet

3 participants