Hello! i am having two comboboxes.Each having 10 items in
it.when i select first item in first combobox,it is not
similar in the second combobox.for ex in first combo if it
is Hyderabad,in second it should be some chenai or some
other item .Write a VBSCRIPT for that?
Answer Posted / ravikumar
Lets take Combo1 & Combo2
If u r selecting < Item1 > from Combo1 the same item1
should not be present in the Combo2 right..
if it is the case
step1) select Item1 from Combo1
Step2) write a function to validate the given item i.e
passed as perameter(Item1)by getting the innertext of the
Combo2 and use Instr function to find Item1 is there in the
inner text..if no Pass...If yes Fail.........
if the case is
the item selected in the combo2 should not be <item1>
then
get the selected item from the Combo2
strcomp("selected item","item1")
if yes fail
if no pass.
Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
How to use actions in qtp ?
What is qtp window?
Which advantages helping QTP to hold the position of "Market Leader" for such a long period?
How to customize checkpoints with parameters?
How to build scripts that access data from external sources?
Where we can use the analog mode and where we can use the low – level mode?
Explain how you can find the absolute value of the number in qtp?
How do you test DLL files using automation Tool QTP?
Can anyone pls tell me how to do action parameterization (input and output parameters) with respect to login window and insert order of flight reservation window in detail( pls give a clear step by step explanation with example) anyone please. Will be very thankful to u
Any body have QTP 9.5 licence key. please provide me at madhukar_dec30@yahoo.co.in
How we can use the database checkpoint on a java web based application in which the database connectivity is done using JDBC->Pure Java type (in this type there is no need to create a DSN). At present in QTP we can fetch database values using checkpoint only through DSN. Is there any programming for this if we don't have DSN (ODBC)
How many lines of code in each script of QTP?
How QTP support all types of applications (platforms)?
If I change the object name in one action will it be updated in all the actions? Or not?
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.