we have one text box and one list box(list box appear in
same page or another page) what ever the text enter in text
box that must be displyed in list box as first one.
for example if we enter 10 in text box that is the 1st item
in list box . after that we enter 11 then 11 is the 1st item
and 10 is 2nd item. the maximum limit of list box is 10
items. if we enter 11th item the 10th item is deleted and
llth one is add as 1st one and 9th one goes to 10th position
part2:maore than the answer for this question i want the
the reason why testers go for this kind of risk.what is the
use of we testers having these kind of attempts.is that
not the problem with the developer .pls answer .real time
users of tools.in which way these solutions help to test
with r without affecting the developed souce code.
Answer Posted / k.chandu
using getvisabletext method get available text
text=browser("ie").page("pe").webedit("textbox1").getvisibletext
now get the 1st item from the web list
wtext=browser("ie").page("pe").weblist("wl").select ("index:=0")
then compare them
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what is supply chain management?
1.How do u prepare the test suits in QC? 2.How do u convert requirements to test plan in QC?
you are recording on "WINDOW 1", say it has a link if you click on that, that leads you to "WINDOW 2". If you do any manipulations on "WINDOW 2" that are automatically updated in to "WINDOW 1". But "WINDOW 1" is currently invisible. But the updations in "WINDOW 1" must also be recorded as a script in QTP. The best Example is if you update your resume in JOB STREET portal it actually happens in other window, but the previous window is automatically updated. Now does QTP help you in this types of situations? Any body can answer this question. please..... Siva
How to upload excel files into Quality Center using QTP Script and how to delete excel files from Quality?
What is the difference between keyword view and expert view?
What is checkpoints for quicktest professional (qtp)?
How to run a test using quicktest professional (qtp)?
what is Property......End Property loop? how to write sript for it in QTP
what is clean sweep?
What is the difference between byref and byval in qtp?
Where to use Property Let, Property Get, Property Set in UFT
Explain the concept of how quicktest professional identifies object?
What is the basic concept of qtp?
Hi, I have 2 dropdown listboxes called region and city/area. It needs to select one region(Santa Clara) and one city/Area (Sunnyvale).So I put this in the for loop and I am storing the Items in the variable called itemname. The regions value will get changed,so I used reg expression for this regions. This is my code Browser("MLSListings.com").Page("MLSListings.com").Link("ยป County/Area").Click Browser("MLSListings.com").Page("MLSListings.com").WebList ("regions").Check CheckPoint("regions") ListSize=Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetTOProperty("items count") For i = 1 To ListSize-1 Itemname =Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetItem(i+1) Browser("MLSListings.com").Page("MLSListings.com").WebList ("regions").Select Itemname ................. If I run the script,I am getting the following error, Cannot identify the specified item of the regions object. Confirm that the specified item is included in the object's item collection. Any Help? Thank you, Uma
UFT 12.02 which ALM version will support