percy-selenium 1.1.0.pre.beta.1 → 1.1.0.pre.beta.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/percy.rb +2 -1
  3. data/lib/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84e0ed534fb2da64081b19d4c0b13e837e4c8800d3ed12e61c4e827e80c94e70
4
- data.tar.gz: 8785427dd5e88ba487e55d14b3c0d634680737eee895971dd742e81efe7a3aca
3
+ metadata.gz: 93874c7ca2563a5bcc985ab857035658b57dade066310c6a059f6b0c545836bf
4
+ data.tar.gz: fb3ee7e5c65d28c29da169febd33eba48d4f4b52987aa1af4709ebb2479b50d6
5
5
  SHA512:
6
- metadata.gz: d6d71138d3d1267f8924858ee6f94a6a9969e3ce5b4e377d0f484194c5b595e99124f74a24e30761c611a730ee78f08b8542b51870c74b1c90d318935bdf2352
7
- data.tar.gz: 9ece4fe3dd36379e07bc1024a3cc35aa005ab9fad3aedd42f26ed16e58b2bfee4445ce95adb71780a0cc2b3f38be2a519028d6c597ef7c16c911967809f15108
6
+ metadata.gz: 8c3181f97b40acc391064ab3795a5708fb332f6725dbfdfc67dc84f836658cc151ad12550fd27acccdc7a57fc03109780ab8cd7742ae3975cecae06e1f98816c
7
+ data.tar.gz: c942d7b712fe9af71edc61b07f883a1978546377cbbe52b7d73d81caad4b286b5af61fbc3579fdfb89b26487953259fe4dffd2a9cc08ee7bda1007ca5e1f98ce
data/lib/percy.rb CHANGED
@@ -46,7 +46,8 @@ module Percy
46
46
  end
47
47
 
48
48
  def self.get_browser_instance(driver)
49
- if driver.is_a?(Capybara::Session)
49
+ # this means it is a capybara session
50
+ if driver.respond_to?(:driver) && driver.driver.respond_to?(:browser)
50
51
  return driver.driver.browser.manage
51
52
  end
52
53
 
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Percy
2
- VERSION = '1.1.0-beta.1'.freeze
2
+ VERSION = '1.1.0-beta.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: percy-selenium
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0.pre.beta.1
4
+ version: 1.1.0.pre.beta.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Perceptual Inc.