Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -869,17 +869,21 @@ def start_appium_driver(
# saving simulator path for future use
Shared_Resources.Set_Shared_Variables("ios_simulator_folder_path", str(app))

app = os.path.join(app, ios)
encoding = "utf-8"
bundle_id = str(
subprocess.check_output(
["osascript", "-e", 'id of app "%s"' % str(app)]
),
encoding=encoding,
).strip()

desired_caps["app"] = app # Use set_value() for writing to element
desired_caps["bundleId"] = bundle_id.replace("\\n", "")
ios_part = ios.split('.')[0]
if ios_part == 'com':
desired_caps["bundleId"] = ios
else:
app = os.path.join(app, ios)
encoding = "utf-8"
bundle_id = str(
subprocess.check_output(
["osascript", "-e", 'id of app "%s"' % str(app)]
),
encoding=encoding,
).strip()

desired_caps["app"] = app # Use set_value() for writing to element
desired_caps["bundleId"] = bundle_id.replace("\\n", "")

desired_caps["platformName"] = "iOS" # Read version #!!! Temporarily hard coded
desired_caps["platformVersion"] = platform_version
Expand Down