If the textbox is read-only you can't enter any values as per UI is related.
But you can always use .value method to set the value like this:
ff.text_field(:id, 'id').value = "xyz"

But why you want to set value for read-only text box?

On Sat, Jul 11, 2009 at 11:42 PM, kiran yajamanyam <
[email protected]> wrote:

> Even I faced this issue, but it is not 100% reproducible, is there any work
> around for this?
>
> Regards,
> Kinnu
>
> On Sat, Jul 11, 2009 at 3:41 AM, jtk <[email protected]> wrote:
>
>>
>> I'm trying to automate a script that will read the FireFox
>> about:config page. To do this I want to put text into the filter
>> textbox, search for it then search the page for a specific string if
>> it's there put a pass if not put a fail and run it to a spread sheet.
>> The problem I am having is I'm being told that the textbox is read
>> only. I can manually type in the textbox and search for values I just
>> can't seem to do it using Firewatir. Has anyone else had any
>> experience with this?
>>
>> Here is my code so far.
>>
>> require 'firewatir'
>> include FireWatir
>> ff=Firefox.new
>> ff.goto('about:config')
>> ff.text_field(:id, 'textbox').set 'browser.chrome.favicons'
>>
>> The error returned for me is
>>
>> `assert_not_readonly': Textfield id and textbox is read only.
>> (Watir::Exception::ObjectReadOnlyException)
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to