05-23-2009, 02:20 PM
How can I check 'Read only fields' in the web applications?? I am testing the application in QTP 9.0.
Thanks
Priya
Thanks
Priya
Checking Read only text box
|
05-23-2009, 02:20 PM
How can I check 'Read only fields' in the web applications?? I am testing the application in QTP 9.0.
Thanks Priya
05-23-2009, 05:26 PM
Though the questions is not much detailed but what I can make out is, use ChidObjects to get all the objects of particular type. Then inside loop check which of them is "read only" (you will get the property using Spy)
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
05-23-2009, 06:09 PM
Hi Ankur thatnks for the reply.
I will explain the question in detail - I am working on validation of web application, so it has one field which is read only, i.e user can not write in to it. So, I am having a testcase to check whether it is read only or not. Like If I am giving some input then it should not be written in to it. How can I check this is QTP?? Thanks Priya
05-23-2009, 06:27 PM
oh..ok.. if there is only one field, then it got much easier (from the solution I suggested above)... Simply "Obect Spy" on the field and find out which property has "read only" attribute. Using GetRoProperty get the value at run time.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
05-27-2009, 11:49 AM
Hi I think there is some RO Property named "Locked" please do check if this property is Available
05-28-2009, 03:40 PM
Hi Priya,
Use the below script to check the text box property Code: Browser("BrowserName").Page("PageName").Frame("FrameName").WebEdit("TextBoxName").GetROProperty("disabled",1)=false Stephen
05-28-2009, 03:57 PM
Hi,
Readonly property will have the value as '0' which will be disabled in the UI. |
« Next Oldest | Next Newest »
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Want to read the data from excel and set read value in the JavaTable | rajeevk7 | 0 | 2,382 |
07-10-2017, 04:20 PM Last Post: rajeevk7 |
|
How can we get the Windows application Text box background color Using UFT 11.53 | Kuppampattu | 3 | 6,184 |
06-06-2017, 11:12 AM Last Post: workrohit08 |
|
Need to Validate Text filed is blank after clicking on the Text box | balak89 | 3 | 5,025 |
09-13-2015, 12:06 AM Last Post: ADITI1992 |
|
I am trying to extract text from a webelement but it is generating blank text scenari | excellentpawan | 2 | 4,793 |
08-13-2013, 08:37 PM Last Post: excellentpawan |
|
spell checking of web objects | kriday | 3 | 4,027 |
07-05-2013, 01:37 PM Last Post: Staff |