Prepare for your Next Interview
This is a discussion on IN QTP, How to write the code ? within the QTP forums, part of the Software Testing category; In screen name X having on e list box with 3 values a,b,c . i need to print one value a or b or c? Where does using Split ...
|
|||
|
Re: IN QTP, How to write the code ?
1. WebList
Browser().Page().WebList().Select "#1"..............Index OR Browser().Page().WebList().Select "a"................Value 2. Split a= "I have QTP Installed" b= Split(a," ") MsgBox b(2)...........OutPut >> QTP regards, Nawab |
| The Following User Says Thank You to NawabShaikh For This Useful Post: | ||
|
|||
|
Re: IN QTP, How to write the code ?
ur Q is not very specific or m not getting it...
![]() if you want to get the values from a dropdown and print it then you can use 1. do a getroproperty("all items") 2. and then use the split with delimeter as ";" this will give you an array with all the elements in that dropdown and then play wid then as n how you want. ![]() Hope this will help you... Kunal. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Write an SQL query | JobHelper | SQL | 2 | 09-22-2008 09:35 AM |
| Write bug report | jainbrijesh | Testing Issues | 2 | 03-09-2008 08:38 AM |
| Where should I write the JDBC code | chandu_7k | JSP | 7 | 07-04-2007 11:37 PM |
| Which event of the grid should we use to write code | Geek_Guest | VB.NET | 0 | 04-09-2007 06:23 AM |
| how should we write the script? | abraham_ahmed | Testing Issues | 4 | 02-15-2007 05:05 AM |