Please help me on this!!!
I have two combo box for list of country and state. Now I have a written code for it to select each country and state (which opens a new page). But while it's selecting a country/state same time I want to perform a verification. I can do it by recording and setup a verification point.
So for a country,
Right after list_countrySelect().click() I want to perform a verification (which I have recorded and call for each country and perform verification while looping )
Here is the code:
<font size="2" face="Verdana, Arial, Helvetica"></font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">
ITestDataList countryList;
ITestDataElementList countryListElements;
ITestDataElement countryListElement;

java.util.Hashtable ht = list_countrySelect().getTestDataTypes();

countryList = (ITestDataList)list_countrySelect().getTestData(&q uot;list&quot;

countryListElements = countryList.getElements();

int listElemCount = countryList.getElementCount();

for (int i = 0; i &lt; listElemCount; i++)
countryListElement =
System.out.println(countryListElement.getElement() );

//Click on each element
list_countrySelect().click(atText(countryListEleme nt.getElement().toString()));

//this is for states

ITestDataList stateList;
ITestDataElementList stateListElements;
ITestDataElement stateListElement;

java.util.Hashtable st = list_stateSelect().getTestDataTypes();

stateList = (ITestDataList)list_stateSelect().getTestData(&quo t;list&quot;

stateListElements = stateList.getElements();

int listElemCounts = stateList.getElementCount();

for (int j = 0; j &lt; listElemCount; j++)
stateListElement = stateListElements.getElement(j);

//Click on each element

list_stateSelect().click(atText(stateListElement.g etElement().toString()));

};*/</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">