How to change the run-time value of a property for an
object in QTP?
Answer Posted / madhava
use 'SetToProperty' method of an object to change the
property of object at run-time....
example :
browser(" ").page(" ").winedit
("username").setToProperty "Property", Value
Property can be any physical property of the object such as
Name, type, color........
| Is This Answer Correct ? | 11 Yes | 3 No |
Post New Answer View All Answers
How software tester can use constants and variables in scripts?
What is ObjectParamater?
who QTP recognizes the object stored in object repository?
An action has both shared and local OR associated with it and both have the same object in them. In the test which one will be considered?
how to i add the values using the check points property?( i.e valid data(for valid data it's giving the footer message:value is added) and for invalid data: special chars, spaces,Duplicates and null values (in my page when ever we enter special chars, spaces and null values, it's giving the proper warning message and for Duplicates it's giving the footer message:"value already exists)?
How to upload excel files into Quality Center using QTP Script and how to delete excel files from Quality?
I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format. Hence, if possible, kinldy mail PDF file to my mail-ID: sushmapokhriyal79@gmail.com
How can you close the second opened browser?
Where is the Bitmap checkpoint information stored?
write the vb script for call to new action in qtp?
How to use Environment parameterization? Explain with an example.
Give me detailed theritical explanation about keyword driven, hybrid framework, environment variables, hybrid frame work
is there any addin for remedy user application
hi guys, pls tell me for testing institution training hub, hitech city is best or not?
when I try to run below script in QTP "totalPages" value is 2. But i am getting error message (Type mismatch: 'totalPages' Line (): "For i=1 to totalPages".) totalPages=Browser("Name:=User").Page("Title:=User").WebElem ent("innertext:=of.*").GetROProperty("InnerText") msgbox totalPages For i=1 to totalPages rnum=Browser("Name:=User").Page("Title:=User").WebTa ble("column names:=User Name;ID;Last Name;First Name").GetRowWithCellText("store4") If rnum>0 Then r=rnum Exit for End If Browser("Name:=User").Page("Title:=User").WebElement ("html tag:=A","x:=471").Click MsgBox "Exit" Next