Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Added homeScreen support.#447

Closed
ericwengelking wants to merge 1 commit intoappium:masterappium/java-client:masterfrom
ericwengelking:masterericwengelking/java-client:masterCopy head branch name to clipboard
Closed

Added homeScreen support.#447
ericwengelking wants to merge 1 commit intoappium:masterappium/java-client:masterfrom
ericwengelking:masterericwengelking/java-client:masterCopy head branch name to clipboard

Conversation

@ericwengelking
Copy link

Change list

Added support for the /homescreen endpoint that is part of the new XCUITest driver. See appium/appium-xcuitest-driver#72 and appium/appium-base-driver#68

Types of changes

What types of changes are you proposing/introducing to Java client?
Put an x in the boxes that apply

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

Details

This method will call the /homescreen endpoint defined in WebDriverAgent https://github.com/facebook/WebDriverAgent

Unlike runAppInBackground(), the homeScreen() method will background the application until a user calls launchApp(). This allows the user to automate other parts of the simulator before running their tests or as part of their tests. This is now possible to do in XCUITestDriver. Examples of where this may be useful is when the user wants to modify settings before or during their tests or perform a Spotlight Search for something in their application.

Sample usage

// Create IOSDriver
IOSDriver<IOSElement> myDriver = new IOSDriver<IOSElement>(remoteAddress, capabilities);
// Simulate tapping the "Home" button on an iOS Device
myDriver.homeScreen();
// Do stuff on home screen
// Resume app
myDriver.launchApp()

@ericwengelking
Copy link
Author

We may want to move this to IOSXCUITDriver once it is added to the project instead of putting it directly in IOSDriver

@ericwengelking
Copy link
Author

Requires the following pull requests on other repos:
appium/appium-xcuitest-driver#72
appium/appium-base-driver#68

@SrinivasanTarget
Copy link
Member

@ericwengelking Thanks for this PR.We are gonna work on #398 for 5.0 release. We will get this in soon in our 5.0 release 👍 Thanks in advance for your patience.

@SrinivasanTarget
Copy link
Member

@ericwengelking Closing this because of inactivity.Please reopen with latest changes once server changes are merged.

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.

2 participants

Comments

Close sidebar
Morty Proxy This is a proxified and sanitized view of the page, visit original site.