Hi,
I'm a newbee and trying to use Selenium IDE to record my web appliction tests.
Could you help me with the assert text command, I have a field with value in it but that is readOnly.What will be the syntax to verify the value and also to ascertain that the field is readonly.
Many thanks
RKa
Also to add to the above the field is getting populated with a value from some other page. So its not an input field.
but a readonly table field with value in it. How can I get Selenium IDE to assert/verify that field value and to ensure that it is readonly.
Thanks
Ritu
Could you paste the html code of that field (with a couple of lines
above and bellow it).
Hi Santiago,
The code is below
table id="mct_days" cellspacing="1" cellpadding="3" border="0" width="100%">
This is what I'm trying to do,
<tr>
<td>assertText</td>
<td>//table[@id='mct_days']/tbody/tr[2]/td[3]</td>
<td>exact:09:00</td>
</tr>
And I want to now is, how to ensure that this particular field is Readonly.
I'm unable to copy the picture here as it says am not authorised to do it on this website.
Please tell me if you need more details, I'll be happy to provide that.
Many thanks
Ritu
Readonly is only for input fields, tables are to present content, not
to receive. Sometimes certain interfaces emulate that using
javascript, tables and CSS, but the way they work is complex.
Is your AUT in a public domain? If not, could you paste the sourcecode
of the page?
Hi Ritu,
Try with the below code:
<tr>
<td>assertValue</td>
<td>mct_days</td> // Give the textfield name.
<td>exact:09:00</td>
</tr>
or
<tr>
<td>assertValue</td>
<td>//table[@id='mct_days']/tbody/tr[2]/td[3]</td>
<td>exact:09:00</td>
</tr>
U can use 'assertEditable' to verify it is editable or not.
