flights_gui_tests 0.5.6 → 0.5.7

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: d761ad142503eac409b10f8ac578d6841c047bd6
4
- data.tar.gz: 6c79e16af01a31f2ec747de1fd10864c74dd0399
3
+ metadata.gz: b66a9cfe4424cb7e4f61e8eda4e9e7178f0613e1
4
+ data.tar.gz: 02be7b07d8bec64514115e2d4528c5cf28165e36
5
5
  SHA512:
6
- metadata.gz: 5da279b4f6e3766f40242840549c0e1abe4b35ea57e238da9ba94179aab3b43783ea319eaa9e6dabe18638d61596b0fc52e7490f50032582033aff987cd42102
7
- data.tar.gz: 3f6ba79856ad0a0461df1a9802afd2291001f773302342a8a39de63f46322bf29f25fe25598eed6bb40b6ae0b3ace97bf30dd09d1d70a5d8303fd685a4affbf5
6
+ metadata.gz: 866aee3def31d5094697457e479f980b5ca868171d8faebb0507952d4bc72d2e1da8b952dcfd59bc69acb2975e640271d0a221074301b36fcae31f853adabee1
7
+ data.tar.gz: 52b19b5d045064ae10d49bbcd6df069609898ff86195644f74ca0a4cc8f11525c697de34a92bdfd61ab734f623919a500b1a99696d173cfd12bbec124fc9cb0b
@@ -22,12 +22,17 @@ Entonces(/^verifico que se muestren las reviews de aerolineas$/) do
22
22
  @page.enviar_tecla :escape
23
23
  sleep(1)
24
24
  @page.cerrar_popups
25
- aerolinea.click
26
- @page.popup_reviews_aerolineas_element.when_visible(timeout=10)
27
- doc = Hpricot.parse(@page.popup_reviews_aerolineas_element.html)
28
- @page.logo_aerolinea_en_matriz(index).should match((doc/"span.logo/img").first.attributes['src'].strip.downcase)
29
- aerolinea.text.strip.downcase.should equal((doc/"h4.name").inner_text.strip.downcase)
30
- @page.close_popup_reviews_aerolineas_element.click
31
- @page.popup_reviews_aerolineas_element.when_not_visible(timeout=10)
25
+ sleep(1)
26
+ begin
27
+ aerolinea.click
28
+ @page.popup_reviews_aerolineas_element.when_visible(timeout=10)
29
+ doc = Hpricot.parse(@page.popup_reviews_aerolineas_element.html)
30
+ @page.logo_aerolinea_en_matriz(index).should match((doc/"span.logo/img").first.attributes['src'].strip.downcase)
31
+ aerolinea.text.strip.downcase.should equal((doc/"h4.name").inner_text.strip.downcase)
32
+ @page.close_popup_reviews_aerolineas_element.click
33
+ @page.popup_reviews_aerolineas_element.when_not_visible(timeout=10)
34
+ rescue Selenium::WebDriver::Error::UnknownError
35
+ puts "No se pudo hacer click en la review de aerolinea"
36
+ end
32
37
  end
33
38
  end
@@ -4,7 +4,11 @@ module PageObject
4
4
  module WatirWebDriver
5
5
  module Element
6
6
  def present?
7
- element.exists? and element.visible?
7
+ begin
8
+ element.exists? and element.visible?
9
+ rescue Watir::Exception::UnknownObjectException
10
+ return false
11
+ end
8
12
  end
9
13
  end
10
14
  end
@@ -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.5.6' # La version se debe incrementar cada vez que se desea publicar una nueva version del test.
17
+ gem.version = '0.5.7' # 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.5.6
4
+ version: 0.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - lgonzalez