Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Post New Answer

More QTP Interview Questions

How does u create new test sets in TD?

1 Answers   Crea,


Hi, How to give drop down values as input [Variable] from data table in QTP? If u know share with me.

3 Answers  


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

5 Answers   Livetek, Virtusa,


If 3 browsers are opened in our system, how to enter the facebook url into second browser by using descriptive programing

3 Answers   Mind Tree,


when there is a task that gets repeated in multiple scripts what do you do in QTP?

2 Answers   Ordain Solutions,


When to use Descriptive programing?

2 Answers   Wipro,


How to open a new test using QTP?

1 Answers  


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

3 Answers  


What is Expert view?

4 Answers  


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?

2 Answers   iSoft,


UFT 12.02 which ALM version will support

0 Answers  


Categories