hotel_price 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hotel_price/rakuten/rakuten_console.rb +7 -3
- data/lib/hotel_price/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f11db6a218402ed66a5b38636651f60ad2254925f7214ed2d5066c8a8d119e0
|
4
|
+
data.tar.gz: 1e8080a6c350b3826197fbed5c005969adc3320e0f140fd89baa5e9cef793126
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e3a2539ffc8f2e05273b863f0a7ebdd265dac1d61486f1e5392371cc95d499d0390ae6286c71ba73cafc3764ca8ec80ac765397fee4be2bab810c0097b3d38f
|
7
|
+
data.tar.gz: 578761c339e4e77b12b2bc929fb78fdf49fb906f58d24ce7fb56b8001065258298c3a29fd964060c09c1f1713e64211fa56f556e123bb11e5303ae8dfd933bc7
|
@@ -7,10 +7,14 @@ module HotelPrice::Rakuten
|
|
7
7
|
chain: params[:chain] ||= false,
|
8
8
|
rakuten_hotel_id: params[:rakuten_hotel_id] ||= 0
|
9
9
|
}
|
10
|
-
options = Selenium::WebDriver::Firefox::Options.new
|
11
|
-
options.add_argument("-headless")
|
12
10
|
@wait = Selenium::WebDriver::Wait.new(:timeout => 100)
|
13
|
-
|
11
|
+
# For Local Headless
|
12
|
+
# options = Selenium::WebDriver::Firefox::Options.new
|
13
|
+
# options.add_argument("-headless")
|
14
|
+
# @driver = Selenium::WebDriver.for :firefox, options: options
|
15
|
+
|
16
|
+
firefox_capabilities = Selenium::WebDriver::Remote::Capabilities.firefox
|
17
|
+
@driver = Selenium::WebDriver.for(:remote, url: "http://hub:4444/wd/hub", desired_capabilities: firefox_capabilities)
|
14
18
|
if @config[:chain]
|
15
19
|
go_to_management_page_chain
|
16
20
|
else
|
data/lib/hotel_price/version.rb
CHANGED