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.
- data/lib/prestashop-automation.rb +11 -1
- 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 :
|
69
|
+
super :selenium_with_long_timeout
|
60
70
|
end
|
61
71
|
|
62
72
|
def quit
|