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 .
Answer Posted / 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 |
Post New Answer View All Answers
How to handle the exceptions using recovery secnario manager in quicktest professional (qtp)?
How you calling actions in qtp?
Suggest and Define a solution for an application whose objects are not recognized by UFT?
please any one can explain the keyword driven framework. with gmail example.
What are the differences between table and db checkpoints?
how to use the QTP choose the data from oracle? e.g. i input the identity card NO. this will be add new record in the database ,and now i want get this record's prime key.
how can i call function (which has link with excell sheet at a remote location) within another function
Explain the concept of object repository & how qtp recognizes objects?
What is exact meaning of Database Checkpoint in QTP 9.2 and what are the different types of the database check points?
how will you load the test cases in ddt?
How do you test DLL files using automation Tool QTP?
What is the use of an object spy tool in qtp?
Hi Guys, I want to place all of my values which i am getting it from a loop in to a global shee. For that i had written the script like this For i = 1 to ECOs-1 ECO = List(i).GetROProperty("innertext") DataTable.AddSheet("ECOList") DataTable.GetSheet("ECOList").AddParameter "ECOList",ECO AbortECO = DataTable.GetSheet("ECOList").GetParameter ("ECOList").Value msgbox AbortECO DataTable.GetSheet("ECOList").SetNextRow Using the above script, whenever the loop iterates it is creating new column "ECOLIST" in the sheet called "ECOLIST". It means, the values are displaying in the column wise even though i added the script " DataTable.GetSheet("ECOList").SetNextRow" . The cursor is not moving to the next line. Anybody help me out how to pass the values from script to the excel(Global/Local) sheet. Pls let me know @ nbabu11@gmail.com if you are not clear about the question.
Consider one application is open, clicking one menu will open another application in another browser. QTP does not catch the URL of the second browser(second application). can we capture it ?
If I give some thousand tests to execute in two days what do you do?