Failed to enter a string into textbox (WPF application)
In WPF application I have two text box fields - first field property is a isReadOnly=False and second textbox has property isReadOnly=True. While recording a keyword tests in first field I enter some string, leave second as it is and then I hit save button.
When I try to replay that test texbox where it needs to be typed that string has been skipped and the value tried to enter that other field which property is isReadOnly=true. Test fails with explanation " Failed to enter text in edit box,since it is a read only".
Seems like ID's of those text fields are dynamic. Do you have any idea what to do with that.
So I tried with different approach - I used FindObject. In FindObject I entered a textbox class name property and isReadOnly=false property. It didnt found any methods under it, so I guessed that some other stuff is going on - I got an error message Alias. ... .parentObject of textbox cannot be found.
What to do with that...?? Do you have any idea?
Seems TestComplete not able to find the parent object itself to find the text boxes you have mentioned. Try to check whether the parent elements exists or not before accessing the child text boxes. Hope you will solve.
parentObject of textbox cannot be found
Thank/Like to help others if my input helped you !!!
I am speaking for myself, not for my employer nor any one.
Tags for this Thread