Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
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 function ...
|
|||||||
|
|||
|
IN QTP, How to write the code ?
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 function in QTP |
| Sponsored Links |
|
|||
|
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 | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how should we write the script? | abraham_ahmed | Testing Issues | 7 | 01-25-2010 12:52 AM |
| Write an SQL query | JobHelper | SQL | 2 | 09-22-2008 08:35 AM |
| Write bug report | jainbrijesh | Testing Issues | 2 | 03-09-2008 07:38 AM |
| Where should I write the JDBC code | chandu_7k | JSP | 7 | 07-04-2007 10:37 PM |
| Which event of the grid should we use to write code | Geek_Guest | VB.NET | 0 | 04-09-2007 05:23 AM |