GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Tech FAQs  >  QTP
Go To First  |  Previous Question  |  Next Question 
 QTP  |  Question 349 of 650    Print  
In one of the popup window,
1.I have recorded two edit fields by selecting them from a drop down box and after I have selected the options, 'INSERT' field need to appear. But when I am running those steps the option that I have selected is not shown up but the default options are shown up and 'INSERT' button too does not shown up. How to make sure that the selected fields are displayed along with the 'INSERT' link.
When I am recording it is recorded as:
Browser().Page().WebTable().WebElement(Option name that I have selected).click

2. How to differentiate between two or three links with same name, like "DELETE", when the TYPE is None and not Index. When I am putting it in a loop, only one link gets deleted which is associated to one row. For other rows the 'Object not found' message is displayed


  
Total Answers and Comments: 2 Last Update: February 11, 2007     Asked by: Sujatha Kandikonda 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
February 07, 2007 02:24:32   #1  
msusmitha Member Since: November 2006   Contribution: 31    

RE: In one of the popup window, 1.I have recorde...
hi thi is susmithado u know the use of pop up windows.it is used for overcoming the problematic situation in ur eg u r nt getting the insert buttons enabled properity. for that u have to check the enable properity first by using the standard check point and then if u want to click on that button u specify the object state, in that u have to write a function call which is having the state of that bject. do thatautomatically u will get the solution.for second one u r using the links which is having the same name. while running u r getting that first row passes after that your test fails that means in the first row u deleted the link how it can belinked with net one because it is having the same name.i think u understoodmadhav_sus@yahoo.co.in
 
Is this answer useful? Yes | No
February 10, 2007 18:40:15   #2  
Bhamini        

RE: In one of the popup window, 1.I have recorde...
Hi,i am not able to understand the question correctly. but if i get it right, then you want to use the same object name, but itrs property's value change depending upon your previous selections.such as if you select option 1, then link1 is displayed,.



if option 2 is selected then link is 2. but instead of recording 2 objects (different links) you want to use one object.what you can do is, use the method SetTOProperty(). this method will set the test object's property value at runtime.what you can do is



If "you have selected option 1" Then

Browser("abc").Page ("abc").Link("abc").SetTOProperty "value", "link1"

Else

Browser("abc").Page ("abc").Link("abc").SetTOProperty "value", "link2"

End If




I have used value as an example. you have to specify the appropriate property and the second parameter is the name.



this should help.

 
Is this answer useful? Yes | No

 Related Questions

Hi I am new to load testing .Currently i am using Load runner 8.2. i have recorded a script for login screen with some UID/PWD.In load runner Controller i have selected 100 Vusers,and i the run script.My question is :1.)Is the same script runs 100 times for same UID/PWD what i have entered during Recording.2.)If my data base contains only 50 users.Selecting 100 Vusers is a valid case?.3.)If i have selected 100 Vusers,is it necessary to enter 100 UID/PWD.Regards,vivek
Read Answers (8) | Asked by : vivek

In Quick Test Pro 8.21. While Recording/writing the Script i want to know the " Selecting Tab Position Action Script".Eg: Window contains 4 tab positions i would like to select 2 tab position at that time how script will come. plz write the script and send me. 2. How can i generate and select Tree View in Programatically. Eg: Mycomputer Contains all drives information like as below. +My Computerwhen i press + Symbol My Computer will Expand that format like-- My Computer Drive

Hello,I'm using QTP 8.2. and I want to test an Application which is designed with Oracle Forms 10 g.Before installing the Oracle Addin for QTP 8.2. I was able to open the Application with QTP and IExplorer 6.0.After Installing the Oracle Addin for QTP 8.2. I wasn't able to open the Application neither with QTP nor ÍExplorer.I only installed the Addin. I haven't installed any upgrade or patch!The following failure is shown in the JAVA Console after starting the application:java.lang.VerifyError:
Read Answers (5) | Asked by : SPortz

How to use automation object to load the library files in QTP. I tried to use this stmt" set App = createobject("Quicktest.Application")App.Test.Settings.Resources.Libraries.Add ("F:QTPrepository.vbs"),1 ".could u pls help how to add it by script itself? what is executefile concept? is it workaround to my question?

How can we terminate the application when we encounter a problem or defect in our application while we running the application in Load Runner,Win Runner and QTP.
Read Answers (3) | Asked by : Rohan

When i am adding a object to the repository it does not add it to the existing parent page (flight cofirm mercury) instead it creates a new parent page(flight confirm mercury_2) and adds object under it.
Read Answers (3) | Asked by : kiran1

I have 10 Edit Boxes in my application. i Named them as Text1, Text2, Text3...Text10. Now i want to set values in these Text Boxes using Loop Statement. Can i Usefor i=0 to 10 browser("b1").page("p1").WebEdit("Text" & i).set "value" &inext**********Is it acceptable WebEdit("Text"&i) ? I am getting error here.Any suggestions?
Read Answers (6) | Asked by : Nagelli Anil Kumar

Latest Answer : In QTP 9.2, there is an option to export to XML filefrom Object repository manager, File-> Export to XML option is there.Is this what you wanted or something elseRegards,Meena ...
Read Answers (3) | Asked by : Nagelli Anil Kumar

Hi All,my Object name is "Login".my code is:browser("B1").page("P1").WebEdit("Login").Set "Admin"CAN I USE IT LIKE THIS?myObj = "Login"browser("B1").page("P1").WenEdit (myObj).Set "Admin"It is not working. How to do in this situation?
Read Answers (11) | Asked by : Nagelli Anil Kumar

Latest Answer : hai,u r automate a java application u need to addin manager.this indicates which technology we r using marked on that. ...
Read Answers (3) | Asked by : bunny


 Sponsored Links

 
Related Articles

ODP.NET - OracleCommand Object

ODP NET More About the OracleCommand Object Till now we have seen OracleCommand working with OracleDataReader OracleCommand is not simply meant for OracleDataReader It has got a lot of functionality for itself Let us see few of the most commonly used features of OracleCommand in this section We will
 

ODP.NET - Retrieving Multiple Rows on to the Grid

ODP NET Retrieving Multiple Rows on to the Grid In the previous section we tried to retrieve only one row using OracleDataReader In this section we will try to retrieve more than one row or a result set and populate a DataGridView on a WinForm mosgoogle The following code lists out the details of al
 

High Level Data Link Control (HDLC)

High Level Data Link Control HDLC The High Level Data Link Control protocol was developed by the International Organization for Standardization ISO It is used for switched and non switched networks and is a bit oriented architecture The High Level Data Link Control has been accepted and used widel
 

Synchronous Data Link Control (SDLC)

Synchronous Data Link Control SDLC The SDLC or the Synchronous Data Link Control was first developed by IBM It is basically a linked layer protocol which can be used with systems network architecture or the SNA environment In this system all the functions in a network can be defined and slotted into
 

jQuery Expanding and Collapsing Table Rows

jQuery Expanding and Collapsing Table Rows The expanding and collapsing behavior added earlier also conflicts with our filters If a section is collapsed and a new filter is chosen then the matching items are displayed even if in the collapsed section Conversely if the table is filtered and a section
 

jQuery Collecting Filter Options

jQuery Collecting Filter Options from Content Now we need to expand the filter options to cover the range of available topics in the table Rather than hard coding all of the topics we can gather them from the text that has been entered in the table We can change the definition of keywords to read mo
 

jQuery Collapsing and Expanding Table Rows

jQuery Collapsing and Expanding Table Rows When large sets of data are grouped in tables as each year s set of articles are in our News page collapsing or hiding a section s contents can be a convenient way to get a broad view of all of the table s data without having to scroll so much mosgoogle To
 

jQuery - Marking the Current Page

Learning jQuery Marking the Current Page Our pager can be made more user friendly by highlighting the current page number We just need to update the classes on the buttons every time one is clicked mosgoogle geshibot lang php" var pager ; for var page 0; page numPages; page pag
 

Microsoft AJAX Library - Creating Object Members on the Fly

Creating Object Members on the Fly One major difference between OOP in C and ASP NET and OOP in JavaScript is that JavaScript allows creating object members on the fly" This is true for objects and classes that you create yourself and also for JavaScript s own objects and types as well He
 

Microsoft AJAX Library - Object-Oriented JavaScript

Object Oriented JavaScript Objects and classes are implemented differently in JavaScript than in languages such as C VB NET Java or C However when it comes to using them you ll feel on familiar ground You create objects using the new operator and you call their methods or access their fields using t
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape