Results 1 to 11 of 11

Thread: Popup box GetItemsCount Option

  1. #1
    Geek_Guest
    Guest

    Popup box GetItemsCount Option

    Can some one tell me why the popup box does not display GetItemsCount Option when you are writing script for a WebList, but it does display the same for a WinComboBox

    Example :- x = Browser("Dice - Advanced JobSearch").Page("Dice - Advanced JobSearch").WebList("DAYSBACK").GetItemsCount

    Question asked by visitor Sam


  2. #2
    Junior Member
    Join Date
    Oct 2007
    Answers
    9

    Cool Re: Popup box GetItemsCount Option

    Hi,

    GetItemCount method for winlist and wincombbox but not for a weblist, you better use bellow code for weblist,

    x = Browser("Dice - Advanced JobSearch").Page("Dice - Advanced JobSearch").WebList("DAYSBACK").GetROProperty("items count")

    msgbox(x)

    This slove your issue.

    Regards,
    Vasanth


  3. #3

    Re: Popup box GetItemsCount Option

    I agree with Vasanth...

    and if u want to know each item name:


    add this script to above script:

    for i = 0 to x-1

    Browser("Dice - Advanced JobSearch").Page("Dice - Advanced JobSearch").WebList("DAYSBACK").select(i)
    item_name = Browser("Dice - Advanced JobSearch").Page("Dice - Advanced JobSearch").WebList("DAYSBACK").GetROProperty("Text")
    msgbox item_name

    Next


  4. #4
    Junior Member
    Join Date
    Jun 2009
    Answers
    4

    Re: Popup box GetItemsCount Option

    Can someone pls explain ?

    When do I see a Dropdown list in a web application DISPLAYED as a - winlist, weblist or WinComboBox and WinListBox in QTP vb script ?????????


  5. #5
    Junior Member
    Join Date
    Jun 2009
    Answers
    4

    Exclamation Dropdown list displayed as WinComboBox and WinListBox in QTP vb script

    Can someone pls explain ?

    When do I see a Dropdown list in a web application DISPLAYED as a - winlist, weblist or WinComboBox and WinListBox in QTP vb script ?????????


  6. #6
    Junior Member
    Join Date
    Jun 2009
    Answers
    4

    Re: Popup box GetItemsCount Option

    getitemscount does not work for me pls help script : k = browser("[sitename]::").page("[sitename] ::").weblist("subcat").getitemscount msgbox k


  7. #7
    Expert Member
    Join Date
    Apr 2008
    Answers
    1,859

    Re: Dropdown list displayed as WinComboBox and WinListBox in QTP vb script

    Quote Originally Posted by miclade View Post
    Can someone pls explain ?

    When do I see a Dropdown list in a web application DISPLAYED as a - winlist, weblist or WinComboBox and WinListBox in QTP vb script ?????????
    hi friend,

    I am not able to understand what you are expecting will you please let me know precisely.

    Thanks,
    Deepa

    Arise Awake And Stop Not Till The Goal Is Reached

  8. #8
    Junior Member
    Join Date
    Jun 2009
    Answers
    4

    Re: Popup box GetItemsCount Option

    What is the difference btw winlist, weblist or WinComboBox and WinListBox .
    In expertview ,
    Webapp shows drop down list box as WEBLIST
    Windowsapp shows dropdown list as WINLIST

    WinComboBox
    and WinListBox


  9. #9
    Expert Member
    Join Date
    Apr 2008
    Answers
    1,859

    Re: Popup box GetItemsCount Option

    hi friend,

    Quote Originally Posted by miclade View Post
    What is the difference btw winlist, weblist or WinComboBox and WinListBox .

    WinComboBox
    and WinListBox
    Windowsapp shows dropdown list as WINLIST
    Winlist is Windows list

    Webapp shows drop down list box as WEBLIST
    WebList is Web applciation list that's it.

    Thanks,
    Deepa

    Arise Awake And Stop Not Till The Goal Is Reached

  10. #10

    Re: Popup box GetItemsCount Option

    Hi,

    I'm new to QTP can anybody tell how to write functions in QTP & some examples would help me out to understand & how we link this to framework.

    Thanks in advance


  11. #11
    Expert Member
    Join Date
    Apr 2008
    Answers
    1,859

    Re: Popup box GetItemsCount Option

    Quote Originally Posted by kiran.qualitytesting View Post
    Hi,

    I'm new to QTP can anybody tell how to write functions in QTP & some examples would help me out to understand & how we link this to framework.

    Thanks in advance
    hi friend,

    You can write the function and save it as VB script (.vbs) file and you can attach with your test so that the function will be available in your test using function call statement you can call the function where needed.

    Thanks,
    Deepa

    Arise Awake And Stop Not Till The Goal Is Reached

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