what is the script to select 2 or more than 2 options from
a listbox.
Answer Posted / nihar ranjan
Browser().Page().WebList().Select "Value1"
Browser().Page().WebList().ExtendSelect "Value2"
'It will Work
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
which type of testing process are you following in ur company? how to recognize a qtp page?
How to find the difference between 2 dates in qtp?
Explain Descriptive Programming Types with Examples?
How many types of recording facility are available in quicktest professional?
How to use actions in qtp ?
how interviews will be on QTP?
Describe the differences between functions and actions in UFT?
Hi, I got error message as "object does not support this property or method: "Test.Actions" when i execute the following line of script on QTP 9.0 Dim qtApp, qtRep Set qtApp = CreateObject("QuickTest.Application") Set qtRep = qtApp.Test.Actions("Action1").ObjectRepositories Can anyone tell me where i am wrong.
I am a newbie to QTP / Automation testing. I want to develop a script that creates a data file automatically with proper headings using VBScript in QTP.
when I try to run below script in QTP "totalPages" value is 2. But i am getting error message (Type mismatch: 'totalPages' Line (): "For i=1 to totalPages".) totalPages=Browser("Name:=User").Page("Title:=User").WebElem ent("innertext:=of.*").GetROProperty("InnerText") msgbox totalPages For i=1 to totalPages rnum=Browser("Name:=User").Page("Title:=User").WebTa ble("column names:=User Name;ID;Last Name;First Name").GetRowWithCellText("store4") If rnum>0 Then r=rnum Exit for End If Browser("Name:=User").Page("Title:=User").WebElement ("html tag:=A","x:=471").Click MsgBox "Exit" Next
What are the common defects found in your project? (in qtp interview)
What is throw Object?
How will we compare the texts in the two word files using QTP writing the script in Descriptive Programming. Thanks
Can we call qtp test from another test using scripting. Suppose there are 4 tests and I want to call these tests in a main script. Is this possible in qtp?
Is there anyway to automatically update the Datasource name in Database Checkpoints object when we migrate tests to a new release?