Share
Go down
rohit kumar gupta
Active particpant
Active particpant
Posts : 24
Join date : 2012-09-19
Age : 28
Location : abc

edit box attributes

on Sun Oct 28, 2012 4:54 pm
How to determine the max length of an edit box?
tarun3kumar
Master
Master
Posts : 186
Join date : 2012-02-14
http://seleniumtests.com

Re: edit box attributes

on 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')

_________________
Thanks
Tarun K
Free Selenium Training
Back to top
Permissions in this forum:
You cannot reply to topics in this forum