mima_vasiljevic
10 years agoOccasional Contributor
Failed to enter a string into textbox
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.
Please help, I'm stuck and desperate :(
- Haven't used keyword tests in years but try the following:
In your keyword test when you "Select object" make sure you select the entire form NOT the text box it's self.
1. Click next, then add property name "ReadOnly" value "false".
2. Add a second property like "Name" and "*thenameofyourtextbox*" (with * wild cards).
3. Click next and select the Keys method (if you make it to this point it found an object)
4. Enter the value you want to key in
5. Click Finish