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 |
During execution, how can we capture the data from the pop- up, ie. when any popup comes with some numbers written on it, then how can we capture the value/number that is coming on the pop-up and save in the dynamic file/or other file, even when the run is going on.
what is the difference between call to copy action and call to an existing action
In Test Directory, What are the contents in test case designing? if you prepare in excel sheet how u use thrw Test Directory?
Explain the concept of how quicktest professional identifies object?
explain qtp framework by taking an example?
some times we write user define functions.where we write main and sub program,how,where to insert the functions in qtp?
Pls can anybody send me the Recent Technical and Interview Questions Which were asked in IBM(QTP)Automation PLZZZZZZZZZ
Can the user toggle between using Local OR and shared OR for the same action?
How should I click on the right click menu objects When I trying to add the object properties to the OR.It is showing only Window(Window).Not all the objects of the window. Also while recording I found No script. How to solve this>.
I have recorded a test over web application(with IE6.0) in analog mode. But, while running it my test gets failed. Why? (Note: my systray has 3 open web applications)
How we test the logo or images in the web page using QTP? For example take google page, they change their logo for new year,christmas etc..How we test that? Plz answer this question... Thanks in advance..
Hi All, Can anyone provide me the license for QTP 9.5.... My Email ID: khanbro@rediffmail.com