selenium_fury 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.0
1
+ 0.6.1
@@ -25,9 +25,12 @@ module SeleniumFury
25
25
  end
26
26
 
27
27
  def validate(page_object, live_url = nil)
28
- if browser
29
- return check_page_file_class(page_object, live_url)
30
- else
28
+ if defined?(browser)
29
+ unless browser.nil?
30
+ return check_page_file_class(page_object, *live_url)
31
+ end
32
+ end
33
+ unless driver.nil?
31
34
  return web_driver_validate(page_object)
32
35
  end
33
36
  end
@@ -0,0 +1,117 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "selenium_fury"
8
+ s.version = "0.6.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Scott Sims", "Tim Tischler"]
12
+ s.date = "2012-09-15"
13
+ s.description = "Generate and validate page objects with this page object factory for Selenium."
14
+ s.email = "ssims98@gmail.com"
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README.md"
18
+ ]
19
+ s.files = [
20
+ ".rvmrc",
21
+ "Changelog.md",
22
+ "Gemfile",
23
+ "LICENSE",
24
+ "README.md",
25
+ "Rakefile",
26
+ "VERSION",
27
+ "features/custom_generator.feature",
28
+ "features/generate_page_object.feature",
29
+ "features/step_definitions/custom_generator_steps.rb",
30
+ "features/step_definitions/generate_page_object_steps.rb",
31
+ "features/step_definitions/validate_page_object_steps.rb",
32
+ "features/support/env.rb",
33
+ "features/support/hooks.rb",
34
+ "features/validate_page_object.feature",
35
+ "lib/selenium_fury.rb",
36
+ "lib/selenium_fury/common/page_parser.rb",
37
+ "lib/selenium_fury/common/selenium_api_chooser.rb",
38
+ "lib/selenium_fury/selenium_client/create_selenium_client_driver.rb",
39
+ "lib/selenium_fury/selenium_client/custom_generator.rb",
40
+ "lib/selenium_fury/selenium_client/locator_finder.rb",
41
+ "lib/selenium_fury/selenium_client/page_generator.rb",
42
+ "lib/selenium_fury/selenium_client/page_validator.rb",
43
+ "lib/selenium_fury/selenium_web_driver/create_selenium_web_driver.rb",
44
+ "lib/selenium_fury/selenium_web_driver/element_finder.rb",
45
+ "lib/selenium_fury/selenium_web_driver/page_generator.rb",
46
+ "lib/selenium_fury/selenium_web_driver/page_object.rb",
47
+ "lib/selenium_fury/selenium_web_driver/page_object_components.rb",
48
+ "lib/selenium_fury/selenium_web_driver/page_validator.rb",
49
+ "selenium_fury.gemspec",
50
+ "spec/common/page_parser_spec.rb",
51
+ "spec/common/selenium_api_chooser_spec.rb",
52
+ "spec/selenium_client/custom_generators_spec.rb",
53
+ "spec/selenium_client/locator_finder_spec.rb",
54
+ "spec/selenium_client/page_generator_spec.rb",
55
+ "spec/selenium_client/page_validator_spec.rb",
56
+ "spec/selenium_client/test_page_rc_spec.rb",
57
+ "spec/selenium_web_driver/element_finder_spec.rb",
58
+ "spec/selenium_web_driver/page_generator_spec.rb",
59
+ "spec/selenium_web_driver/page_object_spec.rb",
60
+ "spec/selenium_web_driver/page_validator_spec.rb",
61
+ "spec/spec_helper.rb",
62
+ "spec/test_page/test_page.html",
63
+ "spec/test_page/test_page.rb",
64
+ "spec/test_page/test_page_custom_generator_configuration.rb",
65
+ "spec/test_page/test_page_rc.rb"
66
+ ]
67
+ s.homepage = "https://github.com/scottcsims/SeleniumFury"
68
+ s.require_paths = ["lib"]
69
+ s.rubygems_version = "1.8.24"
70
+ s.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"
71
+
72
+ if s.respond_to? :specification_version then
73
+ s.specification_version = 3
74
+
75
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
76
+ s.add_runtime_dependency(%q<selenium-webdriver>, [">= 0"])
77
+ s.add_runtime_dependency(%q<nokogiri>, [">= 0"])
78
+ s.add_development_dependency(%q<yard>, [">= 0"])
79
+ s.add_development_dependency(%q<jeweler>, [">= 0"])
80
+ s.add_development_dependency(%q<rdiscount>, [">= 0"])
81
+ s.add_development_dependency(%q<rspec>, [">= 0"])
82
+ s.add_development_dependency(%q<cucumber>, [">= 0"])
83
+ s.add_development_dependency(%q<bundler>, [">= 0"])
84
+ s.add_development_dependency(%q<builder>, [">= 0"])
85
+ s.add_development_dependency(%q<rake>, [">= 0"])
86
+ s.add_development_dependency(%q<faker>, [">= 0"])
87
+ s.add_runtime_dependency(%q<nokogiri>, [">= 0"])
88
+ else
89
+ s.add_dependency(%q<selenium-webdriver>, [">= 0"])
90
+ s.add_dependency(%q<nokogiri>, [">= 0"])
91
+ s.add_dependency(%q<yard>, [">= 0"])
92
+ s.add_dependency(%q<jeweler>, [">= 0"])
93
+ s.add_dependency(%q<rdiscount>, [">= 0"])
94
+ s.add_dependency(%q<rspec>, [">= 0"])
95
+ s.add_dependency(%q<cucumber>, [">= 0"])
96
+ s.add_dependency(%q<bundler>, [">= 0"])
97
+ s.add_dependency(%q<builder>, [">= 0"])
98
+ s.add_dependency(%q<rake>, [">= 0"])
99
+ s.add_dependency(%q<faker>, [">= 0"])
100
+ s.add_dependency(%q<nokogiri>, [">= 0"])
101
+ end
102
+ else
103
+ s.add_dependency(%q<selenium-webdriver>, [">= 0"])
104
+ s.add_dependency(%q<nokogiri>, [">= 0"])
105
+ s.add_dependency(%q<yard>, [">= 0"])
106
+ s.add_dependency(%q<jeweler>, [">= 0"])
107
+ s.add_dependency(%q<rdiscount>, [">= 0"])
108
+ s.add_dependency(%q<rspec>, [">= 0"])
109
+ s.add_dependency(%q<cucumber>, [">= 0"])
110
+ s.add_dependency(%q<bundler>, [">= 0"])
111
+ s.add_dependency(%q<builder>, [">= 0"])
112
+ s.add_dependency(%q<rake>, [">= 0"])
113
+ s.add_dependency(%q<faker>, [">= 0"])
114
+ s.add_dependency(%q<nokogiri>, [">= 0"])
115
+ end
116
+ end
117
+
@@ -13,8 +13,8 @@ describe SeleniumFury::SeleniumApiChooser do
13
13
  end
14
14
  it "should find the validator for selenium client tests" do
15
15
  create_selenium_client_driver TEST_PAGE_URL
16
- should_receive(:check_page_file_class).with(NilClass, nil)
17
- validate(NilClass, nil)
16
+ should_receive(:check_page_file_class).with(NilClass)
17
+ validate(NilClass)
18
18
  end
19
19
  it "should find the validator for selenium web driver tests" do
20
20
  launch_web_driver TEST_PAGE_URL
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selenium_fury
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-08-24 00:00:00.000000000 Z
13
+ date: 2012-09-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: selenium-webdriver
@@ -242,6 +242,7 @@ files:
242
242
  - lib/selenium_fury/selenium_web_driver/page_object.rb
243
243
  - lib/selenium_fury/selenium_web_driver/page_object_components.rb
244
244
  - lib/selenium_fury/selenium_web_driver/page_validator.rb
245
+ - selenium_fury.gemspec
245
246
  - spec/common/page_parser_spec.rb
246
247
  - spec/common/selenium_api_chooser_spec.rb
247
248
  - spec/selenium_client/custom_generators_spec.rb
@@ -272,7 +273,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
272
273
  version: '0'
273
274
  segments:
274
275
  - 0
275
- hash: -3785913807508317413
276
+ hash: -4400658377398298336
276
277
  required_rubygems_version: !ruby/object:Gem::Requirement
277
278
  none: false
278
279
  requirements: