Search
Display results as :
Advanced Search
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

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

edit box attributes Empty edit box attributes

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

edit box attributes Empty 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