appium / appium-mac2-driver

Next-gen Appium macOS driver, backed by Apple XCTest
Apache License 2.0
115 stars 24 forks source link

feat: add appPath to handleCreateSession #230

Closed proAlexandr closed 9 months ago

proAlexandr commented 10 months ago

TL;DR: Allows to explicitly specify path to .app application that will be opened by driver.

Context: During development you can have many build of the same application with the same bundleId on your machine. You have no control which one will be opened by [[XCUIApplication alloc] initWithBundleIdentifier:bundleID]. So you can end up testing wrong build (for example, production build from /Application folder instead of dev build that includes local changes).

This PR introduces appPath argument for /session request to specify a path to .app application and be sure that webdriver launches exactly the same build that you need.

linux-foundation-easycla[bot] commented 10 months ago

CLA Signed

The committers listed above are authorized under a signed CLA.

mykola-mokhnach commented 10 months ago

@proAlexandr Please sign the CLA

proAlexandr commented 10 months ago

Hi @mykola-mokhnach. Thanks a lot for review! I have signed SLA and updated the PR according to comments.

github-actions[bot] commented 9 months ago

:tada: This PR is included in version 1.8.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: