selenium_fury 0.5.6 → 0.5.7

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -2,19 +2,19 @@ GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
4
  builder (3.0.0)
5
- childprocess (0.2.2)
5
+ childprocess (0.2.3)
6
6
  ffi (~> 1.0.6)
7
- cucumber (1.1.0)
7
+ cucumber (1.1.3)
8
8
  builder (>= 2.1.2)
9
9
  diff-lcs (>= 1.1.2)
10
- gherkin (~> 2.5.0)
10
+ gherkin (~> 2.6.7)
11
11
  json (>= 1.4.6)
12
12
  term-ansicolor (>= 1.0.6)
13
13
  diff-lcs (1.1.3)
14
14
  faker (1.0.1)
15
15
  i18n (~> 0.4)
16
- ffi (1.0.9)
17
- gherkin (2.5.4)
16
+ ffi (1.0.11)
17
+ gherkin (2.6.9)
18
18
  json (>= 1.4.6)
19
19
  git (1.2.5)
20
20
  i18n (0.6.0)
@@ -22,8 +22,8 @@ GEM
22
22
  bundler (~> 1.0)
23
23
  git (>= 1.2.5)
24
24
  rake
25
- json (1.6.1)
26
- json_pure (1.6.1)
25
+ json (1.6.3)
26
+ multi_json (1.0.4)
27
27
  nokogiri (1.5.0)
28
28
  rake (0.9.2.2)
29
29
  rdiscount (1.6.8)
@@ -35,14 +35,14 @@ GEM
35
35
  rspec-expectations (2.7.0)
36
36
  diff-lcs (~> 1.1.2)
37
37
  rspec-mocks (2.7.0)
38
- rubyzip (0.9.4)
39
- selenium-webdriver (2.9.1)
38
+ rubyzip (0.9.5)
39
+ selenium-webdriver (2.15.0)
40
40
  childprocess (>= 0.2.1)
41
- ffi (= 1.0.9)
42
- json_pure
41
+ ffi (~> 1.0.9)
42
+ multi_json (~> 1.0.4)
43
43
  rubyzip
44
44
  term-ansicolor (1.0.7)
45
- yard (0.7.3)
45
+ yard (0.7.4)
46
46
 
47
47
  PLATFORMS
48
48
  ruby
data/README.md CHANGED
@@ -12,20 +12,17 @@ If there are missing locators you can then rerun the generator to generate new s
12
12
  Generate
13
13
  =========
14
14
  * See specs and features for full syntax
15
- * include PageGenerator
16
- * get_source_and_print_elements(browser)
15
+ * generate(browser)
17
16
 
18
17
 
19
18
  Validate
20
19
  =========
21
20
  * See specs and features for full syntax.
22
- * include PageValidator
23
- * check_page_file_class(YourPageFileClass, "/optional_relative_url_path")
21
+ * validate(YourPageFileClass, "/optional_relative_url_path")
24
22
 
25
23
  Custom Configuration
26
24
  =========
27
25
 
28
- * include CustomGenerator
29
26
  * create a custom configuration class
30
27
  * call custom_generator
31
28
 
@@ -36,6 +33,6 @@ Core Team
36
33
 
37
34
  Copyright
38
35
  =========
39
- * Copyright (c) 2010 HomeAway, Inc.
36
+ * Copyright (c) 2011 HomeAway, Inc.
40
37
  * All rights reserved. http://www.homeaway.com
41
38
  See LICENSE for details.
data/Rakefile CHANGED
@@ -25,7 +25,7 @@ Jeweler::Tasks.new do |gem|
25
25
  gem.email = "ssims98@gmail.com"
26
26
  gem.authors = ["Scott Sims","Tim Tischler"]
27
27
  gem.homepage = "https://github.com/scottcsims/SeleniumFury"
28
- gem.version = '0.5.6'
28
+ gem.version = '0.5.7'
29
29
  gem.add_dependency 'nokogiri'
30
30
  end
31
31
 
data/lib/selenium_fury.rb CHANGED
@@ -35,12 +35,10 @@ require "selenium_fury/selenium_web_driver/page_object"
35
35
  require "selenium_fury/selenium_web_driver/page_generator"
36
36
  require "selenium_fury/selenium_web_driver/page_validator"
37
37
 
38
- include SeleniumFury::SeleniumClient::CreateSeleniumClientDriver
39
38
  include SeleniumFury::SeleniumClient::CustomGenerator
40
39
  include SeleniumFury::SeleniumClient::PageGenerator
41
40
  include SeleniumFury::SeleniumClient::PageValidator
42
41
 
43
- include SeleniumFury::SeleniumWebDriver::CreateSeleniumWebDriver
44
42
  include SeleniumFury::SeleniumWebDriver::PageGenerator
45
43
  include SeleniumFury::SeleniumWebDriver::PageValidator
46
44
 
@@ -8,6 +8,6 @@ describe AdvancedSearchCustomGeneratorConfiguration do
8
8
  advanced_search_custom_generator_configuration = AdvancedSearchCustomGeneratorConfiguration.new
9
9
  result = custom_generator(:browser => browser,
10
10
  :custom_configuration => advanced_search_custom_generator_configuration)
11
- result.should include("found (26 elements)")
11
+ result.should include("found (30 elements)")
12
12
  end
13
13
  end
@@ -6,6 +6,6 @@ describe SeleniumFury::SeleniumClient::PageGenerator do
6
6
  puts "Testing #{browser.browser_url} on #{browser.browser_string} "
7
7
  browser.open "/searchForm"
8
8
  result = generate(browser)
9
- result.should include("found (39 elements)")
9
+ result.should include("found (43 elements)")
10
10
  end
11
11
  end
@@ -3,7 +3,7 @@ describe SeleniumFury::SeleniumWebDriver::PageGenerator do
3
3
  it "should find elements on the HomeAway advanced search page" do
4
4
  launch_web_driver("http://www.homeaway.com/searchForm")
5
5
  result = generate(driver)
6
- result.should include("found (39 elements)")
6
+ result.should include("found (43 elements)")
7
7
  result.should include("element :adv_search_form, {:id => \"adv-search-form\"}")
8
8
  end
9
9
  end
data/spec/spec_helper.rb CHANGED
@@ -15,7 +15,9 @@ require "selenium_web_driver/advanced_search"
15
15
 
16
16
  RSpec.configure do |config|
17
17
  config.after(:each) do
18
- browser.close_current_browser_session if !browser.nil?
19
- driver.quit if !driver.nil?
18
+ browser.close_current_browser_session unless(browser.nil? || browser.session_id.nil?)
19
+ driver.quit unless driver.nil?
20
20
  end
21
- end
21
+ config.include SeleniumFury::SeleniumClient::CreateSeleniumClientDriver
22
+ config.include SeleniumFury::SeleniumWebDriver::CreateSeleniumWebDriver
23
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selenium_fury
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 6
10
- version: 0.5.6
9
+ - 7
10
+ version: 0.5.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Scott Sims
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-10-27 00:00:00 Z
19
+ date: 2011-12-09 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  version_requirements: &id001 !ruby/object:Gem::Requirement
@@ -272,7 +272,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
272
272
  requirements: []
273
273
 
274
274
  rubyforge_project:
275
- rubygems_version: 1.8.10
275
+ rubygems_version: 1.8.11
276
276
  signing_key:
277
277
  specification_version: 3
278
278
  summary: Selenium Fury allows an automated tester to quickly build page files to use in the page object pattern. Each page file represents a page under test with attributes of all the locators selenium needs to run tests on the page and methods that represent actions that can be performed on the page. You use the generator to build the page files. After the page has been updated you can use the validator to go through all of the selenium locators you are using in your page file and return a list of the locators that it could not find. If there are missing locators you can then rerun the generator to generate new selenium locators for your page. http://www.scottcsims.com