rubySelenium 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/rubyselenium-seed +25 -0
- data/documentation/output/css/style.css +36 -0
- data/documentation/output/documentation.html +197 -0
- data/documentation/output/files/rdoc/classes/Batch_Generator.html +274 -0
- data/documentation/output/files/rdoc/classes/Batch_Generator.src/M000062.html +19 -0
- data/documentation/output/files/rdoc/classes/Batch_Generator.src/M000063.html +26 -0
- data/documentation/output/files/rdoc/classes/Batch_Generator.src/M000064.html +22 -0
- data/documentation/output/files/rdoc/classes/Batch_Generator.src/M000065.html +20 -0
- data/documentation/output/files/rdoc/classes/Batch_Generator.src/M000066.html +23 -0
- data/documentation/output/files/rdoc/classes/Batch_Generator.src/M000067.html +18 -0
- data/documentation/output/files/rdoc/classes/Batch_Generator.src/M000068.html +20 -0
- data/documentation/output/files/rdoc/classes/Batch_Generator.src/M000069.html +18 -0
- data/documentation/output/files/rdoc/classes/Batch_Generator.src/M000070.html +23 -0
- data/documentation/output/files/rdoc/classes/Batch_Generator.src/M000071.html +20 -0
- data/documentation/output/files/rdoc/classes/GenerateCommand.html +137 -0
- data/documentation/output/files/rdoc/classes/GenerateCommand.src/M000001.html +54 -0
- data/documentation/output/files/rdoc/classes/HTML_File_Generator.html +229 -0
- data/documentation/output/files/rdoc/classes/HTML_File_Generator.src/M000072.html +23 -0
- data/documentation/output/files/rdoc/classes/HTML_File_Generator.src/M000073.html +20 -0
- data/documentation/output/files/rdoc/classes/HTML_File_Generator.src/M000074.html +18 -0
- data/documentation/output/files/rdoc/classes/HTML_File_Generator.src/M000075.html +19 -0
- data/documentation/output/files/rdoc/classes/HTML_File_Generator.src/M000076.html +18 -0
- data/documentation/output/files/rdoc/classes/HTML_File_Generator.src/M000077.html +18 -0
- data/documentation/output/files/rdoc/classes/HTML_File_Generator.src/M000078.html +18 -0
- data/documentation/output/files/rdoc/classes/MissingConfigurationFile.html +111 -0
- data/documentation/output/files/rdoc/classes/MissingRubyTestFiles.html +111 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.html +1523 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000002.html +20 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000003.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000004.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000005.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000006.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000007.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000008.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000009.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000010.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000011.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000012.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000013.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000014.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000015.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000016.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000017.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000018.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000019.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000020.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000021.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000022.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000023.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000024.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000025.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000026.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000027.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000028.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000029.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000030.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000031.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000032.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000033.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000034.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000035.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000036.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000037.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000038.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000039.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000040.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000041.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000042.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000043.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000044.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000045.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000046.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000047.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000048.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000049.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000050.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000051.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000052.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000053.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000054.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000055.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000056.html +21 -0
- data/documentation/output/files/rdoc/classes/RubySelenium.src/M000057.html +20 -0
- data/documentation/output/files/rdoc/classes/RubySeleniumConfig.html +182 -0
- data/documentation/output/files/rdoc/classes/RubySeleniumConfig.src/M000093.html +22 -0
- data/documentation/output/files/rdoc/classes/RubySeleniumConfig.src/M000094.html +27 -0
- data/documentation/output/files/rdoc/classes/RubySeleniumConfig.src/M000095.html +25 -0
- data/documentation/output/files/rdoc/classes/RubySeleniumGenerator.html +334 -0
- data/documentation/output/files/rdoc/classes/RubySeleniumGenerator.src/M000079.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySeleniumGenerator.src/M000080.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySeleniumGenerator.src/M000081.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySeleniumGenerator.src/M000082.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySeleniumGenerator.src/M000083.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySeleniumGenerator.src/M000084.html +18 -0
- data/documentation/output/files/rdoc/classes/RubySeleniumGenerator.src/M000085.html +21 -0
- data/documentation/output/files/rdoc/classes/RubySeleniumGenerator.src/M000086.html +21 -0
- data/documentation/output/files/rdoc/classes/RubySeleniumGenerator.src/M000087.html +21 -0
- data/documentation/output/files/rdoc/classes/RubySeleniumGenerator.src/M000088.html +21 -0
- data/documentation/output/files/rdoc/classes/RubySeleniumGenerator.src/M000089.html +21 -0
- data/documentation/output/files/rdoc/classes/RubySeleniumGenerator.src/M000090.html +21 -0
- data/documentation/output/files/rdoc/classes/RubySeleniumGenerator.src/M000091.html +21 -0
- data/documentation/output/files/rdoc/classes/RubySeleniumGenerator.src/M000092.html +21 -0
- data/documentation/output/files/rdoc/classes/String.html +137 -0
- data/documentation/output/files/rdoc/classes/String.src/M000096.html +20 -0
- data/documentation/output/files/rdoc/classes/Templates.html +184 -0
- data/documentation/output/files/rdoc/classes/Templates.src/M000058.html +20 -0
- data/documentation/output/files/rdoc/classes/Templates.src/M000059.html +18 -0
- data/documentation/output/files/rdoc/classes/Templates.src/M000060.html +18 -0
- data/documentation/output/files/rdoc/classes/Templates.src/M000061.html +18 -0
- data/documentation/output/files/rdoc/created.rid +1 -0
- data/documentation/output/files/rdoc/files/lib/RubySeleniumGenerator_rb.html +101 -0
- data/documentation/output/files/rdoc/files/lib/RubySelenium_rb.html +352 -0
- data/documentation/output/files/rdoc/fr_class_index.html +36 -0
- data/documentation/output/files/rdoc/fr_file_index.html +28 -0
- data/documentation/output/files/rdoc/fr_method_index.html +122 -0
- data/documentation/output/files/rdoc/index.html +24 -0
- data/documentation/output/files/rdoc/rdoc-style.css +208 -0
- data/documentation/output/images/background.jpg +0 -0
- data/documentation/output/images/blanklogo_noswirl.jpg +0 -0
- data/documentation/output/images/blanklogo_withswirl.jpg +0 -0
- data/documentation/output/images/left1.jpg +0 -0
- data/documentation/output/images/left1bg.jpg +0 -0
- data/documentation/output/images/mainbackground.jpg +0 -0
- data/documentation/output/images/menudivider.jpg +0 -0
- data/documentation/output/images/tempheadline.jpg +0 -0
- data/documentation/output/images/templogo.jpg +0 -0
- data/documentation/output/images/toplogobg.jpg +0 -0
- data/documentation/output/images/welcome.jpg +0 -0
- data/documentation/output/index.html +108 -0
- data/documentation/output/menu/my_menu.css +1 -0
- data/documentation/output/menu/my_menu.js +1 -0
- data/documentation/src/css/style.css +36 -0
- data/documentation/src/documentation.template.txt +51 -0
- data/documentation/src/files/rdoc/classes/Batch_Generator.html +274 -0
- data/documentation/src/files/rdoc/classes/Batch_Generator.src/M000062.html +19 -0
- data/documentation/src/files/rdoc/classes/Batch_Generator.src/M000063.html +26 -0
- data/documentation/src/files/rdoc/classes/Batch_Generator.src/M000064.html +22 -0
- data/documentation/src/files/rdoc/classes/Batch_Generator.src/M000065.html +20 -0
- data/documentation/src/files/rdoc/classes/Batch_Generator.src/M000066.html +23 -0
- data/documentation/src/files/rdoc/classes/Batch_Generator.src/M000067.html +18 -0
- data/documentation/src/files/rdoc/classes/Batch_Generator.src/M000068.html +20 -0
- data/documentation/src/files/rdoc/classes/Batch_Generator.src/M000069.html +18 -0
- data/documentation/src/files/rdoc/classes/Batch_Generator.src/M000070.html +23 -0
- data/documentation/src/files/rdoc/classes/Batch_Generator.src/M000071.html +20 -0
- data/documentation/src/files/rdoc/classes/GenerateCommand.html +137 -0
- data/documentation/src/files/rdoc/classes/GenerateCommand.src/M000001.html +54 -0
- data/documentation/src/files/rdoc/classes/HTML_File_Generator.html +229 -0
- data/documentation/src/files/rdoc/classes/HTML_File_Generator.src/M000072.html +23 -0
- data/documentation/src/files/rdoc/classes/HTML_File_Generator.src/M000073.html +20 -0
- data/documentation/src/files/rdoc/classes/HTML_File_Generator.src/M000074.html +18 -0
- data/documentation/src/files/rdoc/classes/HTML_File_Generator.src/M000075.html +19 -0
- data/documentation/src/files/rdoc/classes/HTML_File_Generator.src/M000076.html +18 -0
- data/documentation/src/files/rdoc/classes/HTML_File_Generator.src/M000077.html +18 -0
- data/documentation/src/files/rdoc/classes/HTML_File_Generator.src/M000078.html +18 -0
- data/documentation/src/files/rdoc/classes/MissingConfigurationFile.html +111 -0
- data/documentation/src/files/rdoc/classes/MissingRubyTestFiles.html +111 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.html +1523 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000002.html +20 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000003.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000004.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000005.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000006.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000007.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000008.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000009.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000010.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000011.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000012.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000013.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000014.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000015.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000016.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000017.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000018.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000019.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000020.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000021.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000022.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000023.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000024.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000025.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000026.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000027.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000028.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000029.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000030.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000031.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000032.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000033.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000034.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000035.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000036.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000037.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000038.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000039.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000040.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000041.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000042.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000043.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000044.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000045.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000046.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000047.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000048.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000049.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000050.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000051.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000052.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000053.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000054.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000055.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000056.html +21 -0
- data/documentation/src/files/rdoc/classes/RubySelenium.src/M000057.html +20 -0
- data/documentation/src/files/rdoc/classes/RubySeleniumConfig.html +182 -0
- data/documentation/src/files/rdoc/classes/RubySeleniumConfig.src/M000093.html +22 -0
- data/documentation/src/files/rdoc/classes/RubySeleniumConfig.src/M000094.html +27 -0
- data/documentation/src/files/rdoc/classes/RubySeleniumConfig.src/M000095.html +25 -0
- data/documentation/src/files/rdoc/classes/RubySeleniumGenerator.html +334 -0
- data/documentation/src/files/rdoc/classes/RubySeleniumGenerator.src/M000079.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySeleniumGenerator.src/M000080.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySeleniumGenerator.src/M000081.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySeleniumGenerator.src/M000082.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySeleniumGenerator.src/M000083.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySeleniumGenerator.src/M000084.html +18 -0
- data/documentation/src/files/rdoc/classes/RubySeleniumGenerator.src/M000085.html +21 -0
- data/documentation/src/files/rdoc/classes/RubySeleniumGenerator.src/M000086.html +21 -0
- data/documentation/src/files/rdoc/classes/RubySeleniumGenerator.src/M000087.html +21 -0
- data/documentation/src/files/rdoc/classes/RubySeleniumGenerator.src/M000088.html +21 -0
- data/documentation/src/files/rdoc/classes/RubySeleniumGenerator.src/M000089.html +21 -0
- data/documentation/src/files/rdoc/classes/RubySeleniumGenerator.src/M000090.html +21 -0
- data/documentation/src/files/rdoc/classes/RubySeleniumGenerator.src/M000091.html +21 -0
- data/documentation/src/files/rdoc/classes/RubySeleniumGenerator.src/M000092.html +21 -0
- data/documentation/src/files/rdoc/classes/String.html +137 -0
- data/documentation/src/files/rdoc/classes/String.src/M000096.html +20 -0
- data/documentation/src/files/rdoc/classes/Templates.html +184 -0
- data/documentation/src/files/rdoc/classes/Templates.src/M000058.html +20 -0
- data/documentation/src/files/rdoc/classes/Templates.src/M000059.html +18 -0
- data/documentation/src/files/rdoc/classes/Templates.src/M000060.html +18 -0
- data/documentation/src/files/rdoc/classes/Templates.src/M000061.html +18 -0
- data/documentation/src/files/rdoc/created.rid +1 -0
- data/documentation/src/files/rdoc/files/lib/RubySeleniumGenerator_rb.html +101 -0
- data/documentation/src/files/rdoc/files/lib/RubySelenium_rb.html +352 -0
- data/documentation/src/files/rdoc/fr_class_index.html +36 -0
- data/documentation/src/files/rdoc/fr_file_index.html +28 -0
- data/documentation/src/files/rdoc/fr_method_index.html +122 -0
- data/documentation/src/files/rdoc/index.html +24 -0
- data/documentation/src/files/rdoc/rdoc-style.css +208 -0
- data/documentation/src/images/background.jpg +0 -0
- data/documentation/src/images/blanklogo_noswirl.jpg +0 -0
- data/documentation/src/images/blanklogo_withswirl.jpg +0 -0
- data/documentation/src/images/left1.jpg +0 -0
- data/documentation/src/images/left1bg.jpg +0 -0
- data/documentation/src/images/mainbackground.jpg +0 -0
- data/documentation/src/images/menudivider.jpg +0 -0
- data/documentation/src/images/tempheadline.jpg +0 -0
- data/documentation/src/images/templogo.jpg +0 -0
- data/documentation/src/images/toplogobg.jpg +0 -0
- data/documentation/src/images/welcome.jpg +0 -0
- data/documentation/src/index.template.txt +50 -0
- data/documentation/src/keywords/documentation_user_guide_content.keyword.txt +134 -0
- data/documentation/src/keywords/generic_browser_title.keyword.txt +1 -0
- data/documentation/src/keywords/generic_published.keyword.rb +1 -0
- data/documentation/src/keywords/index_content.keyword.txt +51 -0
- data/documentation/src/menu/default_menu/default_menu.css +44 -0
- data/documentation/src/menu/default_menu/default_menu.html.txt +28 -0
- data/documentation/src/menu/default_menu/default_menu.js +19 -0
- data/documentation/src/menu/menu_config.txt +1 -0
- data/documentation/src/menu/my_menu/my_menu.html.txt +15 -0
- data/lib/RubySelenium.rb +1088 -0
- data/lib/RubySeleniumGenerator.rb +570 -0
- data/rubySelenium.gemspec +48 -0
- data/unittests/TODO.txt +10 -0
- data/unittests/all_tests.rb +5 -0
- data/unittests/rubySeleniumConfig.txt +41 -0
- data/unittests/test-structure/001_MyFirstTest.rb +15 -0
- data/unittests/test-structure/002_MySecondTest.rb +15 -0
- data/unittests/test-structure/003_MyThirdTest.rb +15 -0
- data/unittests/test-structure/execute_all_tests.rb +2 -0
- data/unittests/test-structure/generate_all_tests.rb +2 -0
- data/unittests/test-structure/rubySeleniumConfig.txt +41 -0
- data/unittests/test_batch_generator.rb +58 -0
- data/unittests/test_command_line_execution.rb +17 -0
- data/unittests/test_config_file.rb +28 -0
- data/unittests/test_html_file_creation.rb +93 -0
- data/unittests/test_selenium_core_api.rb +108 -0
- metadata +374 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>new (HTML_File_Generator)</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
+
</head>
|
|
12
|
+
<body class="standalone-code">
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/RubySelenium.rb, line 810</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">ruby_selenium_script</span>)
|
|
15
|
+
<span class="ruby-comment cmt">#command_line_options = GenerateCommand.parse(ARGV)</span>
|
|
16
|
+
<span class="ruby-ivar">@ruby_selenium_script</span> = <span class="ruby-identifier">ruby_selenium_script</span>
|
|
17
|
+
<span class="ruby-ivar">@generate_location</span> = <span class="ruby-constant">COMMAND_GENERATE_LOCATION</span>
|
|
18
|
+
<span class="ruby-comment cmt">#@go_path = rubySeleniumConfig['TEST_LOCATION'].value</span>
|
|
19
|
+
<span class="ruby-comment cmt">#@ie_path = rubySeleniumConfig['IE_LOCATION'].value</span>
|
|
20
|
+
<span class="ruby-comment cmt">#@ff_path = rubySeleniumConfig['FF_LOCATION'].value</span>
|
|
21
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
22
|
+
</body>
|
|
23
|
+
</html>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>generate_single_script (HTML_File_Generator)</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
+
</head>
|
|
12
|
+
<body class="standalone-code">
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/RubySelenium.rb, line 819</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generate_single_script</span>
|
|
15
|
+
<span class="ruby-identifier">script_content</span> = []
|
|
16
|
+
<span class="ruby-ivar">@ruby_selenium_script</span>.<span class="ruby-identifier">commands</span>.<span class="ruby-identifier">each</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">html</span><span class="ruby-operator">|</span> <span class="ruby-identifier">script_content</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">html</span>.<span class="ruby-identifier">command</span>}
|
|
17
|
+
<span class="ruby-constant">Templates</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@ruby_selenium_script</span>.<span class="ruby-identifier">name</span>, <span class="ruby-identifier">script_content</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">"\n"</span>)).<span class="ruby-identifier">selenium_test_script</span>
|
|
18
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
19
|
+
</body>
|
|
20
|
+
</html>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>generate_test_runner (HTML_File_Generator)</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
+
</head>
|
|
12
|
+
<body class="standalone-code">
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/RubySelenium.rb, line 825</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generate_test_runner</span>
|
|
15
|
+
<span class="ruby-constant">Templates</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">"test_runner"</span>, <span class="ruby-value str">"test_runner"</span>).<span class="ruby-identifier">selenium_test_runner</span>
|
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
17
|
+
</body>
|
|
18
|
+
</html>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>generate_test_suite (HTML_File_Generator)</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
+
</head>
|
|
12
|
+
<body class="standalone-code">
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/RubySelenium.rb, line 829</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generate_test_suite</span>
|
|
15
|
+
<span class="ruby-identifier">test_suite_content</span> = <span class="ruby-node">"<tr><td><a href=\"#{@ruby_selenium_script.name}.html\">#{@ruby_selenium_script.name}</a></td></tr>"</span>
|
|
16
|
+
<span class="ruby-constant">Templates</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">"test_suite"</span>, <span class="ruby-value str">"test_suite"</span>, <span class="ruby-identifier">test_suite_content</span>).<span class="ruby-identifier">selenium_test_suite</span>
|
|
17
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
18
|
+
</body>
|
|
19
|
+
</html>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>create_single_script_file (HTML_File_Generator)</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
+
</head>
|
|
12
|
+
<body class="standalone-code">
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/RubySelenium.rb, line 834</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create_single_script_file</span>
|
|
15
|
+
<span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-ivar">@generate_location</span> <span class="ruby-operator">+</span> <span class="ruby-value str">"/"</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@ruby_selenium_script</span>.<span class="ruby-identifier">name</span> <span class="ruby-operator">+</span> <span class="ruby-value str">".html"</span>, <span class="ruby-value str">"w"</span>){<span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">print</span> <span class="ruby-identifier">generate_single_script</span>}
|
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
17
|
+
</body>
|
|
18
|
+
</html>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>create_test_runner_file (HTML_File_Generator)</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
+
</head>
|
|
12
|
+
<body class="standalone-code">
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/RubySelenium.rb, line 838</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create_test_runner_file</span>
|
|
15
|
+
<span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-node">"#{@generate_location}/seleniumTestRunner.html"</span>, <span class="ruby-value str">"w"</span>){<span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">print</span> <span class="ruby-identifier">generate_test_runner</span>}
|
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
17
|
+
</body>
|
|
18
|
+
</html>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>create_test_suite_file (HTML_File_Generator)</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
+
</head>
|
|
12
|
+
<body class="standalone-code">
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/RubySelenium.rb, line 842</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create_test_suite_file</span>
|
|
15
|
+
<span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-node">"#{@generate_location}/seleniumTestSuite.html"</span>, <span class="ruby-value str">"w"</span>){<span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">print</span> <span class="ruby-identifier">generate_test_suite</span>}
|
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
17
|
+
</body>
|
|
18
|
+
</html>
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
7
|
+
<head>
|
|
8
|
+
<title>Class: MissingConfigurationFile</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
|
11
|
+
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
|
12
|
+
<script type="text/javascript">
|
|
13
|
+
// <![CDATA[
|
|
14
|
+
|
|
15
|
+
function popupCode( url ) {
|
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function toggleCode( id ) {
|
|
20
|
+
if ( document.getElementById )
|
|
21
|
+
elem = document.getElementById( id );
|
|
22
|
+
else if ( document.all )
|
|
23
|
+
elem = eval( "document.all." + id );
|
|
24
|
+
else
|
|
25
|
+
return false;
|
|
26
|
+
|
|
27
|
+
elemStyle = elem.style;
|
|
28
|
+
|
|
29
|
+
if ( elemStyle.display != "block" ) {
|
|
30
|
+
elemStyle.display = "block"
|
|
31
|
+
} else {
|
|
32
|
+
elemStyle.display = "none"
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Make codeblocks hidden by default
|
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
|
40
|
+
|
|
41
|
+
// ]]>
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
</head>
|
|
45
|
+
<body>
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
<div id="classHeader">
|
|
50
|
+
<table class="header-table">
|
|
51
|
+
<tr class="top-aligned-row">
|
|
52
|
+
<td><strong>Class</strong></td>
|
|
53
|
+
<td class="class-name-in-header">MissingConfigurationFile</td>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr class="top-aligned-row">
|
|
56
|
+
<td><strong>In:</strong></td>
|
|
57
|
+
<td>
|
|
58
|
+
<a href="../files/lib/RubySelenium_rb.html">
|
|
59
|
+
lib/RubySelenium.rb
|
|
60
|
+
</a>
|
|
61
|
+
<br />
|
|
62
|
+
</td>
|
|
63
|
+
</tr>
|
|
64
|
+
|
|
65
|
+
<tr class="top-aligned-row">
|
|
66
|
+
<td><strong>Parent:</strong></td>
|
|
67
|
+
<td>
|
|
68
|
+
ArgumentError
|
|
69
|
+
</td>
|
|
70
|
+
</tr>
|
|
71
|
+
</table>
|
|
72
|
+
</div>
|
|
73
|
+
<!-- banner header -->
|
|
74
|
+
|
|
75
|
+
<div id="bodyContent">
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
<div id="contextContent">
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
</div>
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
</div>
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
<!-- if includes -->
|
|
90
|
+
|
|
91
|
+
<div id="section">
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
<!-- if method_list -->
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
</div>
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
<div id="validator-badges">
|
|
107
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
108
|
+
</div>
|
|
109
|
+
|
|
110
|
+
</body>
|
|
111
|
+
</html>
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
7
|
+
<head>
|
|
8
|
+
<title>Class: MissingRubyTestFiles</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
|
11
|
+
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
|
12
|
+
<script type="text/javascript">
|
|
13
|
+
// <![CDATA[
|
|
14
|
+
|
|
15
|
+
function popupCode( url ) {
|
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function toggleCode( id ) {
|
|
20
|
+
if ( document.getElementById )
|
|
21
|
+
elem = document.getElementById( id );
|
|
22
|
+
else if ( document.all )
|
|
23
|
+
elem = eval( "document.all." + id );
|
|
24
|
+
else
|
|
25
|
+
return false;
|
|
26
|
+
|
|
27
|
+
elemStyle = elem.style;
|
|
28
|
+
|
|
29
|
+
if ( elemStyle.display != "block" ) {
|
|
30
|
+
elemStyle.display = "block"
|
|
31
|
+
} else {
|
|
32
|
+
elemStyle.display = "none"
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Make codeblocks hidden by default
|
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
|
40
|
+
|
|
41
|
+
// ]]>
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
</head>
|
|
45
|
+
<body>
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
<div id="classHeader">
|
|
50
|
+
<table class="header-table">
|
|
51
|
+
<tr class="top-aligned-row">
|
|
52
|
+
<td><strong>Class</strong></td>
|
|
53
|
+
<td class="class-name-in-header">MissingRubyTestFiles</td>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr class="top-aligned-row">
|
|
56
|
+
<td><strong>In:</strong></td>
|
|
57
|
+
<td>
|
|
58
|
+
<a href="../files/lib/RubySelenium_rb.html">
|
|
59
|
+
lib/RubySelenium.rb
|
|
60
|
+
</a>
|
|
61
|
+
<br />
|
|
62
|
+
</td>
|
|
63
|
+
</tr>
|
|
64
|
+
|
|
65
|
+
<tr class="top-aligned-row">
|
|
66
|
+
<td><strong>Parent:</strong></td>
|
|
67
|
+
<td>
|
|
68
|
+
ArgumentError
|
|
69
|
+
</td>
|
|
70
|
+
</tr>
|
|
71
|
+
</table>
|
|
72
|
+
</div>
|
|
73
|
+
<!-- banner header -->
|
|
74
|
+
|
|
75
|
+
<div id="bodyContent">
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
<div id="contextContent">
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
</div>
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
</div>
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
<!-- if includes -->
|
|
90
|
+
|
|
91
|
+
<div id="section">
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
<!-- if method_list -->
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
</div>
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
<div id="validator-badges">
|
|
107
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
108
|
+
</div>
|
|
109
|
+
|
|
110
|
+
</body>
|
|
111
|
+
</html>
|
|
@@ -0,0 +1,1523 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
7
|
+
<head>
|
|
8
|
+
<title>Class: RubySelenium</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
|
11
|
+
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
|
12
|
+
<script type="text/javascript">
|
|
13
|
+
// <![CDATA[
|
|
14
|
+
|
|
15
|
+
function popupCode( url ) {
|
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function toggleCode( id ) {
|
|
20
|
+
if ( document.getElementById )
|
|
21
|
+
elem = document.getElementById( id );
|
|
22
|
+
else if ( document.all )
|
|
23
|
+
elem = eval( "document.all." + id );
|
|
24
|
+
else
|
|
25
|
+
return false;
|
|
26
|
+
|
|
27
|
+
elemStyle = elem.style;
|
|
28
|
+
|
|
29
|
+
if ( elemStyle.display != "block" ) {
|
|
30
|
+
elemStyle.display = "block"
|
|
31
|
+
} else {
|
|
32
|
+
elemStyle.display = "none"
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Make codeblocks hidden by default
|
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
|
40
|
+
|
|
41
|
+
// ]]>
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
</head>
|
|
45
|
+
<body>
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
<div id="classHeader">
|
|
50
|
+
<table class="header-table">
|
|
51
|
+
<tr class="top-aligned-row">
|
|
52
|
+
<td><strong>Class</strong></td>
|
|
53
|
+
<td class="class-name-in-header">RubySelenium</td>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr class="top-aligned-row">
|
|
56
|
+
<td><strong>In:</strong></td>
|
|
57
|
+
<td>
|
|
58
|
+
<a href="../files/lib/RubySelenium_rb.html">
|
|
59
|
+
lib/RubySelenium.rb
|
|
60
|
+
</a>
|
|
61
|
+
<br />
|
|
62
|
+
</td>
|
|
63
|
+
</tr>
|
|
64
|
+
|
|
65
|
+
<tr class="top-aligned-row">
|
|
66
|
+
<td><strong>Parent:</strong></td>
|
|
67
|
+
<td>
|
|
68
|
+
Object
|
|
69
|
+
</td>
|
|
70
|
+
</tr>
|
|
71
|
+
</table>
|
|
72
|
+
</div>
|
|
73
|
+
<!-- banner header -->
|
|
74
|
+
|
|
75
|
+
<div id="bodyContent">
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
<div id="contextContent">
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
</div>
|
|
84
|
+
|
|
85
|
+
<div id="method-list">
|
|
86
|
+
<h3 class="section-bar">Methods</h3>
|
|
87
|
+
|
|
88
|
+
<div class="name-list">
|
|
89
|
+
<a href="#M000051">assertAlert</a>
|
|
90
|
+
<a href="#M000031">assertAttribute</a>
|
|
91
|
+
<a href="#M000053">assertConfirmation</a>
|
|
92
|
+
<a href="#M000047">assertEditable</a>
|
|
93
|
+
<a href="#M000039">assertElementNotPresent</a>
|
|
94
|
+
<a href="#M000037">assertElementPresent</a>
|
|
95
|
+
<a href="#M000019">assertLocation</a>
|
|
96
|
+
<a href="#M000049">assertNotEditable</a>
|
|
97
|
+
<a href="#M000045">assertNotVisible</a>
|
|
98
|
+
<a href="#M000027">assertSelectOptions</a>
|
|
99
|
+
<a href="#M000025">assertSelected</a>
|
|
100
|
+
<a href="#M000041">assertTable</a>
|
|
101
|
+
<a href="#M000029">assertText</a>
|
|
102
|
+
<a href="#M000035">assertTextNotPresent</a>
|
|
103
|
+
<a href="#M000033">assertTextPresent</a>
|
|
104
|
+
<a href="#M000021">assertTitle</a>
|
|
105
|
+
<a href="#M000023">assertValue</a>
|
|
106
|
+
<a href="#M000043">assertVisible</a>
|
|
107
|
+
<a href="#M000054">chooseCancelOnNextConfirmation</a>
|
|
108
|
+
<a href="#M000006">click</a>
|
|
109
|
+
<a href="#M000007">clickAndWait</a>
|
|
110
|
+
<a href="#M000014">close</a>
|
|
111
|
+
<a href="#M000056">complete</a>
|
|
112
|
+
<a href="#M000057">go</a>
|
|
113
|
+
<a href="#M000013">goBack</a>
|
|
114
|
+
<a href="#M000002">new</a>
|
|
115
|
+
<a href="#M000003">open</a>
|
|
116
|
+
<a href="#M000011">pause</a>
|
|
117
|
+
<a href="#M000055">ruby_selenium_script</a>
|
|
118
|
+
<a href="#M000008">select</a>
|
|
119
|
+
<a href="#M000009">selectAndWait</a>
|
|
120
|
+
<a href="#M000010">selectWindow</a>
|
|
121
|
+
<a href="#M000015">store</a>
|
|
122
|
+
<a href="#M000017">storeText</a>
|
|
123
|
+
<a href="#M000016">storeValue</a>
|
|
124
|
+
<a href="#M000004">type</a>
|
|
125
|
+
<a href="#M000005">typeAndWait</a>
|
|
126
|
+
<a href="#M000050">verifyAlert</a>
|
|
127
|
+
<a href="#M000030">verifyAttribute</a>
|
|
128
|
+
<a href="#M000052">verifyConfirmation</a>
|
|
129
|
+
<a href="#M000046">verifyEditable</a>
|
|
130
|
+
<a href="#M000038">verifyElementNotPresent</a>
|
|
131
|
+
<a href="#M000036">verifyElementPresent</a>
|
|
132
|
+
<a href="#M000018">verifyLocation</a>
|
|
133
|
+
<a href="#M000048">verifyNotEditable</a>
|
|
134
|
+
<a href="#M000044">verifyNotVisible</a>
|
|
135
|
+
<a href="#M000026">verifySelectOptions</a>
|
|
136
|
+
<a href="#M000024">verifySelected</a>
|
|
137
|
+
<a href="#M000040">verifyTable</a>
|
|
138
|
+
<a href="#M000028">verifyText</a>
|
|
139
|
+
<a href="#M000034">verifyTextNotPresent</a>
|
|
140
|
+
<a href="#M000032">verifyTextPresent</a>
|
|
141
|
+
<a href="#M000020">verifyTitle</a>
|
|
142
|
+
<a href="#M000022">verifyValue</a>
|
|
143
|
+
<a href="#M000042">verifyVisible</a>
|
|
144
|
+
<a href="#M000012">waitForValue</a>
|
|
145
|
+
</div>
|
|
146
|
+
</div>
|
|
147
|
+
|
|
148
|
+
</div>
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
<!-- if includes -->
|
|
152
|
+
|
|
153
|
+
<div id="section">
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
<div id="constants-list">
|
|
157
|
+
<h3 class="section-bar">Constants</h3>
|
|
158
|
+
|
|
159
|
+
<div class="name-list">
|
|
160
|
+
<table summary="Constants">
|
|
161
|
+
<tr class="top-aligned-row context-row">
|
|
162
|
+
<td class="context-item-name">SeleniumCommand</td>
|
|
163
|
+
<td>=</td>
|
|
164
|
+
<td class="context-item-value">Struct.new("SeleniumCommand", :command)</td>
|
|
165
|
+
</tr>
|
|
166
|
+
<tr class="top-aligned-row context-row">
|
|
167
|
+
<td class="context-item-name">SeleniumScript</td>
|
|
168
|
+
<td>=</td>
|
|
169
|
+
<td class="context-item-value">Struct.new("SeleniumScript", :name, :commands)</td>
|
|
170
|
+
</tr>
|
|
171
|
+
</table>
|
|
172
|
+
</div>
|
|
173
|
+
</div>
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
<div id="attribute-list">
|
|
178
|
+
<h3 class="section-bar">Attributes</h3>
|
|
179
|
+
|
|
180
|
+
<div class="name-list">
|
|
181
|
+
<table>
|
|
182
|
+
<tr class="top-aligned-row context-row">
|
|
183
|
+
<td class="context-item-name">rubyWebService</td>
|
|
184
|
+
<td class="context-item-value"> [RW] </td>
|
|
185
|
+
<td class="context-item-desc"></td>
|
|
186
|
+
</tr>
|
|
187
|
+
</table>
|
|
188
|
+
</div>
|
|
189
|
+
</div>
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
<!-- if method_list -->
|
|
194
|
+
<div id="methods">
|
|
195
|
+
<h3 class="section-bar">Public Class methods</h3>
|
|
196
|
+
|
|
197
|
+
<div id="method-M000002" class="method-detail">
|
|
198
|
+
<a name="M000002"></a>
|
|
199
|
+
|
|
200
|
+
<div class="method-heading">
|
|
201
|
+
<a href="RubySelenium.src/M000002.html" target="Code" class="method-signature"
|
|
202
|
+
onclick="popupCode('RubySelenium.src/M000002.html');return false;">
|
|
203
|
+
<span class="method-name">new</span><span class="method-args">(test_script_name)</span>
|
|
204
|
+
</a>
|
|
205
|
+
</div>
|
|
206
|
+
|
|
207
|
+
<div class="method-description">
|
|
208
|
+
</div>
|
|
209
|
+
</div>
|
|
210
|
+
|
|
211
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
|
212
|
+
|
|
213
|
+
<div id="method-M000051" class="method-detail">
|
|
214
|
+
<a name="M000051"></a>
|
|
215
|
+
|
|
216
|
+
<div class="method-heading">
|
|
217
|
+
<a href="RubySelenium.src/M000051.html" target="Code" class="method-signature"
|
|
218
|
+
onclick="popupCode('RubySelenium.src/M000051.html');return false;">
|
|
219
|
+
<span class="method-name">assertAlert</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
220
|
+
</a>
|
|
221
|
+
</div>
|
|
222
|
+
|
|
223
|
+
<div class="method-description">
|
|
224
|
+
<p>
|
|
225
|
+
examples:
|
|
226
|
+
</p>
|
|
227
|
+
<p>
|
|
228
|
+
selenium.assertAlert("Invalid Phone Number")
|
|
229
|
+
</p>
|
|
230
|
+
</div>
|
|
231
|
+
</div>
|
|
232
|
+
|
|
233
|
+
<div id="method-M000031" class="method-detail">
|
|
234
|
+
<a name="M000031"></a>
|
|
235
|
+
|
|
236
|
+
<div class="method-heading">
|
|
237
|
+
<a href="RubySelenium.src/M000031.html" target="Code" class="method-signature"
|
|
238
|
+
onclick="popupCode('RubySelenium.src/M000031.html');return false;">
|
|
239
|
+
<span class="method-name">assertAttribute</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
240
|
+
</a>
|
|
241
|
+
</div>
|
|
242
|
+
|
|
243
|
+
<div class="method-description">
|
|
244
|
+
<p>
|
|
245
|
+
examples:
|
|
246
|
+
</p>
|
|
247
|
+
<p>
|
|
248
|
+
selenium.assertAttribute("document.images[0]@alt",
|
|
249
|
+
"alt-text")
|
|
250
|
+
</p>
|
|
251
|
+
</div>
|
|
252
|
+
</div>
|
|
253
|
+
|
|
254
|
+
<div id="method-M000053" class="method-detail">
|
|
255
|
+
<a name="M000053"></a>
|
|
256
|
+
|
|
257
|
+
<div class="method-heading">
|
|
258
|
+
<a href="RubySelenium.src/M000053.html" target="Code" class="method-signature"
|
|
259
|
+
onclick="popupCode('RubySelenium.src/M000053.html');return false;">
|
|
260
|
+
<span class="method-name">assertConfirmation</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
261
|
+
</a>
|
|
262
|
+
</div>
|
|
263
|
+
|
|
264
|
+
<div class="method-description">
|
|
265
|
+
<p>
|
|
266
|
+
examples:
|
|
267
|
+
</p>
|
|
268
|
+
<p>
|
|
269
|
+
selenium.assertConfirmation("Invalid Phone Number")
|
|
270
|
+
</p>
|
|
271
|
+
</div>
|
|
272
|
+
</div>
|
|
273
|
+
|
|
274
|
+
<div id="method-M000047" class="method-detail">
|
|
275
|
+
<a name="M000047"></a>
|
|
276
|
+
|
|
277
|
+
<div class="method-heading">
|
|
278
|
+
<a href="RubySelenium.src/M000047.html" target="Code" class="method-signature"
|
|
279
|
+
onclick="popupCode('RubySelenium.src/M000047.html');return false;">
|
|
280
|
+
<span class="method-name">assertEditable</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
281
|
+
</a>
|
|
282
|
+
</div>
|
|
283
|
+
|
|
284
|
+
<div class="method-description">
|
|
285
|
+
<p>
|
|
286
|
+
examples:
|
|
287
|
+
</p>
|
|
288
|
+
<p>
|
|
289
|
+
selenium.assertEditable("shape")
|
|
290
|
+
</p>
|
|
291
|
+
</div>
|
|
292
|
+
</div>
|
|
293
|
+
|
|
294
|
+
<div id="method-M000039" class="method-detail">
|
|
295
|
+
<a name="M000039"></a>
|
|
296
|
+
|
|
297
|
+
<div class="method-heading">
|
|
298
|
+
<a href="RubySelenium.src/M000039.html" target="Code" class="method-signature"
|
|
299
|
+
onclick="popupCode('RubySelenium.src/M000039.html');return false;">
|
|
300
|
+
<span class="method-name">assertElementNotPresent</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
301
|
+
</a>
|
|
302
|
+
</div>
|
|
303
|
+
|
|
304
|
+
<div class="method-description">
|
|
305
|
+
<p>
|
|
306
|
+
examples:
|
|
307
|
+
</p>
|
|
308
|
+
<p>
|
|
309
|
+
selenium.assertElementNotPresent("cancelButton"
|
|
310
|
+
</p>
|
|
311
|
+
</div>
|
|
312
|
+
</div>
|
|
313
|
+
|
|
314
|
+
<div id="method-M000037" class="method-detail">
|
|
315
|
+
<a name="M000037"></a>
|
|
316
|
+
|
|
317
|
+
<div class="method-heading">
|
|
318
|
+
<a href="RubySelenium.src/M000037.html" target="Code" class="method-signature"
|
|
319
|
+
onclick="popupCode('RubySelenium.src/M000037.html');return false;">
|
|
320
|
+
<span class="method-name">assertElementPresent</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
321
|
+
</a>
|
|
322
|
+
</div>
|
|
323
|
+
|
|
324
|
+
<div class="method-description">
|
|
325
|
+
<p>
|
|
326
|
+
examples:
|
|
327
|
+
</p>
|
|
328
|
+
<p>
|
|
329
|
+
selenium.assertElementPresent("//img[@alt=’foo’]")
|
|
330
|
+
</p>
|
|
331
|
+
</div>
|
|
332
|
+
</div>
|
|
333
|
+
|
|
334
|
+
<div id="method-M000019" class="method-detail">
|
|
335
|
+
<a name="M000019"></a>
|
|
336
|
+
|
|
337
|
+
<div class="method-heading">
|
|
338
|
+
<a href="RubySelenium.src/M000019.html" target="Code" class="method-signature"
|
|
339
|
+
onclick="popupCode('RubySelenium.src/M000019.html');return false;">
|
|
340
|
+
<span class="method-name">assertLocation</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
341
|
+
</a>
|
|
342
|
+
</div>
|
|
343
|
+
|
|
344
|
+
<div class="method-description">
|
|
345
|
+
<p>
|
|
346
|
+
examples:
|
|
347
|
+
</p>
|
|
348
|
+
<p>
|
|
349
|
+
selenium.assertLocation("/mypage")
|
|
350
|
+
</p>
|
|
351
|
+
</div>
|
|
352
|
+
</div>
|
|
353
|
+
|
|
354
|
+
<div id="method-M000049" class="method-detail">
|
|
355
|
+
<a name="M000049"></a>
|
|
356
|
+
|
|
357
|
+
<div class="method-heading">
|
|
358
|
+
<a href="RubySelenium.src/M000049.html" target="Code" class="method-signature"
|
|
359
|
+
onclick="popupCode('RubySelenium.src/M000049.html');return false;">
|
|
360
|
+
<span class="method-name">assertNotEditable</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
361
|
+
</a>
|
|
362
|
+
</div>
|
|
363
|
+
|
|
364
|
+
<div class="method-description">
|
|
365
|
+
<p>
|
|
366
|
+
examples:
|
|
367
|
+
</p>
|
|
368
|
+
<p>
|
|
369
|
+
selenium.assertNotEditable("creditLimit")
|
|
370
|
+
</p>
|
|
371
|
+
</div>
|
|
372
|
+
</div>
|
|
373
|
+
|
|
374
|
+
<div id="method-M000045" class="method-detail">
|
|
375
|
+
<a name="M000045"></a>
|
|
376
|
+
|
|
377
|
+
<div class="method-heading">
|
|
378
|
+
<a href="RubySelenium.src/M000045.html" target="Code" class="method-signature"
|
|
379
|
+
onclick="popupCode('RubySelenium.src/M000045.html');return false;">
|
|
380
|
+
<span class="method-name">assertNotVisible</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
381
|
+
</a>
|
|
382
|
+
</div>
|
|
383
|
+
|
|
384
|
+
<div class="method-description">
|
|
385
|
+
<p>
|
|
386
|
+
examples:
|
|
387
|
+
</p>
|
|
388
|
+
<p>
|
|
389
|
+
selenium.assertNotVisible("postcode")
|
|
390
|
+
</p>
|
|
391
|
+
</div>
|
|
392
|
+
</div>
|
|
393
|
+
|
|
394
|
+
<div id="method-M000027" class="method-detail">
|
|
395
|
+
<a name="M000027"></a>
|
|
396
|
+
|
|
397
|
+
<div class="method-heading">
|
|
398
|
+
<a href="RubySelenium.src/M000027.html" target="Code" class="method-signature"
|
|
399
|
+
onclick="popupCode('RubySelenium.src/M000027.html');return false;">
|
|
400
|
+
<span class="method-name">assertSelectOptions</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
401
|
+
</a>
|
|
402
|
+
</div>
|
|
403
|
+
|
|
404
|
+
<div class="method-description">
|
|
405
|
+
<p>
|
|
406
|
+
examples:
|
|
407
|
+
</p>
|
|
408
|
+
<p>
|
|
409
|
+
selenium.assertSelectOptions("document.forms[2].dropDown",
|
|
410
|
+
"Smith\, J,Bird\, D")
|
|
411
|
+
</p>
|
|
412
|
+
</div>
|
|
413
|
+
</div>
|
|
414
|
+
|
|
415
|
+
<div id="method-M000025" class="method-detail">
|
|
416
|
+
<a name="M000025"></a>
|
|
417
|
+
|
|
418
|
+
<div class="method-heading">
|
|
419
|
+
<a href="RubySelenium.src/M000025.html" target="Code" class="method-signature"
|
|
420
|
+
onclick="popupCode('RubySelenium.src/M000025.html');return false;">
|
|
421
|
+
<span class="method-name">assertSelected</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
422
|
+
</a>
|
|
423
|
+
</div>
|
|
424
|
+
|
|
425
|
+
<div class="method-description">
|
|
426
|
+
<p>
|
|
427
|
+
examples:
|
|
428
|
+
</p>
|
|
429
|
+
<p>
|
|
430
|
+
selenium.assertSelected("document.forms[2].dropDown",
|
|
431
|
+
"label=J* Smith")
|
|
432
|
+
</p>
|
|
433
|
+
</div>
|
|
434
|
+
</div>
|
|
435
|
+
|
|
436
|
+
<div id="method-M000041" class="method-detail">
|
|
437
|
+
<a name="M000041"></a>
|
|
438
|
+
|
|
439
|
+
<div class="method-heading">
|
|
440
|
+
<a href="RubySelenium.src/M000041.html" target="Code" class="method-signature"
|
|
441
|
+
onclick="popupCode('RubySelenium.src/M000041.html');return false;">
|
|
442
|
+
<span class="method-name">assertTable</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
443
|
+
</a>
|
|
444
|
+
</div>
|
|
445
|
+
|
|
446
|
+
<div class="method-description">
|
|
447
|
+
<p>
|
|
448
|
+
examples:
|
|
449
|
+
</p>
|
|
450
|
+
<p>
|
|
451
|
+
selenium.assertTable("results.0.2", "13")
|
|
452
|
+
</p>
|
|
453
|
+
</div>
|
|
454
|
+
</div>
|
|
455
|
+
|
|
456
|
+
<div id="method-M000029" class="method-detail">
|
|
457
|
+
<a name="M000029"></a>
|
|
458
|
+
|
|
459
|
+
<div class="method-heading">
|
|
460
|
+
<a href="RubySelenium.src/M000029.html" target="Code" class="method-signature"
|
|
461
|
+
onclick="popupCode('RubySelenium.src/M000029.html');return false;">
|
|
462
|
+
<span class="method-name">assertText</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
463
|
+
</a>
|
|
464
|
+
</div>
|
|
465
|
+
|
|
466
|
+
<div class="method-description">
|
|
467
|
+
<p>
|
|
468
|
+
examples:
|
|
469
|
+
</p>
|
|
470
|
+
<p>
|
|
471
|
+
selenium.assertText("//div[@id=’foo’]//h1",
|
|
472
|
+
"Successful")
|
|
473
|
+
</p>
|
|
474
|
+
</div>
|
|
475
|
+
</div>
|
|
476
|
+
|
|
477
|
+
<div id="method-M000035" class="method-detail">
|
|
478
|
+
<a name="M000035"></a>
|
|
479
|
+
|
|
480
|
+
<div class="method-heading">
|
|
481
|
+
<a href="RubySelenium.src/M000035.html" target="Code" class="method-signature"
|
|
482
|
+
onclick="popupCode('RubySelenium.src/M000035.html');return false;">
|
|
483
|
+
<span class="method-name">assertTextNotPresent</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
484
|
+
</a>
|
|
485
|
+
</div>
|
|
486
|
+
|
|
487
|
+
<div class="method-description">
|
|
488
|
+
<p>
|
|
489
|
+
examples:
|
|
490
|
+
</p>
|
|
491
|
+
<p>
|
|
492
|
+
selenium.assertTextNotPresent("You are now logged in."
|
|
493
|
+
</p>
|
|
494
|
+
</div>
|
|
495
|
+
</div>
|
|
496
|
+
|
|
497
|
+
<div id="method-M000033" class="method-detail">
|
|
498
|
+
<a name="M000033"></a>
|
|
499
|
+
|
|
500
|
+
<div class="method-heading">
|
|
501
|
+
<a href="RubySelenium.src/M000033.html" target="Code" class="method-signature"
|
|
502
|
+
onclick="popupCode('RubySelenium.src/M000033.html');return false;">
|
|
503
|
+
<span class="method-name">assertTextPresent</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
504
|
+
</a>
|
|
505
|
+
</div>
|
|
506
|
+
|
|
507
|
+
<div class="method-description">
|
|
508
|
+
<p>
|
|
509
|
+
examples:
|
|
510
|
+
</p>
|
|
511
|
+
<p>
|
|
512
|
+
selenium.assertTextPresent("You are now logged in."
|
|
513
|
+
</p>
|
|
514
|
+
</div>
|
|
515
|
+
</div>
|
|
516
|
+
|
|
517
|
+
<div id="method-M000021" class="method-detail">
|
|
518
|
+
<a name="M000021"></a>
|
|
519
|
+
|
|
520
|
+
<div class="method-heading">
|
|
521
|
+
<a href="RubySelenium.src/M000021.html" target="Code" class="method-signature"
|
|
522
|
+
onclick="popupCode('RubySelenium.src/M000021.html');return false;">
|
|
523
|
+
<span class="method-name">assertTitle</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
524
|
+
</a>
|
|
525
|
+
</div>
|
|
526
|
+
|
|
527
|
+
<div class="method-description">
|
|
528
|
+
<p>
|
|
529
|
+
examples:
|
|
530
|
+
</p>
|
|
531
|
+
<p>
|
|
532
|
+
selenium.assertTitle("My Page")
|
|
533
|
+
</p>
|
|
534
|
+
</div>
|
|
535
|
+
</div>
|
|
536
|
+
|
|
537
|
+
<div id="method-M000023" class="method-detail">
|
|
538
|
+
<a name="M000023"></a>
|
|
539
|
+
|
|
540
|
+
<div class="method-heading">
|
|
541
|
+
<a href="RubySelenium.src/M000023.html" target="Code" class="method-signature"
|
|
542
|
+
onclick="popupCode('RubySelenium.src/M000023.html');return false;">
|
|
543
|
+
<span class="method-name">assertValue</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
544
|
+
</a>
|
|
545
|
+
</div>
|
|
546
|
+
|
|
547
|
+
<div class="method-description">
|
|
548
|
+
<p>
|
|
549
|
+
examples:
|
|
550
|
+
</p>
|
|
551
|
+
<p>
|
|
552
|
+
selenium.assertValue("document.forms[2].nameField", "John
|
|
553
|
+
Smith")
|
|
554
|
+
</p>
|
|
555
|
+
</div>
|
|
556
|
+
</div>
|
|
557
|
+
|
|
558
|
+
<div id="method-M000043" class="method-detail">
|
|
559
|
+
<a name="M000043"></a>
|
|
560
|
+
|
|
561
|
+
<div class="method-heading">
|
|
562
|
+
<a href="RubySelenium.src/M000043.html" target="Code" class="method-signature"
|
|
563
|
+
onclick="popupCode('RubySelenium.src/M000043.html');return false;">
|
|
564
|
+
<span class="method-name">assertVisible</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
565
|
+
</a>
|
|
566
|
+
</div>
|
|
567
|
+
|
|
568
|
+
<div class="method-description">
|
|
569
|
+
<p>
|
|
570
|
+
examples:
|
|
571
|
+
</p>
|
|
572
|
+
<p>
|
|
573
|
+
selenium.assertVisible("postcode")
|
|
574
|
+
</p>
|
|
575
|
+
</div>
|
|
576
|
+
</div>
|
|
577
|
+
|
|
578
|
+
<div id="method-M000054" class="method-detail">
|
|
579
|
+
<a name="M000054"></a>
|
|
580
|
+
|
|
581
|
+
<div class="method-heading">
|
|
582
|
+
<a href="RubySelenium.src/M000054.html" target="Code" class="method-signature"
|
|
583
|
+
onclick="popupCode('RubySelenium.src/M000054.html');return false;">
|
|
584
|
+
<span class="method-name">chooseCancelOnNextConfirmation</span><span class="method-args">(target = "[empty]",value = "[empty]")</span>
|
|
585
|
+
</a>
|
|
586
|
+
</div>
|
|
587
|
+
|
|
588
|
+
<div class="method-description">
|
|
589
|
+
<p>
|
|
590
|
+
Instructs Selenium to click Cancel on the next javascript confirmation
|
|
591
|
+
dialog to be raised. By default, the confirm function will return true,
|
|
592
|
+
having the same effect as manually clicking OK. After running this command,
|
|
593
|
+
the next confirmation will behave as if the user had clicked Cancel.
|
|
594
|
+
target: ignored value: ignored
|
|
595
|
+
</p>
|
|
596
|
+
<p>
|
|
597
|
+
examples:
|
|
598
|
+
</p>
|
|
599
|
+
<p>
|
|
600
|
+
selenium.chooseCancelOnNextConfirmation
|
|
601
|
+
</p>
|
|
602
|
+
</div>
|
|
603
|
+
</div>
|
|
604
|
+
|
|
605
|
+
<div id="method-M000006" class="method-detail">
|
|
606
|
+
<a name="M000006"></a>
|
|
607
|
+
|
|
608
|
+
<div class="method-heading">
|
|
609
|
+
<a href="RubySelenium.src/M000006.html" target="Code" class="method-signature"
|
|
610
|
+
onclick="popupCode('RubySelenium.src/M000006.html');return false;">
|
|
611
|
+
<span class="method-name">click</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
612
|
+
</a>
|
|
613
|
+
</div>
|
|
614
|
+
|
|
615
|
+
<div class="method-description">
|
|
616
|
+
<p>
|
|
617
|
+
Clicks on a link, button, checkbox or radio button. If the click action
|
|
618
|
+
causes a new page to load (like a link usually does), use
|
|
619
|
+
"clickAndWait". target: The id of the element that should be
|
|
620
|
+
clicked. value: ignored
|
|
621
|
+
</p>
|
|
622
|
+
<p>
|
|
623
|
+
examples:
|
|
624
|
+
</p>
|
|
625
|
+
<p>
|
|
626
|
+
selenium.click("aCheckbox")
|
|
627
|
+
</p>
|
|
628
|
+
<p>
|
|
629
|
+
Selenium will always automatically click on a popup dialog raised by the
|
|
630
|
+
alert() or confirm() methods. (The exception is those raised during
|
|
631
|
+
‘onload’, which are not yet handled by Selenium). You must use
|
|
632
|
+
[verify|assert]Alert or [verify|assert]Confirmation to tell Selenium that
|
|
633
|
+
you expect the popup dialog. You may use chooseCancelOnNextConfirmation to
|
|
634
|
+
click ‘cancel’ on the next confirmation dialog instead of
|
|
635
|
+
clicking ‘OK’.
|
|
636
|
+
</p>
|
|
637
|
+
</div>
|
|
638
|
+
</div>
|
|
639
|
+
|
|
640
|
+
<div id="method-M000007" class="method-detail">
|
|
641
|
+
<a name="M000007"></a>
|
|
642
|
+
|
|
643
|
+
<div class="method-heading">
|
|
644
|
+
<a href="RubySelenium.src/M000007.html" target="Code" class="method-signature"
|
|
645
|
+
onclick="popupCode('RubySelenium.src/M000007.html');return false;">
|
|
646
|
+
<span class="method-name">clickAndWait</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
647
|
+
</a>
|
|
648
|
+
</div>
|
|
649
|
+
|
|
650
|
+
<div class="method-description">
|
|
651
|
+
<p>
|
|
652
|
+
examples:
|
|
653
|
+
</p>
|
|
654
|
+
<p>
|
|
655
|
+
selenium.clickAndWait("submitButton")
|
|
656
|
+
</p>
|
|
657
|
+
</div>
|
|
658
|
+
</div>
|
|
659
|
+
|
|
660
|
+
<div id="method-M000014" class="method-detail">
|
|
661
|
+
<a name="M000014"></a>
|
|
662
|
+
|
|
663
|
+
<div class="method-heading">
|
|
664
|
+
<a href="RubySelenium.src/M000014.html" target="Code" class="method-signature"
|
|
665
|
+
onclick="popupCode('RubySelenium.src/M000014.html');return false;">
|
|
666
|
+
<span class="method-name">close</span><span class="method-args">(target = "[empty]",value = "[empty]")</span>
|
|
667
|
+
</a>
|
|
668
|
+
</div>
|
|
669
|
+
|
|
670
|
+
<div class="method-description">
|
|
671
|
+
<p>
|
|
672
|
+
Simulates the user clicking the "close" button in the titlebar of
|
|
673
|
+
a popup window. target: ignored value: ignored
|
|
674
|
+
</p>
|
|
675
|
+
<p>
|
|
676
|
+
examples:
|
|
677
|
+
</p>
|
|
678
|
+
<p>
|
|
679
|
+
selenium.close
|
|
680
|
+
</p>
|
|
681
|
+
</div>
|
|
682
|
+
</div>
|
|
683
|
+
|
|
684
|
+
<div id="method-M000056" class="method-detail">
|
|
685
|
+
<a name="M000056"></a>
|
|
686
|
+
|
|
687
|
+
<div class="method-heading">
|
|
688
|
+
<a href="RubySelenium.src/M000056.html" target="Code" class="method-signature"
|
|
689
|
+
onclick="popupCode('RubySelenium.src/M000056.html');return false;">
|
|
690
|
+
<span class="method-name">complete</span><span class="method-args">()</span>
|
|
691
|
+
</a>
|
|
692
|
+
</div>
|
|
693
|
+
|
|
694
|
+
<div class="method-description">
|
|
695
|
+
</div>
|
|
696
|
+
</div>
|
|
697
|
+
|
|
698
|
+
<div id="method-M000057" class="method-detail">
|
|
699
|
+
<a name="M000057"></a>
|
|
700
|
+
|
|
701
|
+
<div class="method-heading">
|
|
702
|
+
<a href="RubySelenium.src/M000057.html" target="Code" class="method-signature"
|
|
703
|
+
onclick="popupCode('RubySelenium.src/M000057.html');return false;">
|
|
704
|
+
<span class="method-name">go</span><span class="method-args">(browser = "IE")</span>
|
|
705
|
+
</a>
|
|
706
|
+
</div>
|
|
707
|
+
|
|
708
|
+
<div class="method-description">
|
|
709
|
+
</div>
|
|
710
|
+
</div>
|
|
711
|
+
|
|
712
|
+
<div id="method-M000013" class="method-detail">
|
|
713
|
+
<a name="M000013"></a>
|
|
714
|
+
|
|
715
|
+
<div class="method-heading">
|
|
716
|
+
<a href="RubySelenium.src/M000013.html" target="Code" class="method-signature"
|
|
717
|
+
onclick="popupCode('RubySelenium.src/M000013.html');return false;">
|
|
718
|
+
<span class="method-name">goBack</span><span class="method-args">(target = "[empty]",value = "[empty]")</span>
|
|
719
|
+
</a>
|
|
720
|
+
</div>
|
|
721
|
+
|
|
722
|
+
<div class="method-description">
|
|
723
|
+
<p>
|
|
724
|
+
Simulates the user clicking the "back" button on their browser.
|
|
725
|
+
target: ignored value: ignored
|
|
726
|
+
</p>
|
|
727
|
+
<p>
|
|
728
|
+
examples:
|
|
729
|
+
</p>
|
|
730
|
+
<p>
|
|
731
|
+
selenium.goBack
|
|
732
|
+
</p>
|
|
733
|
+
</div>
|
|
734
|
+
</div>
|
|
735
|
+
|
|
736
|
+
<div id="method-M000003" class="method-detail">
|
|
737
|
+
<a name="M000003"></a>
|
|
738
|
+
|
|
739
|
+
<div class="method-heading">
|
|
740
|
+
<a href="RubySelenium.src/M000003.html" target="Code" class="method-signature"
|
|
741
|
+
onclick="popupCode('RubySelenium.src/M000003.html');return false;">
|
|
742
|
+
<span class="method-name">open</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
743
|
+
</a>
|
|
744
|
+
</div>
|
|
745
|
+
|
|
746
|
+
<div class="method-description">
|
|
747
|
+
<p>
|
|
748
|
+
Opens a URL in the test frame. This accepts both relative and absolute
|
|
749
|
+
URLs. Note: The URL must be on the same site as Selenium due to security
|
|
750
|
+
restrictions in the browser (Cross Site Scripting). target: The URL to
|
|
751
|
+
open. value: ignored
|
|
752
|
+
</p>
|
|
753
|
+
<p>
|
|
754
|
+
examples:
|
|
755
|
+
</p>
|
|
756
|
+
<p>
|
|
757
|
+
selenium.open("/mypage") selenium.open("<a
|
|
758
|
+
href="http://localhost">localhost</a>/")
|
|
759
|
+
</p>
|
|
760
|
+
</div>
|
|
761
|
+
</div>
|
|
762
|
+
|
|
763
|
+
<div id="method-M000011" class="method-detail">
|
|
764
|
+
<a name="M000011"></a>
|
|
765
|
+
|
|
766
|
+
<div class="method-heading">
|
|
767
|
+
<a href="RubySelenium.src/M000011.html" target="Code" class="method-signature"
|
|
768
|
+
onclick="popupCode('RubySelenium.src/M000011.html');return false;">
|
|
769
|
+
<span class="method-name">pause</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
770
|
+
</a>
|
|
771
|
+
</div>
|
|
772
|
+
|
|
773
|
+
<div class="method-description">
|
|
774
|
+
<p>
|
|
775
|
+
Pauses the execution of the test script for a specified amount of time.
|
|
776
|
+
This is useful for debugging a script or pausing to wait for some server
|
|
777
|
+
side action. target: The number of milliseconds to pause. value: ignored
|
|
778
|
+
</p>
|
|
779
|
+
<p>
|
|
780
|
+
examples:
|
|
781
|
+
</p>
|
|
782
|
+
<p>
|
|
783
|
+
selenium.pause("5000")
|
|
784
|
+
</p>
|
|
785
|
+
</div>
|
|
786
|
+
</div>
|
|
787
|
+
|
|
788
|
+
<div id="method-M000055" class="method-detail">
|
|
789
|
+
<a name="M000055"></a>
|
|
790
|
+
|
|
791
|
+
<div class="method-heading">
|
|
792
|
+
<a href="RubySelenium.src/M000055.html" target="Code" class="method-signature"
|
|
793
|
+
onclick="popupCode('RubySelenium.src/M000055.html');return false;">
|
|
794
|
+
<span class="method-name">ruby_selenium_script</span><span class="method-args">()</span>
|
|
795
|
+
</a>
|
|
796
|
+
</div>
|
|
797
|
+
|
|
798
|
+
<div class="method-description">
|
|
799
|
+
</div>
|
|
800
|
+
</div>
|
|
801
|
+
|
|
802
|
+
<div id="method-M000008" class="method-detail">
|
|
803
|
+
<a name="M000008"></a>
|
|
804
|
+
|
|
805
|
+
<div class="method-heading">
|
|
806
|
+
<a href="RubySelenium.src/M000008.html" target="Code" class="method-signature"
|
|
807
|
+
onclick="popupCode('RubySelenium.src/M000008.html');return false;">
|
|
808
|
+
<span class="method-name">select</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
809
|
+
</a>
|
|
810
|
+
</div>
|
|
811
|
+
|
|
812
|
+
<div class="method-description">
|
|
813
|
+
<p>
|
|
814
|
+
Select an option from a drop-down, based on a Select Option Specifier.
|
|
815
|
+
target: An Element Locator specifying an HTML Select element. value: An
|
|
816
|
+
Option Specifier. If more than one option matches (e.g. due to the use of
|
|
817
|
+
globs like "f*b*", or due to more than one option having the same
|
|
818
|
+
label or value), then the first option that matches is selected.
|
|
819
|
+
</p>
|
|
820
|
+
<p>
|
|
821
|
+
examples:
|
|
822
|
+
</p>
|
|
823
|
+
<p>
|
|
824
|
+
selenium.select("dropDown", "Australian Dollars")
|
|
825
|
+
</p>
|
|
826
|
+
</div>
|
|
827
|
+
</div>
|
|
828
|
+
|
|
829
|
+
<div id="method-M000009" class="method-detail">
|
|
830
|
+
<a name="M000009"></a>
|
|
831
|
+
|
|
832
|
+
<div class="method-heading">
|
|
833
|
+
<a href="RubySelenium.src/M000009.html" target="Code" class="method-signature"
|
|
834
|
+
onclick="popupCode('RubySelenium.src/M000009.html');return false;">
|
|
835
|
+
<span class="method-name">selectAndWait</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
836
|
+
</a>
|
|
837
|
+
</div>
|
|
838
|
+
|
|
839
|
+
<div class="method-description">
|
|
840
|
+
<p>
|
|
841
|
+
examples:
|
|
842
|
+
</p>
|
|
843
|
+
<p>
|
|
844
|
+
selenium.selectAndWait("currencySelector","AUD")
|
|
845
|
+
</p>
|
|
846
|
+
</div>
|
|
847
|
+
</div>
|
|
848
|
+
|
|
849
|
+
<div id="method-M000010" class="method-detail">
|
|
850
|
+
<a name="M000010"></a>
|
|
851
|
+
|
|
852
|
+
<div class="method-heading">
|
|
853
|
+
<a href="RubySelenium.src/M000010.html" target="Code" class="method-signature"
|
|
854
|
+
onclick="popupCode('RubySelenium.src/M000010.html');return false;">
|
|
855
|
+
<span class="method-name">selectWindow</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
856
|
+
</a>
|
|
857
|
+
</div>
|
|
858
|
+
|
|
859
|
+
<div class="method-description">
|
|
860
|
+
<p>
|
|
861
|
+
Selects a popup window. Once a popup window has been selected, all commands
|
|
862
|
+
go to that window. To select the main window again, use "null" as
|
|
863
|
+
the target. target: The id of the window to select. value: ignored
|
|
864
|
+
</p>
|
|
865
|
+
<p>
|
|
866
|
+
examples:
|
|
867
|
+
</p>
|
|
868
|
+
<p>
|
|
869
|
+
selenium.selectWindow("myPopupWindow")
|
|
870
|
+
</p>
|
|
871
|
+
</div>
|
|
872
|
+
</div>
|
|
873
|
+
|
|
874
|
+
<div id="method-M000015" class="method-detail">
|
|
875
|
+
<a name="M000015"></a>
|
|
876
|
+
|
|
877
|
+
<div class="method-heading">
|
|
878
|
+
<a href="RubySelenium.src/M000015.html" target="Code" class="method-signature"
|
|
879
|
+
onclick="popupCode('RubySelenium.src/M000015.html');return false;">
|
|
880
|
+
<span class="method-name">store</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
881
|
+
</a>
|
|
882
|
+
</div>
|
|
883
|
+
|
|
884
|
+
<div class="method-description">
|
|
885
|
+
<p>
|
|
886
|
+
Stores the value of a parameter into a variable target: The value to store.
|
|
887
|
+
This can be constructed using either variable substitution or javascript
|
|
888
|
+
evaluation, as detailed in ‘Parameter construction and
|
|
889
|
+
Variables’ (below). value: Name of the variable to store the value
|
|
890
|
+
into.
|
|
891
|
+
</p>
|
|
892
|
+
<p>
|
|
893
|
+
examples:
|
|
894
|
+
</p>
|
|
895
|
+
<p>
|
|
896
|
+
selenium.store("Mr John Smith","fullname")
|
|
897
|
+
</p>
|
|
898
|
+
</div>
|
|
899
|
+
</div>
|
|
900
|
+
|
|
901
|
+
<div id="method-M000017" class="method-detail">
|
|
902
|
+
<a name="M000017"></a>
|
|
903
|
+
|
|
904
|
+
<div class="method-heading">
|
|
905
|
+
<a href="RubySelenium.src/M000017.html" target="Code" class="method-signature"
|
|
906
|
+
onclick="popupCode('RubySelenium.src/M000017.html');return false;">
|
|
907
|
+
<span class="method-name">storeText</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
908
|
+
</a>
|
|
909
|
+
</div>
|
|
910
|
+
|
|
911
|
+
<div class="method-description">
|
|
912
|
+
<p>
|
|
913
|
+
Stores the text of an element into a variable. target: The id of the
|
|
914
|
+
element. value: Name of the variable to store the element text into.
|
|
915
|
+
</p>
|
|
916
|
+
<p>
|
|
917
|
+
examples:
|
|
918
|
+
</p>
|
|
919
|
+
<p>
|
|
920
|
+
selenium.storeText("currentDate", "expectedStartDate")
|
|
921
|
+
selenium.verifyValue("startDate",
|
|
922
|
+
"${expectedStartDate}")
|
|
923
|
+
</p>
|
|
924
|
+
</div>
|
|
925
|
+
</div>
|
|
926
|
+
|
|
927
|
+
<div id="method-M000016" class="method-detail">
|
|
928
|
+
<a name="M000016"></a>
|
|
929
|
+
|
|
930
|
+
<div class="method-heading">
|
|
931
|
+
<a href="RubySelenium.src/M000016.html" target="Code" class="method-signature"
|
|
932
|
+
onclick="popupCode('RubySelenium.src/M000016.html');return false;">
|
|
933
|
+
<span class="method-name">storeValue</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
934
|
+
</a>
|
|
935
|
+
</div>
|
|
936
|
+
|
|
937
|
+
<div class="method-description">
|
|
938
|
+
<p>
|
|
939
|
+
Stores the value of an input field into a variable. target: The id of the
|
|
940
|
+
input field. value: Name of the variable to store the field value into.
|
|
941
|
+
</p>
|
|
942
|
+
<p>
|
|
943
|
+
examples:
|
|
944
|
+
</p>
|
|
945
|
+
<p>
|
|
946
|
+
selenium.storeValue("userName", "userID")
|
|
947
|
+
</p>
|
|
948
|
+
</div>
|
|
949
|
+
</div>
|
|
950
|
+
|
|
951
|
+
<div id="method-M000004" class="method-detail">
|
|
952
|
+
<a name="M000004"></a>
|
|
953
|
+
|
|
954
|
+
<div class="method-heading">
|
|
955
|
+
<a href="RubySelenium.src/M000004.html" target="Code" class="method-signature"
|
|
956
|
+
onclick="popupCode('RubySelenium.src/M000004.html');return false;">
|
|
957
|
+
<span class="method-name">type</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
958
|
+
</a>
|
|
959
|
+
</div>
|
|
960
|
+
|
|
961
|
+
<div class="method-description">
|
|
962
|
+
<p>
|
|
963
|
+
Types (enters) text into an input field. This works for text fields, combo
|
|
964
|
+
boxes, check boxes, etc. target: The id of the element where the text
|
|
965
|
+
should be typed. value: The text that will be typed, or the value of the
|
|
966
|
+
option selected (not the visible text).
|
|
967
|
+
</p>
|
|
968
|
+
<p>
|
|
969
|
+
examples:
|
|
970
|
+
</p>
|
|
971
|
+
<p>
|
|
972
|
+
selenium.type("nameField","John Smith"
|
|
973
|
+
</p>
|
|
974
|
+
</div>
|
|
975
|
+
</div>
|
|
976
|
+
|
|
977
|
+
<div id="method-M000005" class="method-detail">
|
|
978
|
+
<a name="M000005"></a>
|
|
979
|
+
|
|
980
|
+
<div class="method-heading">
|
|
981
|
+
<a href="RubySelenium.src/M000005.html" target="Code" class="method-signature"
|
|
982
|
+
onclick="popupCode('RubySelenium.src/M000005.html');return false;">
|
|
983
|
+
<span class="method-name">typeAndWait</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
984
|
+
</a>
|
|
985
|
+
</div>
|
|
986
|
+
|
|
987
|
+
<div class="method-description">
|
|
988
|
+
<p>
|
|
989
|
+
examples:
|
|
990
|
+
</p>
|
|
991
|
+
<p>
|
|
992
|
+
selenium.typeAndWait("textBoxThatSubmitsOnChange",
|
|
993
|
+
"newValue"
|
|
994
|
+
</p>
|
|
995
|
+
</div>
|
|
996
|
+
</div>
|
|
997
|
+
|
|
998
|
+
<div id="method-M000050" class="method-detail">
|
|
999
|
+
<a name="M000050"></a>
|
|
1000
|
+
|
|
1001
|
+
<div class="method-heading">
|
|
1002
|
+
<a href="RubySelenium.src/M000050.html" target="Code" class="method-signature"
|
|
1003
|
+
onclick="popupCode('RubySelenium.src/M000050.html');return false;">
|
|
1004
|
+
<span class="method-name">verifyAlert</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
1005
|
+
</a>
|
|
1006
|
+
</div>
|
|
1007
|
+
|
|
1008
|
+
<div class="method-description">
|
|
1009
|
+
<p>
|
|
1010
|
+
Verifies that a javascript alert was generated and that the text of the
|
|
1011
|
+
alert was as specified. Alerts must be verified in the same order that they
|
|
1012
|
+
were generated. Verifying an alert has the same effect as manually clicking
|
|
1013
|
+
OK. If an alert is generated but you do not verify it, the next Selenium
|
|
1014
|
+
action will fail.
|
|
1015
|
+
</p>
|
|
1016
|
+
<p>
|
|
1017
|
+
NOTE: under Selenium, javascript alerts will NOT pop up a visible alert
|
|
1018
|
+
dialog.
|
|
1019
|
+
</p>
|
|
1020
|
+
<p>
|
|
1021
|
+
NOTE: Selenium does NOT support javascript alerts that are generated in a
|
|
1022
|
+
page’s onload() event handler. In this case a visible dialog WILL be
|
|
1023
|
+
generated and Selenium will hang until you manually click OK.
|
|
1024
|
+
</p>
|
|
1025
|
+
<p>
|
|
1026
|
+
target: The expected text of the alert. value: ignored
|
|
1027
|
+
</p>
|
|
1028
|
+
<p>
|
|
1029
|
+
examples:
|
|
1030
|
+
</p>
|
|
1031
|
+
<p>
|
|
1032
|
+
selenium.verifyAlert("Invalid Phone Number")
|
|
1033
|
+
</p>
|
|
1034
|
+
</div>
|
|
1035
|
+
</div>
|
|
1036
|
+
|
|
1037
|
+
<div id="method-M000030" class="method-detail">
|
|
1038
|
+
<a name="M000030"></a>
|
|
1039
|
+
|
|
1040
|
+
<div class="method-heading">
|
|
1041
|
+
<a href="RubySelenium.src/M000030.html" target="Code" class="method-signature"
|
|
1042
|
+
onclick="popupCode('RubySelenium.src/M000030.html');return false;">
|
|
1043
|
+
<span class="method-name">verifyAttribute</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
1044
|
+
</a>
|
|
1045
|
+
</div>
|
|
1046
|
+
|
|
1047
|
+
<div class="method-description">
|
|
1048
|
+
<p>
|
|
1049
|
+
Verifies the value of an element attribute. An attribute is identified
|
|
1050
|
+
using the syntax <element-locator>@<attribute-name>. This works
|
|
1051
|
+
for all types of element locators. target: A locator string of the format
|
|
1052
|
+
<element-locator>@<attribute-name> value: The expected
|
|
1053
|
+
attribute value.
|
|
1054
|
+
</p>
|
|
1055
|
+
<p>
|
|
1056
|
+
examples:
|
|
1057
|
+
</p>
|
|
1058
|
+
<p>
|
|
1059
|
+
selenium.verifyAttribute("txt1@class", "bigAndBold")
|
|
1060
|
+
selenium.verifyAttribute("//img[@id=’foo’]/@alt",
|
|
1061
|
+
"alt-text")
|
|
1062
|
+
</p>
|
|
1063
|
+
</div>
|
|
1064
|
+
</div>
|
|
1065
|
+
|
|
1066
|
+
<div id="method-M000052" class="method-detail">
|
|
1067
|
+
<a name="M000052"></a>
|
|
1068
|
+
|
|
1069
|
+
<div class="method-heading">
|
|
1070
|
+
<a href="RubySelenium.src/M000052.html" target="Code" class="method-signature"
|
|
1071
|
+
onclick="popupCode('RubySelenium.src/M000052.html');return false;">
|
|
1072
|
+
<span class="method-name">verifyConfirmation</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
1073
|
+
</a>
|
|
1074
|
+
</div>
|
|
1075
|
+
|
|
1076
|
+
<div class="method-description">
|
|
1077
|
+
<p>
|
|
1078
|
+
Verifies that a javascript confirmation dialog was generated and that the
|
|
1079
|
+
text of the dialog was as specified. Confirm dialogs must be verified in
|
|
1080
|
+
the same order that they were generated. By default, the confirm function
|
|
1081
|
+
will return true, having the same effect as manually clicking OK. This can
|
|
1082
|
+
be changed by prior execution of the chooseCancelOnNextConfirmation command
|
|
1083
|
+
(see below). If an confirmation is generated but you do not verify it, the
|
|
1084
|
+
next Selenium action will fail.
|
|
1085
|
+
</p>
|
|
1086
|
+
<p>
|
|
1087
|
+
NOTE: under Selenium, javascript confirmations will NOT pop up a visible
|
|
1088
|
+
dialog.
|
|
1089
|
+
</p>
|
|
1090
|
+
<p>
|
|
1091
|
+
NOTE: Selenium does NOT support javascript confirmations that are generated
|
|
1092
|
+
in a page’s onload() event handler. In this case a visible dialog
|
|
1093
|
+
WILL be generated and Selenium will hang until you manually click OK.
|
|
1094
|
+
</p>
|
|
1095
|
+
<p>
|
|
1096
|
+
target: The expected text of the alert. value: ignored
|
|
1097
|
+
</p>
|
|
1098
|
+
<p>
|
|
1099
|
+
examples:
|
|
1100
|
+
</p>
|
|
1101
|
+
<p>
|
|
1102
|
+
selenium.verifyConfirmation("Invalid Phone Number")
|
|
1103
|
+
</p>
|
|
1104
|
+
</div>
|
|
1105
|
+
</div>
|
|
1106
|
+
|
|
1107
|
+
<div id="method-M000046" class="method-detail">
|
|
1108
|
+
<a name="M000046"></a>
|
|
1109
|
+
|
|
1110
|
+
<div class="method-heading">
|
|
1111
|
+
<a href="RubySelenium.src/M000046.html" target="Code" class="method-signature"
|
|
1112
|
+
onclick="popupCode('RubySelenium.src/M000046.html');return false;">
|
|
1113
|
+
<span class="method-name">verifyEditable</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
1114
|
+
</a>
|
|
1115
|
+
</div>
|
|
1116
|
+
|
|
1117
|
+
<div class="method-description">
|
|
1118
|
+
<p>
|
|
1119
|
+
Verifies that the specified element is editable, ie. it’s an input
|
|
1120
|
+
element, and hasn’t been disabled. target: The element that should be
|
|
1121
|
+
editable. value: ignored
|
|
1122
|
+
</p>
|
|
1123
|
+
<p>
|
|
1124
|
+
examples:
|
|
1125
|
+
</p>
|
|
1126
|
+
<p>
|
|
1127
|
+
selenium.verifyEditable("shape")
|
|
1128
|
+
</p>
|
|
1129
|
+
</div>
|
|
1130
|
+
</div>
|
|
1131
|
+
|
|
1132
|
+
<div id="method-M000038" class="method-detail">
|
|
1133
|
+
<a name="M000038"></a>
|
|
1134
|
+
|
|
1135
|
+
<div class="method-heading">
|
|
1136
|
+
<a href="RubySelenium.src/M000038.html" target="Code" class="method-signature"
|
|
1137
|
+
onclick="popupCode('RubySelenium.src/M000038.html');return false;">
|
|
1138
|
+
<span class="method-name">verifyElementNotPresent</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
1139
|
+
</a>
|
|
1140
|
+
</div>
|
|
1141
|
+
|
|
1142
|
+
<div class="method-description">
|
|
1143
|
+
<p>
|
|
1144
|
+
Verifies that the specified element is not on the page. target: The element
|
|
1145
|
+
that should not be present. value: ignored
|
|
1146
|
+
</p>
|
|
1147
|
+
<p>
|
|
1148
|
+
examples:
|
|
1149
|
+
</p>
|
|
1150
|
+
<p>
|
|
1151
|
+
selenium.verifyElementNotPresent("cancelButton")
|
|
1152
|
+
</p>
|
|
1153
|
+
</div>
|
|
1154
|
+
</div>
|
|
1155
|
+
|
|
1156
|
+
<div id="method-M000036" class="method-detail">
|
|
1157
|
+
<a name="M000036"></a>
|
|
1158
|
+
|
|
1159
|
+
<div class="method-heading">
|
|
1160
|
+
<a href="RubySelenium.src/M000036.html" target="Code" class="method-signature"
|
|
1161
|
+
onclick="popupCode('RubySelenium.src/M000036.html');return false;">
|
|
1162
|
+
<span class="method-name">verifyElementPresent</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
1163
|
+
</a>
|
|
1164
|
+
</div>
|
|
1165
|
+
|
|
1166
|
+
<div class="method-description">
|
|
1167
|
+
<p>
|
|
1168
|
+
Verifies that the specified element is somewhere on the page. target: The
|
|
1169
|
+
element that should be present. value: ignored
|
|
1170
|
+
</p>
|
|
1171
|
+
<p>
|
|
1172
|
+
examples:
|
|
1173
|
+
</p>
|
|
1174
|
+
<p>
|
|
1175
|
+
selenium.verifyElementPresent("submitButton")
|
|
1176
|
+
</p>
|
|
1177
|
+
</div>
|
|
1178
|
+
</div>
|
|
1179
|
+
|
|
1180
|
+
<div id="method-M000018" class="method-detail">
|
|
1181
|
+
<a name="M000018"></a>
|
|
1182
|
+
|
|
1183
|
+
<div class="method-heading">
|
|
1184
|
+
<a href="RubySelenium.src/M000018.html" target="Code" class="method-signature"
|
|
1185
|
+
onclick="popupCode('RubySelenium.src/M000018.html');return false;">
|
|
1186
|
+
<span class="method-name">verifyLocation</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
1187
|
+
</a>
|
|
1188
|
+
</div>
|
|
1189
|
+
|
|
1190
|
+
<div class="method-description">
|
|
1191
|
+
<p>
|
|
1192
|
+
Verifies the location of the current page being tested. target: The
|
|
1193
|
+
expected relative location of the page. value: ignored
|
|
1194
|
+
</p>
|
|
1195
|
+
<p>
|
|
1196
|
+
examples:
|
|
1197
|
+
</p>
|
|
1198
|
+
<p>
|
|
1199
|
+
selenium.verifyLocation("/mypage")
|
|
1200
|
+
</p>
|
|
1201
|
+
</div>
|
|
1202
|
+
</div>
|
|
1203
|
+
|
|
1204
|
+
<div id="method-M000048" class="method-detail">
|
|
1205
|
+
<a name="M000048"></a>
|
|
1206
|
+
|
|
1207
|
+
<div class="method-heading">
|
|
1208
|
+
<a href="RubySelenium.src/M000048.html" target="Code" class="method-signature"
|
|
1209
|
+
onclick="popupCode('RubySelenium.src/M000048.html');return false;">
|
|
1210
|
+
<span class="method-name">verifyNotEditable</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
1211
|
+
</a>
|
|
1212
|
+
</div>
|
|
1213
|
+
|
|
1214
|
+
<div class="method-description">
|
|
1215
|
+
<p>
|
|
1216
|
+
Verifies that the specified element is NOT editable, ie. it’s NOT an
|
|
1217
|
+
input element, or has been disabled. target: The element that should be
|
|
1218
|
+
read-only. value: ignored
|
|
1219
|
+
</p>
|
|
1220
|
+
<p>
|
|
1221
|
+
examples:
|
|
1222
|
+
</p>
|
|
1223
|
+
<p>
|
|
1224
|
+
selenium.verifyNotEditable("creditLimit")
|
|
1225
|
+
</p>
|
|
1226
|
+
</div>
|
|
1227
|
+
</div>
|
|
1228
|
+
|
|
1229
|
+
<div id="method-M000044" class="method-detail">
|
|
1230
|
+
<a name="M000044"></a>
|
|
1231
|
+
|
|
1232
|
+
<div class="method-heading">
|
|
1233
|
+
<a href="RubySelenium.src/M000044.html" target="Code" class="method-signature"
|
|
1234
|
+
onclick="popupCode('RubySelenium.src/M000044.html');return false;">
|
|
1235
|
+
<span class="method-name">verifyNotVisible</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
1236
|
+
</a>
|
|
1237
|
+
</div>
|
|
1238
|
+
|
|
1239
|
+
<div class="method-description">
|
|
1240
|
+
<p>
|
|
1241
|
+
Verifies that the specified element is not visible. Elements that are
|
|
1242
|
+
simply not present are also considered invisible. target: The element that
|
|
1243
|
+
should not be visible. value: ignored
|
|
1244
|
+
</p>
|
|
1245
|
+
<p>
|
|
1246
|
+
examples:
|
|
1247
|
+
</p>
|
|
1248
|
+
<p>
|
|
1249
|
+
selenium.verifyNotVisible("postcode")
|
|
1250
|
+
</p>
|
|
1251
|
+
</div>
|
|
1252
|
+
</div>
|
|
1253
|
+
|
|
1254
|
+
<div id="method-M000026" class="method-detail">
|
|
1255
|
+
<a name="M000026"></a>
|
|
1256
|
+
|
|
1257
|
+
<div class="method-heading">
|
|
1258
|
+
<a href="RubySelenium.src/M000026.html" target="Code" class="method-signature"
|
|
1259
|
+
onclick="popupCode('RubySelenium.src/M000026.html');return false;">
|
|
1260
|
+
<span class="method-name">verifySelectOptions</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
1261
|
+
</a>
|
|
1262
|
+
</div>
|
|
1263
|
+
|
|
1264
|
+
<div class="method-description">
|
|
1265
|
+
<p>
|
|
1266
|
+
Verifies the labels of all options in a drop-down against a comma-separated
|
|
1267
|
+
list. Commas in an expected option can be escaped as ",". target:
|
|
1268
|
+
Locates the drop-down to verify. value: A comma-separated list of option
|
|
1269
|
+
labels.
|
|
1270
|
+
</p>
|
|
1271
|
+
<p>
|
|
1272
|
+
examples:
|
|
1273
|
+
</p>
|
|
1274
|
+
<p>
|
|
1275
|
+
selenium.verifySelectOptions("dropdown2", "John Smith,Dave
|
|
1276
|
+
Bird")
|
|
1277
|
+
</p>
|
|
1278
|
+
</div>
|
|
1279
|
+
</div>
|
|
1280
|
+
|
|
1281
|
+
<div id="method-M000024" class="method-detail">
|
|
1282
|
+
<a name="M000024"></a>
|
|
1283
|
+
|
|
1284
|
+
<div class="method-heading">
|
|
1285
|
+
<a href="RubySelenium.src/M000024.html" target="Code" class="method-signature"
|
|
1286
|
+
onclick="popupCode('RubySelenium.src/M000024.html');return false;">
|
|
1287
|
+
<span class="method-name">verifySelected</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
1288
|
+
</a>
|
|
1289
|
+
</div>
|
|
1290
|
+
|
|
1291
|
+
<div class="method-description">
|
|
1292
|
+
<p>
|
|
1293
|
+
Verifies that the selected option of a drop-down satisfies a specified
|
|
1294
|
+
Select Option Specifier. target: Locates the drop-down to verify. value: A
|
|
1295
|
+
Select Option Specifier that the selected option is expected to satisfy.
|
|
1296
|
+
</p>
|
|
1297
|
+
<p>
|
|
1298
|
+
examples:
|
|
1299
|
+
</p>
|
|
1300
|
+
<p>
|
|
1301
|
+
selenium.verifySelected("dropdown2", "John Smith")
|
|
1302
|
+
</p>
|
|
1303
|
+
</div>
|
|
1304
|
+
</div>
|
|
1305
|
+
|
|
1306
|
+
<div id="method-M000040" class="method-detail">
|
|
1307
|
+
<a name="M000040"></a>
|
|
1308
|
+
|
|
1309
|
+
<div class="method-heading">
|
|
1310
|
+
<a href="RubySelenium.src/M000040.html" target="Code" class="method-signature"
|
|
1311
|
+
onclick="popupCode('RubySelenium.src/M000040.html');return false;">
|
|
1312
|
+
<span class="method-name">verifyTable</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
1313
|
+
</a>
|
|
1314
|
+
</div>
|
|
1315
|
+
|
|
1316
|
+
<div class="method-description">
|
|
1317
|
+
<p>
|
|
1318
|
+
Verifies the text in a cell of a table. The correct syntax of the target is
|
|
1319
|
+
tableName.row.column, where row and column start at 0. target: The table,
|
|
1320
|
+
row, and column specified as table.row.col. value: The expected value of
|
|
1321
|
+
the cell.
|
|
1322
|
+
</p>
|
|
1323
|
+
<p>
|
|
1324
|
+
examples:
|
|
1325
|
+
</p>
|
|
1326
|
+
<p>
|
|
1327
|
+
selenium.verifyTable("myTable.1.6", "Submitted")
|
|
1328
|
+
</p>
|
|
1329
|
+
</div>
|
|
1330
|
+
</div>
|
|
1331
|
+
|
|
1332
|
+
<div id="method-M000028" class="method-detail">
|
|
1333
|
+
<a name="M000028"></a>
|
|
1334
|
+
|
|
1335
|
+
<div class="method-heading">
|
|
1336
|
+
<a href="RubySelenium.src/M000028.html" target="Code" class="method-signature"
|
|
1337
|
+
onclick="popupCode('RubySelenium.src/M000028.html');return false;">
|
|
1338
|
+
<span class="method-name">verifyText</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
1339
|
+
</a>
|
|
1340
|
+
</div>
|
|
1341
|
+
|
|
1342
|
+
<div class="method-description">
|
|
1343
|
+
<p>
|
|
1344
|
+
Verifies the text of an element. This works for any element that contains
|
|
1345
|
+
text. This command uses either the textContent (Mozilla-like browsers) or
|
|
1346
|
+
the innerText (IE-like browsers) of the element, which is the rendered text
|
|
1347
|
+
shown to the user. target: The id of the element to verify. value: The
|
|
1348
|
+
expected text.
|
|
1349
|
+
</p>
|
|
1350
|
+
<p>
|
|
1351
|
+
examples:
|
|
1352
|
+
</p>
|
|
1353
|
+
<p>
|
|
1354
|
+
selenium.verifyText("statusMessage", "Successful")
|
|
1355
|
+
</p>
|
|
1356
|
+
</div>
|
|
1357
|
+
</div>
|
|
1358
|
+
|
|
1359
|
+
<div id="method-M000034" class="method-detail">
|
|
1360
|
+
<a name="M000034"></a>
|
|
1361
|
+
|
|
1362
|
+
<div class="method-heading">
|
|
1363
|
+
<a href="RubySelenium.src/M000034.html" target="Code" class="method-signature"
|
|
1364
|
+
onclick="popupCode('RubySelenium.src/M000034.html');return false;">
|
|
1365
|
+
<span class="method-name">verifyTextNotPresent</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
1366
|
+
</a>
|
|
1367
|
+
</div>
|
|
1368
|
+
|
|
1369
|
+
<div class="method-description">
|
|
1370
|
+
<p>
|
|
1371
|
+
Verifies that the specified text does not appears anywhere on the rendered
|
|
1372
|
+
page. target: The text that should not be present. value: ignored
|
|
1373
|
+
</p>
|
|
1374
|
+
<p>
|
|
1375
|
+
examples:
|
|
1376
|
+
</p>
|
|
1377
|
+
<p>
|
|
1378
|
+
selenium.verifyTextNotPresent("You are now logged in."
|
|
1379
|
+
</p>
|
|
1380
|
+
</div>
|
|
1381
|
+
</div>
|
|
1382
|
+
|
|
1383
|
+
<div id="method-M000032" class="method-detail">
|
|
1384
|
+
<a name="M000032"></a>
|
|
1385
|
+
|
|
1386
|
+
<div class="method-heading">
|
|
1387
|
+
<a href="RubySelenium.src/M000032.html" target="Code" class="method-signature"
|
|
1388
|
+
onclick="popupCode('RubySelenium.src/M000032.html');return false;">
|
|
1389
|
+
<span class="method-name">verifyTextPresent</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
1390
|
+
</a>
|
|
1391
|
+
</div>
|
|
1392
|
+
|
|
1393
|
+
<div class="method-description">
|
|
1394
|
+
<p>
|
|
1395
|
+
Verifies that the specified text appears somewhere on the rendered page
|
|
1396
|
+
shown to the user. target: The text that should be present. value: ignored
|
|
1397
|
+
</p>
|
|
1398
|
+
<p>
|
|
1399
|
+
examples:
|
|
1400
|
+
</p>
|
|
1401
|
+
<p>
|
|
1402
|
+
selenium.verifyTextPresent("You are now logged in."
|
|
1403
|
+
</p>
|
|
1404
|
+
</div>
|
|
1405
|
+
</div>
|
|
1406
|
+
|
|
1407
|
+
<div id="method-M000020" class="method-detail">
|
|
1408
|
+
<a name="M000020"></a>
|
|
1409
|
+
|
|
1410
|
+
<div class="method-heading">
|
|
1411
|
+
<a href="RubySelenium.src/M000020.html" target="Code" class="method-signature"
|
|
1412
|
+
onclick="popupCode('RubySelenium.src/M000020.html');return false;">
|
|
1413
|
+
<span class="method-name">verifyTitle</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
1414
|
+
</a>
|
|
1415
|
+
</div>
|
|
1416
|
+
|
|
1417
|
+
<div class="method-description">
|
|
1418
|
+
<p>
|
|
1419
|
+
Verifies the title of the current page. target: The expected page title.
|
|
1420
|
+
value: ignored
|
|
1421
|
+
</p>
|
|
1422
|
+
<p>
|
|
1423
|
+
examples:
|
|
1424
|
+
</p>
|
|
1425
|
+
<p>
|
|
1426
|
+
selenium.verifyTitle("My Page")
|
|
1427
|
+
</p>
|
|
1428
|
+
</div>
|
|
1429
|
+
</div>
|
|
1430
|
+
|
|
1431
|
+
<div id="method-M000022" class="method-detail">
|
|
1432
|
+
<a name="M000022"></a>
|
|
1433
|
+
|
|
1434
|
+
<div class="method-heading">
|
|
1435
|
+
<a href="RubySelenium.src/M000022.html" target="Code" class="method-signature"
|
|
1436
|
+
onclick="popupCode('RubySelenium.src/M000022.html');return false;">
|
|
1437
|
+
<span class="method-name">verifyValue</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
1438
|
+
</a>
|
|
1439
|
+
</div>
|
|
1440
|
+
|
|
1441
|
+
<div class="method-description">
|
|
1442
|
+
<p>
|
|
1443
|
+
Verifies the value of an input field (or anything else with a value
|
|
1444
|
+
parameter). For checkbox/radio elements, the value will be "on"
|
|
1445
|
+
or "off" depending on whether the element is checked or not.
|
|
1446
|
+
target: The id of the element to verify. value: The expected value.
|
|
1447
|
+
</p>
|
|
1448
|
+
<p>
|
|
1449
|
+
examples:
|
|
1450
|
+
</p>
|
|
1451
|
+
<p>
|
|
1452
|
+
selenium.verifyValue("nameField", "John Smith")
|
|
1453
|
+
</p>
|
|
1454
|
+
</div>
|
|
1455
|
+
</div>
|
|
1456
|
+
|
|
1457
|
+
<div id="method-M000042" class="method-detail">
|
|
1458
|
+
<a name="M000042"></a>
|
|
1459
|
+
|
|
1460
|
+
<div class="method-heading">
|
|
1461
|
+
<a href="RubySelenium.src/M000042.html" target="Code" class="method-signature"
|
|
1462
|
+
onclick="popupCode('RubySelenium.src/M000042.html');return false;">
|
|
1463
|
+
<span class="method-name">verifyVisible</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
1464
|
+
</a>
|
|
1465
|
+
</div>
|
|
1466
|
+
|
|
1467
|
+
<div class="method-description">
|
|
1468
|
+
<p>
|
|
1469
|
+
Verifies that the specified element is both present and visible. An element
|
|
1470
|
+
can be rendered invisible by setting the CSS "visibility"
|
|
1471
|
+
property to "hidden", or the "display" property to
|
|
1472
|
+
"none", either for the element itself or one if its ancestors.
|
|
1473
|
+
target: The element that should be visible. value: ignored
|
|
1474
|
+
</p>
|
|
1475
|
+
<p>
|
|
1476
|
+
examples:
|
|
1477
|
+
</p>
|
|
1478
|
+
<p>
|
|
1479
|
+
selenium.verifyVisible("postcode")
|
|
1480
|
+
</p>
|
|
1481
|
+
</div>
|
|
1482
|
+
</div>
|
|
1483
|
+
|
|
1484
|
+
<div id="method-M000012" class="method-detail">
|
|
1485
|
+
<a name="M000012"></a>
|
|
1486
|
+
|
|
1487
|
+
<div class="method-heading">
|
|
1488
|
+
<a href="RubySelenium.src/M000012.html" target="Code" class="method-signature"
|
|
1489
|
+
onclick="popupCode('RubySelenium.src/M000012.html');return false;">
|
|
1490
|
+
<span class="method-name">waitForValue</span><span class="method-args">(target,value = "&nbsp;")</span>
|
|
1491
|
+
</a>
|
|
1492
|
+
</div>
|
|
1493
|
+
|
|
1494
|
+
<div class="method-description">
|
|
1495
|
+
<p>
|
|
1496
|
+
Waits for a specified input (e.g. a hidden field) to have a specified
|
|
1497
|
+
value. Will succeed immediately if the input already has the value. Is
|
|
1498
|
+
implemented by polling for the value. Warning: can block indefinitely if
|
|
1499
|
+
the input never has the specified value. target: The input field. value:
|
|
1500
|
+
The value the input field must have before continuing.
|
|
1501
|
+
</p>
|
|
1502
|
+
<p>
|
|
1503
|
+
example:
|
|
1504
|
+
</p>
|
|
1505
|
+
<p>
|
|
1506
|
+
selenium.waitForValue("finishIndication", "isfinished")
|
|
1507
|
+
</p>
|
|
1508
|
+
</div>
|
|
1509
|
+
</div>
|
|
1510
|
+
|
|
1511
|
+
|
|
1512
|
+
</div>
|
|
1513
|
+
|
|
1514
|
+
|
|
1515
|
+
</div>
|
|
1516
|
+
|
|
1517
|
+
|
|
1518
|
+
<div id="validator-badges">
|
|
1519
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
1520
|
+
</div>
|
|
1521
|
+
|
|
1522
|
+
</body>
|
|
1523
|
+
</html>
|