prestashop-automation 0.8.4 → 0.8.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/prestashop-automation.rb +11 -1
  2. metadata +1 -1
@@ -1,6 +1,7 @@
1
1
  require 'rspec'
2
2
  require 'capybara'
3
3
  require 'shellwords'
4
+ require 'selenium/webdriver'
4
5
 
5
6
  require_relative 'actions/general.rb'
6
7
  require_relative 'actions/settings.rb'
@@ -17,6 +18,15 @@ module PrestaShopAutomation
17
18
 
18
19
  class PrestaShop < Capybara::Session
19
20
 
21
+ unless @drivers_defined
22
+ Capybara.register_driver :selenium_with_long_timeout do |app|
23
+ client = Selenium::WebDriver::Remote::Http::Default.new
24
+ client.timeout = 300
25
+ Capybara::Selenium::Driver.new(app, :browser => :firefox, :http_client => client)
26
+ end
27
+ @drivers_defined = true
28
+ end
29
+
20
30
  include RSpec::Expectations
21
31
  include RSpec::Matchers
22
32
 
@@ -56,7 +66,7 @@ module PrestaShopAutomation
56
66
 
57
67
  @dumps = []
58
68
 
59
- super :selenium
69
+ super :selenium_with_long_timeout
60
70
  end
61
71
 
62
72
  def quit
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prestashop-automation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.4
4
+ version: 0.8.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: