Default value in Edit Box when Check Box is checked - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Default value in Edit Box when Check Box is checked (/Thread-Default-value-in-Edit-Box-when-Check-Box-is-checked) |
Default value in Edit Box when Check Box is checked - nacchio - 10-05-2011 Hello, in my GUI when I checked a checkbox (A) the GUI set an Edit Box (B) with a default value. I have create an Action in QTP that checked A and set the value of B (parameterized); however, sometimes, the value of B is the default value. Is possible, in the case to set default value for B, skip the instruction setting or not? If yes how? Thanks in advance Andrea Nothing, I resolved, I add a column "DEFAULT VALUE" if the cell contains YES skip the setting phase otherwise set the new value RE: Default value in Edit Box when Check Box is checked - supputuri - 10-05-2011 Hi, You can handle this in your code along with your test data. If you want to consider the default value then either you can pass the "" value and handle that in script. Code: If strValue = "" or lcase(strValue) = "default" Then 'Default value Let me know if you need any further info. RE: Default value in Edit Box when Check Box is checked - sree.85 - 07-18-2012 try to get the RO properties of the Check Box if the check box is enabled then set the value to edit box to default value |