appium_connect_pi 1.0.17 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/Appium.rb +4 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f5adbbc8c19d2753c3994d25331afcb0a9dd5fb
|
4
|
+
data.tar.gz: 4cc61212d90d394caeb421bdc92267c0cf490ada
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89a71956fc3eaffa7e482585795dbdc833109ecb93462637cecb674123ac22bc83624d6920eda36369ce28afdfd2091a3e1c06593b1de8e816e152183029db26
|
7
|
+
data.tar.gz: 1f22137eceabcc371a07466e5addae8ce932518cee1308a77361c7d079ba977368b22bd5a37b80e4d430064ca55f2d91cdb01c527424439782d6e4f803015fe8
|
data/lib/Appium.rb
CHANGED
@@ -7,6 +7,7 @@ def appium_server_start(**options)
|
|
7
7
|
command << " --udid #{options[:udid]}" if options.key?(:udid)
|
8
8
|
command << " --automation-name #{options[:automationName]}" if options.key?(:automationName)
|
9
9
|
command << " --selendroid-port #{options[:selendroidPort]}" if options.key?(:selendroidPort)
|
10
|
+
command << " --webkit-debug-proxy-port #{options[:webkitDebugProxyPort] if options.key?(:webkitDebugProxyPort)}"
|
10
11
|
command << " --log #{Dir.pwd}/output/#{options[:log]}" if options.key?(:log)
|
11
12
|
command << " --tmp /tmp/#{options[:tmp]}" if options.key?(:tmp)
|
12
13
|
command << " --chromedriver-port #{options[:cp]}" if options.key?(:cp)
|
@@ -16,6 +17,7 @@ def appium_server_start(**options)
|
|
16
17
|
pid = system(command)
|
17
18
|
elsif Gem::Platform.local.os == 'darwin'
|
18
19
|
`osascript -e 'tell app "Terminal" to do script "#{command}"'`
|
20
|
+
`osascript -e 'tell app "Terminal" to do script " ios_webkit_debug_proxy -c #{options[:udid]}:#{options[:webkit_debug_proxy_port]} -d"`
|
19
21
|
else
|
20
22
|
pid = system('start ' + command)
|
21
23
|
end
|
@@ -40,10 +42,11 @@ def launch_hub_and_nodes(ip, hubIp, nodeDir)
|
|
40
42
|
|
41
43
|
ios_devices.size.times do |index|
|
42
44
|
port = 4100 + index
|
45
|
+
webkit_port = 27753 + index
|
43
46
|
config_name = "#{ios_devices[index]["udid"]}.json"
|
44
47
|
generate_node_config nodeDir, config_name, ios_devices[index]["udid"], port, ip, hubIp, 'MAC', 'safari'
|
45
48
|
node_config = nodeDir + '/node_configs/' +"#{config_name}"
|
46
|
-
appium_server_start config: node_config, port: port, udid: ios_devices[index]["udid"], log: "appium-#{ios_devices[index]["udid"]}.log", tmp: ios_devices[index]["udid"]
|
49
|
+
appium_server_start config: node_config, port: port, udid: ios_devices[index]["udid"], log: "appium-#{ios_devices[index]["udid"]}.log", tmp: ios_devices[index]["udid"], webkit_debug_proxy_port: webkit_port
|
47
50
|
end
|
48
51
|
|
49
52
|
else
|