Bindu,
I had the same problem as Jon, but couldn't use the solution you
provided, and I think it's for the same reason as Jon.
I'm not an XPath expert by any stretch, but it seems that Selenium's
XPath searches, or perhaps just Selenium's *Attribute functions (e.g.
storeAttribute), are treating the page "as delivered".
In this case, the DOM is altered by JavaScript after the page is
rendered.
I couldn't quite work out how to get the DOM locator to work, and
wasn't confident it would work any better than the XPath locator.
We ended up solving this with a JavaScript solution.
Here's how we did it. The checkbox chkPopulate fills text input
txtValue when checked, but is unchecked when the page loads.
<tr>
<td>assertEval</td>
<td>window.document.getElementById("txtValue").value</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>chkPopulate</td>
<td></td>
</tr>
<tr>
<td>assertEval</td>
<td>window.document.getElementById("txtValue").value</td>
<td>*My Test Data*</td>
</tr>
Hope this helps Jon, and anyone else who stumbles upon it.
Fishbowler
On Aug 19, 12:29 am, Bindu Laxminarayan <
bindu.laxminara...@gmail.com>
wrote:
> Jon,
>
> You can get the value with the storeAttribute Selenium IDE function.
> GetAttribute for Selenium RC function. See,
http://www.hexbytes.com/category/automation/selenium/selenium-ide/sto...
> for the example.
>
> Thanks
> Bindu Laxminarayan
>
> On Aug 17, 4:29 am, Jon <
jonathanro...@gmail.com> wrote:
>
>
>
> > All,
>
> > I am trying to test that when a tickbox is selected javascript
> > populates adisabledtextbox.
>
> > Selenium doesn't seem to be able to read the data in thedisabled
> > textbox.
>
> > Is there a way in which I can make Selenium read this data?
>
> > Ta
>
> > Jon- Hide quotedtext-
>
> - Show quotedtext-