Skip to content

Commit fe63a38

Browse files
committed
modify a bit
1 parent 46f02a8 commit fe63a38

2 files changed

Lines changed: 15 additions & 18 deletions

File tree

README.md

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -111,23 +111,20 @@ $ 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: '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
114+
opts = {
115+
capabilities: { # Append capabilities
116+
platformName: 'ios',
117+
platformVersion: '26.0',
118+
deviceName: 'iPhone 17',
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
131128

132129
# Launch iPhone Simulator and `MyiOS.app`
133130
@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 server_url: 'http://localhost:4723/wd/hub'
26+
driver = core.start_driver
2727
assert !driver.capabilities.nil?
2828

2929
log_entries = []

0 commit comments

Comments
 (0)