@@ -46,6 +46,10 @@ def self.android
46
46
new . android
47
47
end
48
48
49
+ def self . android_web
50
+ new . android_web
51
+ end
52
+
49
53
# Require a simulator which OS version is 11.4, for example.
50
54
def ios
51
55
wda_local_port = get_wda_local_port
@@ -95,6 +99,12 @@ def android
95
99
language : 'en' ,
96
100
locale : 'US' ,
97
101
adbExecTimeout : 5_000 , # 5 sec
102
+ # An emulator 8.1 has Chrome/61.0.3163.98
103
+ # Download a chrome driver from https://chromedriver.storage.googleapis.com/index.html?path=2.34/
104
+ # chromedriverExecutable: "#{Dir.pwd}/test/functional/app/chromedriver_2.34",
105
+ chromeOptions : {
106
+ args : [ '--disable-popup-blocking' ]
107
+ }
98
108
} ,
99
109
appium_lib : {
100
110
export_session : true ,
@@ -113,9 +123,9 @@ def android_web
113
123
automationName : ENV [ 'AUTOMATION_NAME' ] || 'uiautomator2' ,
114
124
chromeOptions : { androidPackage : 'com.android.chrome' , args : [ '--disable-popup-blocking' ] } ,
115
125
# refer: https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/web/chromedriver.md
116
- # chromedriverExecutable: "#{Dir.pwd}/test/functional/app/chromedriver",
117
- # autoWebviewTimeout: 10000,
118
- chromedriverUseSystemExecutable : true ,
126
+ # An emulator 8.1 has Chrome/61.0.3163.98
127
+ # Download a chrome driver from https://chromedriver.storage.googleapis.com/index.html?path=2.34/
128
+ # chromedriverExecutable: "#{Dir.pwd}/test/functional/app/chromedriver_2.34" ,
119
129
udid : get_udid_name ,
120
130
deviceName : 'Android Emulator' ,
121
131
someCapability : 'some_capability' ,
0 commit comments