Really this is very unusual, for when I use this attribute in an old fashioned 
script of mine, as in the following:

        def validate_topContent_rightColumn()
                rightColumnValid = false
                
                rightColumnValid = (
                        (@watirBrowser.watir.span(:className, 
"paragraphHeader").exists?) and
                        (@watirBrowser.watir.span(:className, 
"paragraphHeader").innerText == "Select Another Buying Guide") and
                        (@watirBrowser.watir.selectBox(:id, 
"ctl00_ContentPlaceHolder1_BuyingGuidesSelector_vsYear").exists?) and
                        (@watirBrowser.watir.selectBox(:id, 
"ctl00_ContentPlaceHolder1_BuyingGuidesSelector_vsBodystyle").exists?) and
                        (@watirBrowser.watir.button(:id, 
"ctl00_ContentPlaceHolder1_BuyingGuidesSelector_ctl00_imageButton").exists?)
                )
                
                return rightColumnValid
        end # End: def validate_topContent_rightColumn()

And then try to use it in a script that employs the TestCase class as in the 
following:

        def test_03_validate_topContent_rightColumn()
                assert($ie.span(:className, "paragraphHeader").exists?)
                assert($ie.span(:className, "paragraphHeader").innerText == 
"Select Another Buying Guide")
                assert($ie.selectBox(:id, 
"ctl00_ContentPlaceHolder1_BuyingGuidesSelector_vsYear").exists?)
                assert($ie.selectBox(:id, 
"ctl00_ContentPlaceHolder1_BuyingGuidesSelector_vsBodystyle").exists?)
                assert($ie.button(:id, 
"ctl00_ContentPlaceHolder1_BuyingGuidesSelector_ctl00_imageButton").exists?)
        end # End: def validate_topContent_rightColumn()

I'd think they would be the same, but the second one produces this error I've 
described above.

Nathan
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6425&messageID=18181#18181
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to