flights_gui_tests 0.9.4 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 440054474d89374a0a4116537f423c744fb34f74
4
- data.tar.gz: 8b37dc4937118be3a7fb2ec3bfebf491ee230974
3
+ metadata.gz: 4c5fb8730aff220c5cf527454eb9e82ab3e26cee
4
+ data.tar.gz: 406f65f7cd2a9186184025f20a720fee4b316e01
5
5
  SHA512:
6
- metadata.gz: ef2d4594b047792b6474947069be6d5593ad05f71ba0dc67a717c577347bf1d17cfaffadae92f17d7d34472b46b5a2b168fd8c5eea4100149169109be2774924
7
- data.tar.gz: c4d696794ef8ae3aec2b12f0aae794656f592a0875563191287b3152ac83301ea13e596bf4a665ee682c98ccedd2723bcee8a0c25fd00c9f1d7e18f5c514b847
6
+ metadata.gz: 78126c9e723cc1430472b452aa5a556b76fdde273573a0f17cb1b5d73676256c93f9da55931712d9fb944b2d760695486b15ae0e59e655839ad1005f22f09004
7
+ data.tar.gz: 2c092e13353162b107fbcfe6fcaf00ef0b7fc741bd34e46a8d337017a13da5db3b9ce01fea8dc684055af1f0b977ec2853f0fafc433d1b3a275efd88581b18f3
@@ -2,7 +2,9 @@
2
2
  module Browser
3
3
 
4
4
  def self.iniciar(browser)
5
- browser = Watir::Browser.new(browser.downcase.to_sym)
5
+ client = Selenium::WebDriver::Remote::Http::Default.new
6
+ client.timeout = 180
7
+ browser = Watir::Browser.new(browser.downcase.to_sym,:http_client=>client)
6
8
  maximizar(browser)
7
9
  return browser
8
10
  end
@@ -67,9 +67,11 @@ module Checkout
67
67
  @browser.execute_script("javascript:void($('#read-agreement').click());")
68
68
  end
69
69
  begin
70
- @browser.execute_script("javascript:void($('#submit').click());")
70
+ comprar_element.click
71
71
  rescue Selenium::WebDriver::Error::UnknownError
72
- comprar_element.click
72
+ @browser.execute_script("javascript:void($('#submit').click());")
73
+ rescue Net::ReadTimeout
74
+ @browser.send_keys :escape
73
75
  end
74
76
  end
75
77
 
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
14
14
 
15
15
  gem.require_paths = ["lib"] # Usualmente es solo lib -> ["lib"]
16
16
 
17
- gem.version = '0.9.4' # La version se debe incrementar cada vez que se desea publicar una nueva version del test.
17
+ gem.version = '0.9.5' # La version se debe incrementar cada vez que se desea publicar una nueva version del test.
18
18
 
19
19
  gem.add_dependency('henry-container', '>= 0.1.39')
20
20
  gem.add_dependency('page-object')
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: 0.9.4
4
+ version: 0.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - lgonzalez