- rohit kumar guptaActive particpant
- Posts : 24
Join date : 2012-09-19
Age : 34
Location : abc
edit box attributes
Sun Oct 28, 2012 4:54 pm
How to determine the max length of an edit box?
Re: edit box attributes
Tue Nov 06, 2012 3:46 pm
If using Selenium 2 then use getAttribute() method on a WebElement -
- Code:
String maxLength = driver.findElement(By.if("inoutBoxId")).getAttribute('maxlength')
Permissions in this forum:
You cannot reply to topics in this forum
|
|