Sorry for generating so much noise on the list, but I'm confused.  I
could really use some help/direction with this.  Thanks, Warren.

The function, verifySelectLength, is defined in user-extension.js.  It
works when used in TestRunner (modified TestSelect to use it) but it
fails with the following error in SeleneseRunner (ruby driven, mozilla
1.7.10 browser, fedora-3). Does this mean that SeleneseRunner doesn't
know about this function?  Or that it's incorrectly defined? or
incorrectly called?


RuntimeError: Wrong content-type:
<?xml version='1.0'?>
<methodResponse>
<fault>
<value><struct>
<member>
<name>faultCode</name>
<value><int>8001</int></value>
</member>
<member>
<name>faultString</name>
<value><string>function verifySelectLength not found</string></value>
</member>
</struct></value>
</fault>
</methodResponse>


+++++++++++++


Selenium.prototype.assertSelectLength = function(locator, num) {
    var element = this.page().findElement(locator);

    Assert.equals(parseInt(num), element.options.length);
};


+++++++++++++
_______________________________________________
Selenium-users mailing list
Selenium-users@lists.public.thoughtworks.org
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users

Reply via email to