Is it possible to refer the same object for referring more
than one object that are of different class using the
descriptive programming approach?
Suppose my code is
'To create the object named as obj
Set obj=Description.Create()
'To define the values
obj("title").value="IE"
obj("type").value="text"
obj("html tag").value="INPUT"
'To set the value
Browser("IE").Page("Yahoo").WebEdit(obj).Set "xyz"
Can I refer the "obj" object for the three objects like
Browser,page and webedit objects?
If so how?
No Answer is Posted For this Question
Be the First to Post Answer
How does u create new test sets in TD?
Hi, How to give drop down values as input [Variable] from data table in QTP? If u know share with me.
How can I replace all the text from the QTP script with some other text. Is there any replace all function in QTP Any one can help me
If 3 browsers are opened in our system, how to enter the facebook url into second browser by using descriptive programing
when there is a task that gets repeated in multiple scripts what do you do in QTP?
When to use Descriptive programing?
How to open a new test using QTP?
Hi, I have a login page. To login in that page I need to have a valid username and password, which is stored in database. I imported that table to my DataTable in QTP (Global sheet). Now I need to write a code in qtp so that I can login only with valid username and data. my condition is : I want to get username and password from inputbox(which i did) and click on login button- which should verify the datatable for username and password and if value is present only then lofin else stop the testing. DataTable contains columns : LoginName and Password Code: Rowcount= DataTable.GetSheet("Global").GetRowCount msgbox "RowCount= " &RowCount,1 CurrentRow= DataTable.SetCurrentRow(1) Do Browser("").Page("").Frame("Frame").WebEdit("ctl10$ct l00$ctl00$UserName$ctl").Set DataTable("LoginName",1) Browser("").Page("").Frame("Frame").WebEdit("ctl10$ct l00$ctl00$Password$ctl").Set DataTable("Password",1) Browser("").Page("").Frame("Frame").Link("Login").Cli ck CurrentRow=CurrentRow+1 Loop Until CurrentRow>Rowcount Can anyone help? Thanks, Priya
What is Expert view?
Can we add the objects of an application dynamically?
2 Answers KEN Group, LD College,
What is the condition or scenario that leads the use of object spy in qtp? (while recording we can get all the properties) then wat leads to use this?
UFT 12.02 which ALM version will support