Skip to content

Fix complexFind. Add scrollTo, scrollToExact #26

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
May 19, 2014
Merged

Fix complexFind. Add scrollTo, scrollToExact #26

merged 1 commit into from
May 19, 2014

Conversation

bootstraponline
Copy link
Member

Fix #25

element.setParent(driver);
element.setId(elementId);
element.setFileDetector(driver.getFileDetector());
return element;
Copy link
Member

Choose a reason for hiding this comment

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

This method could instead return class MobileElement.
return new MobileElement(element, driver);

Then all the elements returned by complexFind can be easily cast to MobileElement.

Additionally, can we have all the methods in this class return MobileElement rather than WebElement. Since driver has to be an instance of AppiumDriver, might as well always return MobileElements

@bootstraponline
Copy link
Member Author

@Jonahss Updated

Jonahss added a commit that referenced this pull request May 19, 2014
Fix complexFind. Add scrollTo, scrollToExact
@Jonahss Jonahss merged commit ac43e99 into appium:master May 19, 2014
@bootstraponline bootstraponline deleted the complex branch May 20, 2014 03:05
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

complexFind must return an element
2 participants