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
[b]Question asked by visitor Sam[/b]
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
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
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 ?????????
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 ?????????
Re: Popup box GetItemsCount Option
[b]getitemscount does not work for me pls help[/b] script : k = browser("[sitename]::").page("[sitename] ::").weblist("subcat").getitemscount msgbox k
Re: Dropdown list displayed as WinComboBox and WinListBox in QTP vb script
[QUOTE=miclade;53977]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 ?????????[/QUOTE]
hi friend,
I am not able to understand what you are expecting will you please let me know precisely.
Thanks,
Deepa
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
Re: Popup box GetItemsCount Option
hi friend,
[QUOTE=miclade;53985]What is the difference btw winlist, weblist or WinComboBox and WinListBox .
WinComboBox
and WinListBox[/QUOTE]
[QUOTE]Windowsapp shows dropdown list as WINLIST [/QUOTE]
Winlist is Windows list
[QUOTE]Webapp shows drop down list box as WEBLIST [/QUOTE]
WebList is Web applciation list that's it.
Thanks,
Deepa
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
Re: Popup box GetItemsCount Option
[QUOTE=kiran.qualitytesting;54301]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[/QUOTE]
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