zaheer wrote:
> No. The condition here is :
>
> If the text field has any value, i will continue with the next page. If it
> has null value i need to enter the data there.
Hi Zaheer, what does your script look like so far?
What Zeljko gave you should generally work to identify a field that
doesn't have any text in it.
It sounds like you might be looking for help with the if logic as well,
something like
if ie.text_field(:index, 1).text do
ie.text_field(:index, 1).text("my new text here")
end
Note also that Zeljko's illustration assumes you are finding the
text_field by index. He did that for illustration since you didn't
mention how you are finding the text field, but do be sure to substitute
whatever way you prefer for identifying the text_field.
If I missunderstood you or if the above doesn't work, please write back
with a snippet of your broken code plus the html source of the
text_field you want to check.
Jeff
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general