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
can any one say that where we can download the QTP trail version ??????????
How to test the login page in different ways in automation testing and i need code?
whenever U using QTP,Test Director, Why we using separate Bug tracking tool?
What are parameterizing tests?
Hello everyone! I am just writing a small test for a windows application. I have a problem with a text output value. The value i am trying to catch is presented in a scrollable textbox. When the text is too long, only a portion of it gets captured. Do you have any experience with this?
How to interact tool & application build in QTP?
Dis advantages of XML checkpoint ?
How will internal and external links be validated and updated? how often?
Whar are the challenges do we face while testing web based applications using the automation tool QTP or any??
Sql questions to find second max salary and how to use joins
In the application that I'm testing is having a WYSIWIYG editor.QTP is recording editor's body as web element. I want to add some data to this web Element at run time. The problem is that I cant find a method to add contents to this web Element. Can any one come up with an answer for this. Thankx.
Why is Client side image is preferred over server side image?
Hi am New to Automation Testing , any one can you help me what are the basic questiion are asked an interview?
How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?
Define Canvas view of UFT?