Skip to content

Commit 46f02a8

Browse files
committed
test: use Xcode 26 built ui catalog
1 parent e3fc0b4 commit 46f02a8

3 files changed

Lines changed: 18 additions & 15 deletions

File tree

README.md

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -111,20 +111,23 @@ $ IGNORE_VERSION_SKIP=true CI=true bundle exec rake test:func:android
111111
require 'rubygems'
112112
require 'appium_lib_core'
113113

114-
opts = {
115-
capabilities: { # Append capabilities
116-
platformName: 'ios',
117-
platformVersion: '18.4',
118-
deviceName: 'iPhone 16 Plus',
119-
# app: '/path/to/MyiOS.app', # Without 'app' capability, an appium session starts with the home screen
120-
automationName: 'XCUITest'
121-
},
122-
appium_lib: {
123-
wait: 30
124-
}
125-
}
126-
@core = Appium::Core.for(opts) # create a core driver with `opts`
127-
@driver = @core.start_driver
114+
opts = {
115+
capabilities: { # Append capabilities
116+
platformName: 'android',
117+
platformVersion: '16',
118+
deviceName: 'Android',
119+
browserName: "chrome",
120+
# app: '/path/to/MyiOS.app', # Without 'app' capability, an appium session starts with the home screen
121+
automationName: 'uiautomator2',
122+
udid: "emulator-5554",
123+
recreateChromeDriverSessions: true,
124+
},
125+
appium_lib: {
126+
wait: 30
127+
}
128+
}
129+
@core = Appium::Core.for(opts) # create a core driver with `opts`
130+
@driver = @core.start_driver
128131

129132
# Launch iPhone Simulator and `MyiOS.app`
130133
@driver.find_element(:accessibility_id, 'some accessibility') # find an element

test/functional/android/webdriver/bidi_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def test_bidi
2323
caps[:capabilities]['webSocketUrl'] = true
2424
core = ::Appium::Core.for(caps)
2525

26-
driver = core.start_driver
26+
driver = core.start_driver server_url: 'http://localhost:4723/wd/hub'
2727
assert !driver.capabilities.nil?
2828

2929
log_entries = []
-16.8 MB
Binary file not shown.

0 commit comments

Comments
 (0)