Posts: 1,199
Threads: 5
Joined: Nov 2008
Reputation:
0
09-10-2009, 03:52 PM
Hi bebeo,
It will help if you can explain your query a bit describing exactly what do you want to do with text box ?
It seems you want to check whether a webedit object is enabled or not, you can do this using GetROProperty for the object.
Posts: 1,199
Threads: 5
Joined: Nov 2008
Reputation:
0
09-11-2009, 11:12 AM
Enabling or diabling through QTP is not possible, until unless the AUT has any feature to do so.
'disabled' and 'readonly' are read only properties of WebEdit which can not be changed.
Posts: 12
Threads: 3
Joined: Sep 2009
Reputation:
0
09-11-2009, 01:09 PM
How about you have method to handle on QTP? when click in textbox display Dialog?
Posts: 1,199
Threads: 5
Joined: Nov 2008
Reputation:
0
09-11-2009, 01:17 PM
Very Sorry, But your question is not clear enough.Can you please explain the issue?
Posts: 12
Threads: 3
Joined: Sep 2009
Reputation:
0
09-11-2009, 02:34 PM
Thanks!
I have case successful Implementation
Posts: 1,199
Threads: 5
Joined: Nov 2008
Reputation:
0
09-11-2009, 02:42 PM
It is always a good idea, if you put your solution here, if you got it. It may help others.
I would like to know how you have changed the disabled property of edit box.
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
09-11-2009, 04:16 PM
Bebeo -
You will need to have some patience to obtain solutions. From your explanations it was clear Saket was not able to understand you. And, Saket was correct in letting you know that QTP as a tool cannot alter the Run Time properties of any Object.
From your explanation above i understand that you wanted to enable a webedit and set values into it. If so, Sorry !!! QTP does not do that. SetTOProperty only alters the Static property for your reference buffer and does not alter the AUT values.
I see you ask about click on a webedit brings up a dialog ?? What did you actually mean ?? You want to click on a disabled webedit field and if did so a dialog would appear ??
Either case, now that you obtained the solution i am happy about it. In your future interaction please try to include as much information as possible.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.