Any element that 'contains' an attribute with specific text:
// a [ contains (@ href ,' resources.doc& ')]
<a title= "Attach a copy" href= "localhost:8080/resources.doc&sakai_action=doAttachitem" >Attach a copy</a>
An a element that contains an href attribute with the text resources.doc& anywhere in it.
In this case the title attribute could not be used because there was more than one element on the page with the title value of Attach a copy .
Test Suite Selenium IDE allows for creation of Test Suites right in the IDE.
Test Suite Example
Selenium RC and TestNG
Sakai Test Suite
Selenium Remote Control
A server which automatically launches and kills browsers, and acts as a HTTP proxy for web requests from them.
Client libraries for your favorite computer language.
TestNG is a testing framework inspired from JUnit and NUnit but introducing some new functionality that make it more powerful and easier to use, such as:
JDK 5 Annotations (JDK 1.4 is also supported with JavaDoc annotations).
Flexible test configuration.
Support for data-driven testing (with @DataProvider).
Support for parameters.
Allows distribution of tests on slave machines.
Powerful execution model (no more TestSuite).
Supported by a variety of tools and plug-ins (Eclipse, IDEA, Maven, etc...).
Embeds BeanShell for further flexibility.
Default JDK functions for runtime and logging (no dependencies).
Dependent methods for application server testing.
TestNG is designed to cover all categories of tests: unit, functional, end-to-end, integration, etc..
Sakai Test Suite Kick off test_suite from the command line with two commands: ant launch-remote-control ant -Dsuite=sakai-suite-setup-27.xml