testnow 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -8
- data/lib/testnow.rb +1 -1
- data/lib/testnow/android_chrome.rb +5 -6
- data/lib/testnow/version +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5dfe3cac6171fe77588a29db911a7cb4da0ec6d1
|
4
|
+
data.tar.gz: 5b6bfe6f6e72580fcd9fdc8cadd49ce1ebccf7ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ca4411ff5f8baca1e2c22dab8dd7af9cfe8e66cd13d0095f4095234dd6e523e579bb068fbfb586b7ce00557b47f4b945e6a52ad740cdb7b95df2932805d1c58
|
7
|
+
data.tar.gz: 88f9890f9991bb3d99b70fa771f0b5b229a7503ca2295e4cac79d62b75edb007b61f42765bca1c2318fbcf07ce27f4469239d1d14638819c973dfb46e2d3ac27
|
data/README.md
CHANGED
@@ -199,18 +199,26 @@ rake testnow BROWSER="Mobile Chrome" DEVICE=Google_Nexus_6
|
|
199
199
|
## Browsers
|
200
200
|
As mentioned in the above section that there is a variable exposed called _BROWSER_ but what are the values to be passed and which OS-Browsers combinations are supported, well here is a index grid below:
|
201
201
|
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
202
|
+
|
203
|
+
| :point_down: Browsers :left_right_arrow: OS :point_right: | Linux | Mac | Windows |
|
204
|
+
|---|---|---|---|
|
205
|
+
| Google Chrome | Supported | Supported | Supported |
|
206
|
+
| Mozilla Firefox(v47-) | Supported | Supported | Supported |
|
207
|
+
| Mozilla Firefox Gecko(v48+) | Supported | Supported | Supported |
|
208
|
+
| Internet Explorer 10/11 | N/A | N/A | Supported |
|
209
|
+
| Microsoft Edge | N/A | N/A | Supported[3] |
|
210
|
+
| Opera | Supported[1] | Supported[1] | Coming Soon!! |
|
211
|
+
| PhantomJS | Supported | Supported | Supported |
|
212
|
+
| Chrome Mobile Emulation[2] | Supported | Supported | Supported |
|
213
|
+
| Chrome on Android Phones/Emulators[4] | Supported | Supported | Supported |
|
214
|
+
|
208
215
|
Note:
|
209
216
|
[1] Currently it is expected that the Opera webdriver binary is present inside "/usr/local/bin/operadriver, soon this path will be made customizable and exposaed as a varibale.
|
210
217
|
[2] This is not another browser, it is the mobile emulation which Google Chrome proovides through its developer tools.
|
211
|
-
[3] Please download the required Microsoft WebDriver as per your windows 10 build number. Windows 10 build can be checked with the `winver` command.
|
218
|
+
[3] Please download the required Microsoft WebDriver as per your windows 10 build number. Windows 10 build can be checked with the `winver` command.
|
219
|
+
[4] In this case, there should be an android phone/emulator with google chrome installed connected to system via adb.
|
212
220
|
|
213
|
-
## Contributing
|
221
|
+
## Contributing
|
214
222
|
Ideas and suggestions are always always most welcome. Please fork this gem code and feel free to add any updates, suggestions etc and create a pull request.
|
215
223
|
|
216
224
|
## Issues
|
data/lib/testnow.rb
CHANGED
@@ -3,23 +3,22 @@ class AndroidChrome
|
|
3
3
|
@private
|
4
4
|
def android_chrome_config
|
5
5
|
@client = Selenium::WebDriver::Remote::Http::Default.new
|
6
|
-
|
7
|
-
|
6
|
+
@client.read_timeout = 120
|
7
|
+
@service = Selenium::WebDriver::Chrome::Service.new("/usr/local/bin/chromedriver", 9515, {})
|
8
8
|
@service.start
|
9
|
+
@caps = Selenium::WebDriver::Remote::Capabilities.chrome('chromeOptions'=> {'androidPackage' => 'com.android.chrome'})
|
9
10
|
end
|
10
11
|
|
11
12
|
def launch_driver_android_chrome
|
12
13
|
self.android_chrome_config
|
13
|
-
|
14
|
-
driver = Selenium::WebDriver.for(:remote, :http_client => client, :url => service.uri, :desired_capabilities => caps)
|
14
|
+
driver = Selenium::WebDriver.for(:remote, :http_client => @client, :url => @service.uri, :desired_capabilities => @caps)
|
15
15
|
driver.manage.timeouts.implicit_wait = 60
|
16
16
|
return driver
|
17
17
|
end
|
18
18
|
|
19
19
|
def launch_watir_android_chrome
|
20
20
|
self.android_chrome_config
|
21
|
-
|
22
|
-
browser = Watir::Browser.new(:remote, :url => @service.uri, :desired_capabilities => @cap, :http_client => @client)
|
21
|
+
browser = Watir::Browser.new(:remote, :url => @service.uri, :desired_capabilities => @caps, :http_client => @client)
|
23
22
|
browser.driver.manage.timeouts.implicit_wait = 60
|
24
23
|
return browser
|
25
24
|
end
|
data/lib/testnow/version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: testnow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kaushal Rupani
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
119
|
version: '0'
|
120
120
|
requirements: []
|
121
121
|
rubyforge_project:
|
122
|
-
rubygems_version: 2.
|
122
|
+
rubygems_version: 2.6.12
|
123
123
|
signing_key:
|
124
124
|
specification_version: 4
|
125
125
|
summary: 'TestNow gem : Automate in a Cross Browser style'
|