selendroid 0.1.5 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7781e4c0ddf416bd42dec1e3e51cec402f3a7903
|
4
|
+
data.tar.gz: b904903697ac1afb4874e2e72af12edf617d622d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 395dc79ce0bb8a460addcc4e628e72b2313a3d1283ae020c6afc83375e5085037f65a9fd39255aca76619a800018f9a6f8a3716afc22a613918c74efcb473ac3
|
7
|
+
data.tar.gz: 091b3564573432bece4525dbbfe7373212a6cf399463e0c5558e0d23d86ab9c50271c337b589097b37b027986b57276b3a174bdc4b1cc3c77945562ba884e69d
|
data/bin/selendroid
CHANGED
@@ -19,9 +19,9 @@ def print_comamndline_help
|
|
19
19
|
Prints more detailed help information.
|
20
20
|
build <apk>
|
21
21
|
Builds the selendroid-server for the given apk.
|
22
|
-
|
23
|
-
Starts the selendroid-server on the device (apps must be already installed) and opens an irb
|
24
|
-
The selendroid-inspector web app is running on: http://localhost:8080/inspector
|
22
|
+
shell
|
23
|
+
Starts the selendroid-server on the device (apps must be already installed) and opens an irb shell with an active WebDriver session.
|
24
|
+
The selendroid-inspector web app is running on: http://localhost:8080/inspector.
|
25
25
|
version
|
26
26
|
prints the gem version
|
27
27
|
To find help, please visit the official selendroid wiki: http://goo.gl/z30pj
|
@@ -41,7 +41,7 @@ def raise_if_android_home_not_set
|
|
41
41
|
raise "Please set the ANDROID_HOME environment variable" unless ENV["ANDROID_HOME"]
|
42
42
|
end
|
43
43
|
|
44
|
-
require File.join(File.dirname(__FILE__), "selendroid-
|
44
|
+
require File.join(File.dirname(__FILE__), "selendroid-shell")
|
45
45
|
|
46
46
|
if (ARGV.length == 0)
|
47
47
|
print_comamndline_help
|
@@ -51,8 +51,8 @@ cmd = ARGV.shift
|
|
51
51
|
if cmd == 'help'
|
52
52
|
print_comamndline_help
|
53
53
|
exit 0
|
54
|
-
elsif cmd == '
|
55
|
-
|
54
|
+
elsif cmd == 'shell'
|
55
|
+
selendroid_shell
|
56
56
|
exit 0
|
57
57
|
elsif cmd == 'build'
|
58
58
|
raise_if_android_home_not_set
|
data/irbrc
CHANGED
@@ -19,7 +19,7 @@ IRB.conf[:HISTORY_FILE] = ".irb-history"
|
|
19
19
|
require 'selendroid/selendroid_driver'
|
20
20
|
start_selendroid_server
|
21
21
|
start_selendroid_client
|
22
|
-
puts "#################### Selendroid
|
22
|
+
puts "#################### Selendroid shell ###################".green
|
23
23
|
puts "Selendroid inspector: http://localhost:8090/inspector".green
|
24
24
|
puts "Client-driver is available under: driver".green
|
25
25
|
puts "For help type: helpme".green
|
@@ -2,6 +2,9 @@ require 'selenium-webdriver'
|
|
2
2
|
require 'json'
|
3
3
|
require 'colorize'
|
4
4
|
|
5
|
+
include Selenium::WebDriver::DriverExtensions::HasInputDevices
|
6
|
+
include Selenium::WebDriver::DriverExtensions::HasTouchScreen
|
7
|
+
|
5
8
|
def start_selendroid_client
|
6
9
|
caps = Selenium::WebDriver::Remote::Capabilities.android
|
7
10
|
caps.version = "5"
|
@@ -57,6 +60,7 @@ end
|
|
57
60
|
def helpme
|
58
61
|
puts "Client-driver is available under: driver".green
|
59
62
|
puts "Official Webdriver Ruby bindins wiki: http://goo.gl/nJ9CJ".green
|
63
|
+
puts "To open the selendroid-inspector type: inspector".green
|
60
64
|
|
61
65
|
end
|
62
66
|
|
data/lib/selendroid/version.rb
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: selendroid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dominik Dary
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-03-
|
11
|
+
date: 2013-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|
@@ -95,7 +95,7 @@ files:
|
|
95
95
|
- README.md
|
96
96
|
- Rakefile
|
97
97
|
- bin/selendroid
|
98
|
-
- bin/selendroid-
|
98
|
+
- bin/selendroid-shell.rb
|
99
99
|
- irbrc
|
100
100
|
- lib/selendroid.rb
|
101
101
|
- lib/selendroid/selendroid_builder.rb
|