Monday, November 24, 2008

User extension for gotoLabel command

Hi All,

We can use selenium for loops. Here is the extension for gotoLabel:

Selenium.prototype.doGotolabel = function( label )
{
if( undefined == gotoLabels[label] ) {
throw new Error( "Specified label '" + label + "' is not found." );
}
this.continueFromRow( gotoLabels[ label ] );
};

No comments: