Issue
I have read only field on Webpage as
<div id="dspIdDescriptionDet-inputEl" class="x-form-display-field" role="input" aria-invalid="false" data-errorqtip="" style="width: 100%;">2010-RR3 XIIIA9 20360726 FLT</div>
When I'm trying to get the display value ("2010-RR3 XIIIA9 20360726 FLT"
) using getText()
or getAttribute("Value")
using Webdriver, its fetching nothing.
error on eclipse:
expected:<2010-RR3 XIIIA9 20360726 FLT> but was:<null>
code:
driver.findElement(By.xpath(".//*[@id='dspIdDescriptionDet-inputEl']")).getAttribute("value"))
Solution
Moving my comment to an answer since it turned out to be the issue...
I would try adding a wait. It may be that the element is present but it takes a bit for the data to populate into the field.
Answered By - JeffC
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.