Created
February 22, 2009 12:30
-
-
Save jarib/68450 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From f0072dc3828f55f9afae38bd1d0ca07ad4f60947 Mon Sep 17 00:00:00 2001 | |
From: jarib <[email protected]> | |
Date: Sun, 22 Feb 2009 13:28:26 +0100 | |
Subject: [PATCH] Add support for <em> elements (Watir) | |
--- | |
watir/lib/watir/collections.rb | 6 ++++++ | |
watir/lib/watir/non_control_elements.rb | 3 +++ | |
2 files changed, 9 insertions(+), 0 deletions(-) | |
diff --git a/watir/lib/watir/collections.rb b/watir/lib/watir/collections.rb | |
index ef392a4..e5b1800 100644 | |
--- a/watir/lib/watir/collections.rb | |
+++ b/watir/lib/watir/collections.rb | |
@@ -335,4 +335,10 @@ module Watir | |
def element_tag; Strong::TAG; end | |
end | |
+ class Ems < ElementCollections | |
+ include CommonCollection | |
+ def element_class; Em; end | |
+ def element_tag; Em::TAG; end | |
+ end | |
+ | |
end | |
diff --git a/watir/lib/watir/non_control_elements.rb b/watir/lib/watir/non_control_elements.rb | |
index 7517d3c..18410ee 100644 | |
--- a/watir/lib/watir/non_control_elements.rb | |
+++ b/watir/lib/watir/non_control_elements.rb | |
@@ -136,5 +136,8 @@ module Watir | |
class Strong < NonControlElement | |
TAG = 'STRONG' | |
end | |
+ class Em < NonControlElement | |
+ TAG = 'EM' | |
+ end | |
end | |
\ No newline at end of file | |
-- | |
1.6.1.9.g97c34 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment