Results 1 to 3 of 3

Thread: IN QTP, How to write the code ?

  1. #1
    Contributing Member
    Join Date
    Nov 2007
    Answers
    88

    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


  2. #2
    Expert Member
    Join Date
    Jan 2007
    Answers
    211

    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


  3. #3
    Contributing Member
    Join Date
    Feb 2006
    Answers
    85

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact