[prev in list] [next in list] [prev in thread] [next in thread]
List: selenium-devel
Subject: [Selenium-devel] Re: [Selenium-users] Help with an idea for testing
From: ddeboer () thoughtworks ! net (Darrell DeBoer)
Date: 2005-04-20 21:00:10
Message-ID: 200504211410.32461.ddeboer () thoughtworks ! net
[Download RAW message or body]
On Thursday 21 April 2005 13:50, David Savill wrote:
> Hi Darrell
>
> Thanks for that, just tried it and it works a charm. I ended up using
> assertLocation so I can use the commands...
>
> <TR><TD>open</TD><TD>pagename.php</TD><TD> </TD></TR>
> <TR><TD>assertPageDisplayedWithoutErrors</TD><TD>pagename.php</TD><TD> 
>;</TD></TR>
>
> Here is my code below if anyone is interested
>
> /*
> * Verifies that the page laoded without any PHP errors
> */
>
> Selenium.prototype.assertPageDisplayedWithoutErrors =
> function(expectedLocation) {
> this.assertLocation(expectedLocation);
> this.assertTextNotPresent("Fatal error:");
> this.assertTextNotPresent("Notice:");
> this.assertTextNotPresent("Warning:");
> this.assertTextNotPresent("An exception has occured");
> this.assertTextNotPresent("Database error");
> }
>
>
> Thanks again
> David.
Excellent!!! I'm hoping to add a "user-commands.jsp" file as standard to
Selenium, so you can keep your custom command code separate from the core
selenium codebase.
--
Darrell DeBoer
ThoughtWorks Australia
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic