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

 Print  |  
Question:  In Quick Test Pro 8.2

1. 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 Computer
when i press + Symbol My Computer will Expand that format like
-- My Computer
Drive C
Drive D
At That scenario i will perform these action
a. Expand My Computer View by selecting + Icon
b. After expanding i will select Drive D
While doing above conditions how script will generate plz let you find ASAP and mail me back. Don't forget.




July 07, 2007 01:34:12 #4
 sumeet   Member Since: Visitor    Total Comments: N/A 

RE: In Quick Test Pro 8.21. While Recordin...
 

Hi,

Your Window Contains 4 tabs, So it is Better U can differentiate those Tabs by  using Set To Property.


It is for First Tab

Javawindow("window name").JavaInternalFrame("Frame name").JavaTab("Tab name').Set To Property("index",1")

Javawindow("window name").JavaInternalFrame("Frame name").JavaTab("Tab name').click

similary for 2nd Tab


Javawindow("window name").JavaInternalFrame("Frame name").JavaTab("Tab name').Set To Property("index", "2")

Javawindow("window name").JavaInternalFrame("Frame name").JavaTab("Tab name').click

So It is Better U can Differentiate those Tabs.

     

 

Back To Question