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
Generic function to search for the unique link in webtable and click on it
How do you know the location Id of an object if you know its index id?
A FORM CONTAINS 5 FIELDS. 1 FIELD IS ENABLED REMAINING(4) FIELDS DISABLED. MY QUESTION IS ENTER VALUES INTO 1 FIELD AFTER THAT CLICK TAB BUTTON THEN 2 FIELD ENABLE THIS PROCESS CONTINUE UPTO 5TH FIELD. HOW TO WRITE CODE IN DESCRIPTIVE PROGRAMMING. PLZ TELL ME THE PROCEDURE AND CODE FOR IT.
What phases are involved in testing an application in qtp?
How you will rate urself in QTP in the range of 0 to 5
How do you test DLL files using automation Tool QTP?
Explain hybrid framework with advantages and disadvantages?
Hi we are running tests remotely from quality center and pushing tests into qtp boxes remotely, and it does execution but while uploading results back into quality center it hangs in qtp box.If any one come across similar problem, please send me details how to handle this. Thanks kris
Explain the checkpoint in qtp?
how will you check how many members visited the website www.infosys.com?
Hi, I am using OutputCheckPoint and I am storing the value in the data table. The stored value for column:bedroom:"Bed:4" The another value for column:bathroom:"Bath:2 Full,1 Partial" I need only the no 4 from the first column. I need only the no 2,1 from the second column. I used split array,but it also show array(0) has the value"bed:4" ..... Even though I highlight only 4,It is seleting the full value "bed 4".How can I get only the nos Thank you Uma
Explain how you can replace string in qtp?
What is qtpro? What is quick test pro? What is a quick test professional?
What is the basic concept of quicktest professional (qtp)?
How to record application running on the Virtual machine?