itms_automation 2.6.5 → 2.6.6

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
  SHA256:
3
- metadata.gz: 820fb5217d32c1f0f5e163b5369551bf927f687dc9668fd1e5207ead1e29faed
4
- data.tar.gz: 3192e486053d8e5e7df07364c86f47228141863b4203a370f6a2e54c251b96b6
3
+ metadata.gz: a0debb622483ecc8f743af4f964ac19b076602ae62a0ecf149b4b85284bd5bd9
4
+ data.tar.gz: a3d0dad052dd905099398484e92cb6a4e41a08f075bb69491cf9a374bf96104c
5
5
  SHA512:
6
- metadata.gz: 55bec109db3caf3a3d6d09244f72fc5a4a75e590ad3fbb43bcfad7ea58e355f7bcebe99f91bb9c53ac1138c85a8b7914754a94387592d9640ea7038751b6ef2b
7
- data.tar.gz: f1806fe2289e9547e6f741fd0642aa021e47f7c9c0d238251967f020c5b860d9fb8d29a60acf9415ef04c147fed11126309f11c416818c20651854cf6fe9af6c
6
+ metadata.gz: da38039d36ea506eb94609c605eb05a84da8f182e4a555ac8734bcdf2b4cd065ac2c07084626a5551e2f48049a7715bca2a5de7e67a1c5e4bec3643be7d28714
7
+ data.tar.gz: f52d41f0474e7d606891093536673b5c108a00d4f7f3e8063e4a8fbb6dfbbd22699374a6daebb13be4fd058933d8fbf1bbbd5c5ca1361eac4cb9458a91e67734
@@ -87,12 +87,17 @@ else # else create driver instance for desktop browser
87
87
  puts "\nMissing REMOTE_BROWSER: REMOTE_BROWSER=browser_name"
88
88
  Process.exit(0)
89
89
  else
90
- caps = Selenium::WebDriver::Remote::Capabilities.new
91
- caps["browserName"] = ENV["REMOTE_BROWSER"]
92
- caps["enableVNC"] = ENV["ENABLE_VNC"] if ENV["ENABLE_VNC"].present?
93
- caps["enableVideo"] = ENV["ENABLE_VIDEO"] if ENV["ENABLE_VIDEO"].present?
94
- caps["resolution"] = ENV["SCREEN_RESOLUTION"] if ENV["SCREEN_RESOLUTION"].present?
95
- Selenium::WebDriver.for(:remote, :url => ENV["SERVER_URL"], :desired_capabilities => caps)
90
+ if ENV['SERVER_URL'].nil? || ENV['REMOTE_BROWSER'].nil?
91
+ puts "\nMissing SERVER_URL : SERVER_URL=http//SERVER_URL:4444/wd/hub"
92
+ puts "\nMissing REMOTE_BROWSER: REMOTE_BROWSER=browser_name"
93
+ Process.exit(0)
94
+ else
95
+ caps = Selenium::WebDriver::Remote::Capabilities.new
96
+ caps["browserName"] = ENV["REMOTE_BROWSER"]
97
+ caps["enableVNC"] = true
98
+ caps["enableVideo"] = true
99
+ caps["resolution"] = ENV["resolution"] unless ENV["resolution"]
100
+ Selenium::WebDriver.for(:remote, :url => ENV["SERVER_URL"], :desired_capabilities => caps)
96
101
  end
97
102
  else
98
103
  Selenium::WebDriver.for(:firefox)
@@ -1,3 +1,4 @@
1
+ require 'selenium-webdriver'
1
2
 
2
3
  # custome exception class
3
4
  class TestCaseFailed < Exception
@@ -1,5 +1,5 @@
1
1
  module ITMS
2
2
  module Automation
3
- VERSION = '2.6.5'
3
+ VERSION = '2.6.6'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itms_automation
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.5
4
+ version: 2.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - INFOdation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-31 00:00:00.000000000 Z
11
+ date: 2020-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber