File tree Expand file tree Collapse file tree
test/functional/android/webdriver Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 = [ ]
You can’t perform that action at this time.
0 commit comments