Forum Discussion

rhsou123's avatar
rhsou123
Contributor
8 years ago

"Read only" Error for Oracle forms test

Hi,

 

I'm testing an Oracle forms appliation using VBscript Unit.

I got the error "failed to enter text in the edit box, since it is read-only". 

I added a delay, I tried by recording the steps and it is not working too.

 

Any help please, how I can deal with this error. I used the hierarchy to get the object and it is working for the others textbox but not for this one.

 

set z = Sys.Browser("iexplore").SwingObject("...","...")....

 

 

1 Reply

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    The error means that any calls to "SetText" or "Keys" to that box cannot complete because the text box is not in an editable mode. Potentially, this means that something failed earlier in your test script, especially if the text box you are attempting to access requires other data on the form to be entered before it is enabled.  This, potentially, can be caused by calls to SetText on edit fields that are not firing "OnClick" or "OnExit" event handlers.

    Try changing your calls from "SetText" to "Keys" and see if this corrects your problem.