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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cec532a191afce5e92480eba76d1891c7b80e10c
4
- data.tar.gz: 89baf5dcabc8330d70473394d3e9606e7f305778
3
+ metadata.gz: 5dfe3cac6171fe77588a29db911a7cb4da0ec6d1
4
+ data.tar.gz: 5b6bfe6f6e72580fcd9fdc8cadd49ce1ebccf7ae
5
5
  SHA512:
6
- metadata.gz: 8bb4dd60127154883aee1e8d26038a37448655b0f4004cd0465b7d837b1bb96896b9f82b8728be546da3d9a556841113cb878bf0234af9109c78d322344f011d
7
- data.tar.gz: 27e254b120cac5a8dd0a11e201f38fd1bc942594bea2812312be2f2683c2564d8c43a87041c9e092cb0c25835e280a76c99ebe40171c779f1ac721a5aebd8b09
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
- | OS | Chrome | Firefox (v47-) | Firefox Gecko (v48+) | IE 11/10 | Edge | Opera | PhantomJS | Chrome Mobile[2] |
203
- |---|---|---|---|---|---|---|---|---|
204
- | Linux | Supported | Supported | Supported | N/A | N/A | Supported[1] | Supported | Supported |
205
- | Mac | Supported | Supported | Supported | N/A | N/A | Supported[1] | Supported | Supported |
206
- | Windows | Supported | Supported | Supported | Supported | Supported[3]| Coming Soon! | Supported | Supported |
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
@@ -52,7 +52,7 @@ module TestNow
52
52
  when "opera"
53
53
  opera = Opera.new
54
54
  opera.launch_watir_opera
55
- when "androidchrome"
55
+ when "androidchrome","chromeandroid"
56
56
  ac = AndroidChrome.new
57
57
  ac.launch_watir_android_chrome
58
58
  when "ie"
@@ -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
- @client.timeout = 120
7
- @service = Selenium::WebDriver::Chrome::Service.new("/usr/local/bin/chromedriver")
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
- caps = {'chromeOptions'=> {'androidPackage' => 'com.android.chrome'}}
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
- caps = {'chromeOptions'=> {'androidPackage' => 'com.android.chrome'}}
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
@@ -1 +1 @@
1
- 0.1.2
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.2
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-04-25 00:00:00.000000000 Z
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.5.1
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'