No, not really. Here's a function, assertSelectOptions, from selenium- api.js that I modified and it works fine - I changed it to display the default mesaage
I copied 'assertSelectOptions' to the end of selenium-api.js with the name 'assertListLength' and it's still not seen - I get the same error. I even tried defining my asert with an empty function body so there couldn't be a syntax error - failed with same error I'm using mozilla 1.7.10 on a fedora-3 box with a two week old copy of selenium from svn. This apparently works for everyone else so there must be something simple that I'm overlooking +++++[ ERROR returned when I try to call assertListLength]+++++ 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 assertListLength not found</string></value> </member> </struct></value> </fault> </methodResponse> +++++++++++++[ Asert.equals works here ]++++++++++++++++++++++++++++++++ /** * Verify the label of all of the options in the drop=down. */ Selenium.prototype.assertSelectOptions = function(target, options) { var element = this.page().findElement(target); var expectedOptionLabels = options.parseCSV(); // Assert.equals("Wrong number of options", // expectedOptionLabels.length, element.options.length); Assert.equals(expectedOptionLabels.length, element.options.length); for (var i = 0; i < element.options.length; i++) { Assert.matches(expectedOptionLabels[i], element.options [i].text); } }; On or about Fri, 23 Sep 2005 17:06:54 +0200 "Alexandre Garel" <[EMAIL PROTECTED]> allegedly wrote: > > >// Compare length of select list to num > >Selenium.prototype.assertListLength = function(locator, num) { > > > > var element = this.page().findElement(locator); > > > > var expectedValue = num; > > > > var actualValue = element.options.length; > > > > Assert.equals(expectedValue, actualValue); > >}; > > > > > > > I see Assert.equals. > isn't it the same problem as > http://lists.public.thoughtworks.org/pipermail/selenium-users/2005-September/000959.html > ? > Alex. > _______________________________________________ Selenium-users mailing list Selenium-users@lists.public.thoughtworks.org http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users