Hi .. i want to write the script for the combo nox list .
For example if any combo box having a multipul itme. So
how can i retrive each item for each iteration ? help me out .
Answers were Sorted based on User's Feedback
Answer / sandipgami84
Suppose u have Countries Combo, u can use below script
Set Browser_Page = Browser("title:=").Page("title:=.*")
cnt_CountryList = Browser_Page.WebList("html
id:=Countries").GetROProperty ("items count")
MsgBox(cnt_CountryList)
If cnt_CountryList >= 0 Then
Dim For_i
For For_i = 0 to cnt_CountryList -1
Browser_Page.WebList("html id:=Countries").Select For_i
MsgBox(Browser_Page.WebList("html
id:=Countries").GetROProperty("value"))
wait(1)
Next
Thanks,
Sandip, 09714177088
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / bindu kumar
x=Browser("name:=xxxx").page("title:=xxxx").WebList
("name:=statusVI").GetROProperty("items count")
For i = 1 to x
allitems=Browser("name:=xxxx").page("title:=xxx
x").WebList("name:=statusVI").GetItem(i)
msgbox allitems
Next
Is This Answer Correct ? | 1 Yes | 0 No |
Where are the snapshots stored?
how will you handle the situation when object is not caputred during record?
Which recording modes need more memory?
What is the another extention name of library file.If that is exist than what's the differnce between them.
Why do we use breakpoints in QTP?
I'm having a problem to get the status(pass or fail) during runtime for every iteration ran, and must get the results stored to an excel sheet if possible.
what is the script to select 2 or more than 2 options from a listbox.
How do I get the QTP scripts result in xml format by using vb script function?
can we take 'dim my pen is good' as a paramerter
what is descriptiveprograming? how to do object identification thrugh Descriptive and is possible smart identification or not
How would you export a script from one pc to another in qtp?
We have an action attached with the library file in QTP. When I will click on run button,which file is going to be executed first a)Action b)Library