Testing_Selenium::addLocationStrategy

Defines a new function for Selenium to locate elements on the page.

For example, if you define the strategy "foo", and someone runs click("foo=blah"), we'll run your function, passing you the string "blah", and click on the element that your function returns, or throw an "Element not found" error if your function returns null. We'll pass three arguments to your function: <ul> <li> locator: the string the user passed in </li> <li> inWindow: the currently selected window </li> <li> inDocument: the currently selected document </li> </ul> The function must return null if the element can't be found.