[
http://jira.openqa.org/browse/WTR-323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=19825#action_19825
]
Ethan commented on WTR-323:
---------------------------
it looks like the only change here is to comment the line
assert_not_readonly
in the set method. (text formatting munged the # character into an ordered
list).
I do not think that this should be changed; the point is to simulate user
interaction and a user can't set a readonly field.
There are simple enough workarounds for this, like
element.ole_object.value="whatever" which will bypass the readonly check. the
#set method, however, should perform the check.
> Remove the check of "readonly" on Text fields
> ---------------------------------------------
>
> Key: WTR-323
> URL: http://jira.openqa.org/browse/WTR-323
> Project: Watir
> Issue Type: New Feature
> Components: Inputs
> Affects Versions: 1.6.2
> Environment: Windows XP, IE 8
> Reporter: Markus
> Attachments: input_elements.rb
>
>
> I think it is necessary to change a value to a text field even if it's read
> only.
> I change the code in the class input_elements:
> # Sets the contents of the text box to the specified text value
> # Raises UnknownObjectException if the object cant be found
> # Raises ObjectDisabledException if the object is disabled
> # Raises ObjectReadOnlyException if the object is read only
> def set(value)
> assert_enabled
>
> # assert_not_readonly
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.openqa.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development