angularjs - Assert the text present in a disable text box using selenium webdriver -


i have following text field , disabled. have text value 'city1'. need verify 'city1' displayed in text box. .getattribute('value') , .gettext not working.

 <input type="text" autofocus="" disabled="disabled" ng-model="sitedetails.streetaddr" class="form-control ic-filterdropdown ng-pristine ng-valid"> 

you can try yourelement.getattribute("textcontent / innerhtml / innertext /value").. 1 of should work


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -