flights_gui_tests 1.3.7 → 1.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f2db9c515855e405e974cb7da48d1be72aa8c484
4
- data.tar.gz: 55c899ff28fc407add83c9b8ca33f63c6a03f4ae
3
+ metadata.gz: 0be9c90128532669507455a9639c3f9c38a6c28b
4
+ data.tar.gz: c6ab8d3a606e81a40cfad581365c2b3403774fe0
5
5
  SHA512:
6
- metadata.gz: f32c7abf18080a8d63828b5178c6ce9c5c81b9a2d87af90e0f945abd57a190c693faac993ca4a475f137c50b948940b31529679a857d9e905321075e51980884
7
- data.tar.gz: 4c1b417a7fd1dcac80d7030bc8582083bb7f235ba546ab53ce16507962b2dbe4063ba883b7bb3bbaf4ec4ce41df3d7f5e5068895eacc9f537b5301a16934abaa
6
+ metadata.gz: 7567478293f0332e0b346ad92679ac760e15d179456a42cb364ea76474a453c4f2ae8831afabef8cedf25161f2717a9d81e210e18eeb5393f9c93360fc6ecd20
7
+ data.tar.gz: 9fae5839b5baad048708f4b32f86e1fb734197d60c6b35a6520ade3620af529ad2b667b35cad2cf5844cba91e473f862394ef9bd574898b529ea31e70c258ec5
@@ -254,7 +254,12 @@ module NewCheckout
254
254
  doc = Hpricot.parse(@browser.html)
255
255
  (doc/"select#card-installment-select option").each do |option|
256
256
  @browser.select_list(:id,'card-installment-select').select_value(option.attributes['value'])
257
- total_desglose = Hpricot.parse(precio_final_element.html).inner_text.gsub(/\D/,'').to_i
257
+ begin
258
+ total_desglose = Hpricot.parse(precio_final_element.html).inner_text.gsub(/\D/,'').to_i
259
+ rescue Watir::Exception::UnknownObjectException
260
+ sleep(2)
261
+ total_desglose = Hpricot.parse(precio_final_element.html).inner_text.gsub(/\D/,'').to_i
262
+ end
258
263
  if desglose_de_cuotas_element.present?
259
264
  doc = Hpricot.parse(desglose_de_cuotas_element.html)
260
265
  inicial = (doc/"span.first-price").inner_text.downstrip.gsub(/\./,'').match(/(\d+)$/)[1].to_i
@@ -1,3 +1,3 @@
1
1
  module FlightsGui
2
- VERSION = "1.3.7"
2
+ VERSION = "1.3.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flights_gui_tests
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.7
4
+ version: 1.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - lgonzalez