| || |
To check the default value of a list box
I have a listbox that needs to be handled using Rational Functional tester (RFT-Java scripting).
I need to check for the default value of the listbox, then i need to select an item from the listbox.as soon as i select the item its need to wait as one more listbox is dependent on the first listbox.
I tried using this code:
SelectListItem(Document_Web(), List_state(), State);
here the listbox item selection value comes from datasheet.
but this code only highlights the cursor on the listbox List_state() but after that it does not select intended item from the list box.
Please help me out.
Re: To check the default value of a list box
Find the below code to retrive the default text or selected in a list box..
System.out.println("hi" + str1);
here "list_eo" is the test object or list box name in the object map.