Dashboard > Selenium > ... > Contributed User-Extensions > assertTextBoxMaxSize
Selenium Log In View a printable version of the current page.
assertTextBoxMaxSize
Added by shivkumar, last edited by shivkumar on May 11, 2007  (view change)
Labels: 
(None)

Selenium.prototype.getTextBoxMaxSize = function(locator)
[
var element = this.browserbot.findElement(locator);
return element.maxLength;
]

How to call :

assertTextBoxMaxSize "TextBox Id" 5

This verify if given textbox has max size is 5, return true if it is, fails otherwise.

Incorporate above code into - user-extensions.js file in selenium-core package

Site running on a free Atlassian Confluence Community License granted to OpenQA. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.6 Build:#812 Aug 06, 2007) - Bug/feature request - Contact Administrators