klepto 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/klepto/bot.rb +5 -2
- data/lib/klepto/version.rb +1 -1
- metadata +1 -1
data/lib/klepto/bot.rb
CHANGED
@@ -39,9 +39,8 @@ EOS
|
|
39
39
|
}
|
40
40
|
|
41
41
|
begin
|
42
|
+
@browser.page.driver.restart
|
42
43
|
@browser.fetch! @config.url
|
43
|
-
#@browser.page.driver.restart
|
44
|
-
#@browser.page.driver.quit #rescue nil
|
45
44
|
|
46
45
|
# Fire callbacks on GET
|
47
46
|
@config.after_handlers[:get].each do |ah|
|
@@ -84,6 +83,10 @@ EOS
|
|
84
83
|
end
|
85
84
|
end
|
86
85
|
|
86
|
+
# @browser.page.driver.client.stop
|
87
|
+
# @browser.page.driver.server.stop
|
88
|
+
# @browser.page.driver.quit #rescue nil
|
89
|
+
|
87
90
|
@structure
|
88
91
|
end
|
89
92
|
|
data/lib/klepto/version.rb
CHANGED