| || |
Verify fields by selecting item in combobox
In my application there is combobox.if i select an item in the combobox page get refreshed and displays with new fields related to item in the combobox.In this way if u select different items in combobox it will display different fields.How to check it?
Re: Verify fields by selecting item in combobox
sounds like you might want your script to do at least 4 things...
-choose an item in the combobox
-wait until the page is finished refreshing (or better, synchronise on something in the display instead of just dumb waiting)
-check that the objects (fields/edit boxes) you expect to see are visible
-and *maybe* check that objects that shouldn't be there (e.g. ones that apply to other combobox items) aren't displayed any more
I might try using SQAFindObject to test if the fields are present or not. Alternatively the objects you need to check might have a property like "visible" or "displayed" that you could test using SQAGetProperty.