firewatir 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/MozillaBaseElement.rb +1778 -0
- data/container.rb +889 -0
- data/firewatir/exceptions.rb +44 -0
- data/firewatir/testUnitAddons.rb +8 -0
- data/firewatir.rb +1130 -0
- data/htmlelements.rb +2277 -0
- data/unittests/attach_to_new_window_test.rb +34 -0
- data/unittests/bug_fixes_test.rb +188 -0
- data/unittests/buttons_test.rb +215 -0
- data/unittests/buttons_xpath_test.rb +87 -0
- data/unittests/checkbox_test.rb +154 -0
- data/unittests/checkbox_xpath_test.rb +107 -0
- data/unittests/div_test.rb +274 -0
- data/unittests/filefield_test.rb +45 -0
- data/unittests/filefield_xpath_test.rb +35 -0
- data/unittests/form_test.rb +307 -0
- data/unittests/frame_test.rb +151 -0
- data/unittests/hidden_test.rb +85 -0
- data/unittests/hidden_xpath_test.rb +72 -0
- data/unittests/html/JavascriptClick.html +42 -0
- data/unittests/html/blankpage.html +12 -0
- data/unittests/html/buttons1.html +61 -0
- data/unittests/html/checkboxes1.html +71 -0
- data/unittests/html/complex_table.html +36 -0
- data/unittests/html/cssTest.html +42 -0
- data/unittests/html/div.html +72 -0
- data/unittests/html/div_xml.html +21 -0
- data/unittests/html/fileupload.html +45 -0
- data/unittests/html/formTest1.html +39 -0
- data/unittests/html/forms2.html +45 -0
- data/unittests/html/forms3.html +132 -0
- data/unittests/html/forms4.html +27 -0
- data/unittests/html/frame_buttons.html +4 -0
- data/unittests/html/frame_links.html +4 -0
- data/unittests/html/frame_multi.html +5 -0
- data/unittests/html/iframeTest.html +15 -0
- data/unittests/html/iframeTest1.html +14 -0
- data/unittests/html/iframeTest2.html +6 -0
- data/unittests/html/images/1.gif +0 -0
- data/unittests/html/images/2.GIF +0 -0
- data/unittests/html/images/3.GIF +0 -0
- data/unittests/html/images/button.jpg +0 -0
- data/unittests/html/images/circle.jpg +0 -0
- data/unittests/html/images/minus.GIF +0 -0
- data/unittests/html/images/originaltriangle.jpg +0 -0
- data/unittests/html/images/plus.gif +0 -0
- data/unittests/html/images/square.jpg +0 -0
- data/unittests/html/images/triangle.jpg +0 -0
- data/unittests/html/images1.html +67 -0
- data/unittests/html/javascriptevents.html +35 -0
- data/unittests/html/link_pass.html +11 -0
- data/unittests/html/links1.html +42 -0
- data/unittests/html/links2.html +11 -0
- data/unittests/html/modal_dialog.html +8 -0
- data/unittests/html/modal_dialog_launcher.html +12 -0
- data/unittests/html/nestedFrames.html +6 -0
- data/unittests/html/new_browser.html +17 -0
- data/unittests/html/pass.html +10 -0
- data/unittests/html/popups1.html +60 -0
- data/unittests/html/pre.html +28 -0
- data/unittests/html/radioButtons1.html +71 -0
- data/unittests/html/redirect.html +10 -0
- data/unittests/html/redirect1.html +9 -0
- data/unittests/html/redirect2.html +9 -0
- data/unittests/html/redirect3.html +9 -0
- data/unittests/html/select_tealeaf.html +54 -0
- data/unittests/html/selectboxes1.html +55 -0
- data/unittests/html/simple_table.html +26 -0
- data/unittests/html/simple_table_buttons.html +104 -0
- data/unittests/html/simple_table_columns.html +74 -0
- data/unittests/html/table1.html +165 -0
- data/unittests/html/tableCell_using_xpath.html +19 -0
- data/unittests/html/textarea.html +30 -0
- data/unittests/html/textfields1.html +62 -0
- data/unittests/html/textsearch.html +44 -0
- data/unittests/images_test.rb +204 -0
- data/unittests/images_xpath_test.rb +118 -0
- data/unittests/iostring.rb +30 -0
- data/unittests/iostring_test.rb +48 -0
- data/unittests/javascript_test.rb +71 -0
- data/unittests/links_test.rb +230 -0
- data/unittests/links_xpath_test.rb +79 -0
- data/unittests/mozilla_all_tests.rb +18 -0
- data/unittests/pre_test.rb +74 -0
- data/unittests/radios_test.rb +166 -0
- data/unittests/radios_xpath_test.rb +101 -0
- data/unittests/redirect_test.rb +40 -0
- data/unittests/selectbox_test.rb +141 -0
- data/unittests/selectbox_xpath_test.rb +127 -0
- data/unittests/setup.rb +35 -0
- data/unittests/table_test.rb +372 -0
- data/unittests/table_xpath_test.rb +184 -0
- data/unittests/textfields_test.rb +230 -0
- data/unittests/textfields_xpath_test.rb +112 -0
- metadata +144 -0
@@ -0,0 +1,44 @@
|
|
1
|
+
module FireWatir
|
2
|
+
module Exception
|
3
|
+
|
4
|
+
# Root class for all FireWatir Exceptions
|
5
|
+
class FireWatirException < RuntimeError
|
6
|
+
def initialize(message="")
|
7
|
+
super(message)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
# This exception is thrown if we are unable to connect to JSSh.
|
12
|
+
class UnableToStartJSShException < FireWatirException; end
|
13
|
+
# This exception is thrown if an attempt is made to access an object that doesn't exist
|
14
|
+
class UnknownObjectException < FireWatirException; end
|
15
|
+
# This exception is thrown if an attempt is made to access an object that is in a disabled state
|
16
|
+
class ObjectDisabledException < FireWatirException; end
|
17
|
+
# This exception is thrown if an attempt is made to access a frame that cannot be found
|
18
|
+
class UnknownFrameException< FireWatirException; end
|
19
|
+
# This exception is thrown if an attempt is made to access a form that cannot be found
|
20
|
+
class UnknownFormException< FireWatirException; end
|
21
|
+
# This exception is thrown if an attempt is made to access an object that is in a read only state
|
22
|
+
class ObjectReadOnlyException < FireWatirException; end
|
23
|
+
# This exception is thrown if an attempt is made to access an object when the specified value cannot be found
|
24
|
+
class NoValueFoundException < FireWatirException; end
|
25
|
+
# This exception gets raised if part of finding an object is missing
|
26
|
+
class MissingWayOfFindingObjectException < FireWatirException; end
|
27
|
+
# this exception is raised if an attempt is made to access a table cell that doesnt exist
|
28
|
+
class UnknownCellException < FireWatirException; end
|
29
|
+
# This exception is thrown if the window cannot be found
|
30
|
+
class NoMatchingWindowFoundException < FireWatirException; end
|
31
|
+
# This exception is thrown if an attemp is made to acces the status bar of the browser when it doesnt exist
|
32
|
+
class NoStatusBarException < FireWatirException; end
|
33
|
+
# This exception is thrown if an http error, such as a 404, 500 etc is encountered while navigating
|
34
|
+
class NavigationException < FireWatirException; end
|
35
|
+
# This exception is raised if a timeout is exceeded
|
36
|
+
class TimeOutException < FireWatirException
|
37
|
+
def initialize(duration, timeout)
|
38
|
+
@duration, @timeout = duration, timeout
|
39
|
+
end
|
40
|
+
attr_reader :duration, :timeout
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
module Test::Unit::Assertions
|
2
|
+
def assert_false(boolean, message=nil)
|
3
|
+
_wrap_assertion do
|
4
|
+
assert_block("assert should not be called with a block.") { !block_given? }
|
5
|
+
assert_block(build_message(message, "<?> is not false.", boolean)) { !boolean }
|
6
|
+
end
|
7
|
+
end
|
8
|
+
end # module test
|