selenium-webdriver-viewers 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -20,7 +20,9 @@ module Selenium
20
20
  module WebDriver
21
21
 
22
22
  module Find
23
-
23
+
24
+ FINDERS[:label] = 'Label'
25
+
24
26
  def element_present?(how, what, how_long=0)
25
27
  wait_for_element_present(how, what, how_long)
26
28
  true
@@ -48,6 +50,20 @@ module Selenium
48
50
  include HumaneWebDriverExtensions
49
51
  end
50
52
 
53
+ module Remote
54
+
55
+ class Bridge
56
+
57
+ def findElementByLabel(parent, label_text)
58
+ element_id = findElementByXpath(parent, %<.//label[text()="#{label_text}"]>).attribute(:for)
59
+ findElementById(parent, element_id)
60
+ end
61
+
62
+ end
63
+
64
+ end
65
+
51
66
  end
67
+
52
68
  end
53
69
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{selenium-webdriver-viewers}
8
- s.version = "0.0.2"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Michael Collas"]
12
- s.date = %q{2010-12-20}
12
+ s.date = %q{2010-12-23}
13
13
  s.description = %q{ This gem makes it easy to create page and web viewer objects for use by tests that use selenium-webdriver. By
14
14
  using page and viewer objects, you can decouple your tests from the html details so that they can focus
15
15
  instead on describing the behaviour of your application.
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selenium-webdriver-viewers
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Michael Collas
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-20 00:00:00 +11:00
18
+ date: 2010-12-23 00:00:00 +11:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency