gridium 0.1.18 → 0.1.20

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: b3b8ab648f0c37330746086dd33853cd3efd02db
4
- data.tar.gz: 99678a416e35d755b09eb8c6a087c23bb8e30cab
3
+ metadata.gz: b77202e6bee5d80ba570b3b4e7fd9bc7c1dd1c68
4
+ data.tar.gz: aab4d3d8350d17a50910935cd27cfe07829f656c
5
5
  SHA512:
6
- metadata.gz: 93898e12a0ab8baac0db6d4be3b672508037d6f970e10d4b754baefb0de0537a3d439dd51091da2f9905b4e3b2e58ee5f78f9987275ed45b1f3051383fbe2802
7
- data.tar.gz: a584a1fa3268bf2940522db523d1dbc218b7bc9fa38c5dd04bc34197e99f4e76a2f56dfb215d3187f6fda7547f3a8c1afb2601f035a10ae67fcbe8a2fb9891ae
6
+ metadata.gz: 51124171ab972f58911934f438ddb9a7123d598ba439eb40ac41149e2b67e3a2b8f23ac147fb23f5fdc07aee7ff4a24aa1f8c8e48de459e0580640b13d78c5db
7
+ data.tar.gz: a16ecd7dbc901c9554966ad23d43d1591dbd7da4c9e92054ceb6f5708ad0cde3a1583536513d933912ebf399b307e179d680689218064992d4653760a91266e5
data/lib/driver.rb CHANGED
@@ -6,6 +6,7 @@ class Driver
6
6
  @@driver = nil
7
7
 
8
8
  def self.reset
9
+ Log.debug("====> Driver.reset: #{@@driver}")
9
10
  driver.manage.delete_all_cookies
10
11
  driver.manage.timeouts.page_load = Gridium.config.page_load_timeout
11
12
  driver.manage.timeouts.implicit_wait = Gridium.config.element_timeout
@@ -23,12 +24,14 @@ class Driver
23
24
  end
24
25
 
25
26
  def self.driver
27
+ Log.debug("=====> Driver.driver: #{@@driver}")
26
28
  begin
27
29
  unless @@driver
28
30
  @browser_type = Gridium.config.browser
29
31
  ##Adding support for remote browsers
30
32
  if Gridium.config.browser_source == :remote
31
33
  @@driver = Selenium::WebDriver.for(:remote, url: Gridium.config.target_environment, desired_capabilities: Gridium.config.browser)
34
+ Log.debug("Remote Browser Requested: #{@@driver}")
32
35
  #this file detector is only used for remote drivers and is needed to upload files from test_host through Grid to browser
33
36
  @@driver.file_detector = lambda do |args|
34
37
  str = args.first.to_s
@@ -58,6 +61,7 @@ class Driver
58
61
  # =============== #
59
62
 
60
63
  def self.visit(path)
64
+ Log.debug("====> Driver.Visit: #{@@driver}")
61
65
  begin
62
66
  if path
63
67
  Log.debug("Navigating to url: (#{path}).")
@@ -76,6 +80,7 @@ class Driver
76
80
  end
77
81
 
78
82
  def self.nav(path)
83
+ Log.debug("====> Driver.nav: #{@@driver}")
79
84
  visit(Gridium.config.url + path)
80
85
  end
81
86
 
@@ -1,3 +1,3 @@
1
1
  module Gridium
2
- VERSION = "0.1.18"
2
+ VERSION = "0.1.20"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gridium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.18
4
+ version: 0.1.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seth Urban
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-05 00:00:00.000000000 Z
11
+ date: 2016-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -138,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
138
  version: '0'
139
139
  requirements: []
140
140
  rubyforge_project:
141
- rubygems_version: 2.5.1
141
+ rubygems_version: 2.6.6
142
142
  signing_key:
143
143
  specification_version: 4
144
144
  summary: This Gem is used to make building Selenium Tests without Capybara Easier.