Skip to content

Commit 4a08dd6

Browse files
committedAug 23, 2013
Enable bundleid in app device cap
1 parent caff218 commit 4a08dd6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎lib/appium_lib/driver.rb

+4
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,10 @@ def absolute_app_path
386386
raise "App doesn't exist. #{@app_path}" unless File.exist? @app_path
387387
return @app_path
388388
end
389+
390+
# if it doesn't contain a slash then it's a bundle id
391+
return @app_path unless @app_path.match(/[\/\\]/)
392+
389393
file = File.join(File.dirname(__FILE__), @app_path)
390394
raise "App doesn't exist #{file}" unless File.exist? file
391395
file

0 commit comments

Comments
 (0)
Please sign in to comment.