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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c5fb8730aff220c5cf527454eb9e82ab3e26cee
|
4
|
+
data.tar.gz: 406f65f7cd2a9186184025f20a720fee4b316e01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
70
|
+
comprar_element.click
|
71
71
|
rescue Selenium::WebDriver::Error::UnknownError
|
72
|
-
|
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
|
|
data/flights_gui_tests.gemspec
CHANGED
@@ -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.
|
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')
|