D. Woodill a écrit :
Hello,
Test result
_
Test OpenGoogle Test Search
| open| http://www.google.com|
| verifyTitle| Google|
| type| q| Selenium ThoughtWorks
| verifyValue| q| Selenium ThoughtWorks
| verifyLocation| http://www.goo
I got it working with this.
a = new Assert();
a.assertMatches(expectedValue, actualValue)
I'm not sure if this is the "right" way but this is
how I managed to get it working. Please let me know if
there is a better way.
Jay
--- Jay Donnell <[EMAIL PROTECTED]> wrote:
> Thanks, but that didn't
Hello,
Having read your Selenium-Users messages since
version 4, and I am now trying tests in Selenium
5. My plan was to use the assertLocation to
make sure I was knocking on the right door before
running other test. The assertLocation command didn't
co-operate so I switched to verifyLocation.
Thanks, but that didn't work either. Now I get
Assert.matches is not a funciton
Can someone give a working example of a custom test?
Here is my code.
Selenium.prototype.assertNumReturned =
function(locator, text) {
var expectedValue = text;
var actualValue = '5';
Assert.matches(exp
[EMAIL PROTECTED]
wrote on 06/09/2005 10:20:00 PM:
> Hi all.
>
> I would like to call a test from inside another test, so that I can
> perform some actions which are shared between different tests.
>
> If I understand correctly, there is no way of doing this. Should I
> write my test as a doS
Yes, it is out of date.
Please replace
this.assertMatches(expectedValue,
actualValue);
with
Assert.matches(expectedValue,
actualValue);
Cheers,
David
David Kemp
ThoughtWorks Australia Pty Ltd
http://www.thoughtworks.com
[EMAIL PROTECTED]
wrote on 07/09/2005 07:30:37 AM:
> I copied th