@@ -91,7 +91,8 @@ class Driver
91
91
# wait_timeout: 30
92
92
# }
93
93
# }
94
- # Appium::Driver.new(opts, true).start_driver
94
+ # appium_driver = Appium::Driver.new(opts, true)
95
+ # appium_driver.start_driver
95
96
#
96
97
# # Start Android driver with global scope
97
98
# opts = {
@@ -104,7 +105,8 @@ class Driver
104
105
# wait_interval: 1
105
106
# }
106
107
# }
107
- # Appium::Driver.new(opts, true).start_driver
108
+ # appium_driver = Appium::Driver.new(opts, true)
109
+ # appium_driver.start_driver
108
110
#
109
111
# # Start iOS driver without global scope
110
112
# opts = {
@@ -116,7 +118,8 @@ class Driver
116
118
# wait_timeout: 30
117
119
# }
118
120
# }
119
- # Appium::Driver.new(opts, false).start_driver
121
+ # appium_driver = Appium::Driver.new(opts, false)
122
+ # appium_driver.start_driver
120
123
#
121
124
# # Start iOS driver without global scope
122
125
# opts = {
@@ -129,7 +132,8 @@ class Driver
129
132
# },
130
133
# global_driver: false
131
134
# }
132
- # Appium::Driver.new(opts).start_driver
135
+ # appium_driver = Appium::Driver.new(opts)
136
+ # appium_driver.start_driver
133
137
#
134
138
# @param opts [Object] A hash containing various options.
135
139
# @param global_driver [Bool] A bool require global driver before initialize.
@@ -489,7 +493,8 @@ def window_size
489
493
# wait_timeout: 30
490
494
# }
491
495
# }
492
- # Appium::Driver.new(opts).start_driver
496
+ # appium_driver = Appium::Driver.new(opts) #=> return an Appium::Driver instance
497
+ # appium_driver.start_driver #=> return an Appium::Core::Base::Driver
493
498
#
494
499
# @option http_client_ops [Hash] :http_client Custom HTTP Client
495
500
# @option http_client_ops [Hash] :open_timeout Custom open timeout for http client.
@@ -591,13 +596,15 @@ def execute_script(script, *args)
591
596
# @example
592
597
#
593
598
# @driver = Appium::Driver.new(opts, false)
599
+ # @driver.start_driver
594
600
# @driver.find_elements :predicate, yyy
595
601
#
596
602
# If you call `Appium.promote_appium_methods`, you can call `find_elements` directly.
597
603
#
598
604
# @example
599
605
#
600
606
# @driver = Appium::Driver.new(opts, false)
607
+ # @driver.start_driver
601
608
# @driver.find_elements :predicate, yyy
602
609
#
603
610
# If you call `Appium.promote_appium_methods`, you can call `find_elements` directly.
@@ -613,6 +620,7 @@ def find_elements(*args)
613
620
# @example
614
621
#
615
622
# @driver = Appium::Driver.new(opts, false)
623
+ # @driver.start_driver
616
624
# @driver.find_element :accessibility_id, zzz
617
625
#
618
626
# If you call `Appium.promote_appium_methods`, you can call `find_element` directly.
0 commit comments