F
Fir5tSight
Hi,
I declare PageObjectsArray1 and PageObjectsArray2 as ArrayList. Each
element in the array is a Page object. Now I want to compare every pair
of Page objects of the same index in the two arrays.
However, it seems that there is no method in ArrayList such as
"GetAt(i)" so that I can return a Page object at a particular location
in the array. Could anyone help me to find out there is such method or
an alternative?
FYI, I have:
foreach (Page p1 in PageObjectsArray1)
{
//I want to get a Page object with the same index for
PageObjectsArray2 so that I can compare the two pages.
}
Many thanks!
I declare PageObjectsArray1 and PageObjectsArray2 as ArrayList. Each
element in the array is a Page object. Now I want to compare every pair
of Page objects of the same index in the two arrays.
However, it seems that there is no method in ArrayList such as
"GetAt(i)" so that I can return a Page object at a particular location
in the array. Could anyone help me to find out there is such method or
an alternative?
FYI, I have:
foreach (Page p1 in PageObjectsArray1)
{
//I want to get a Page object with the same index for
PageObjectsArray2 so that I can compare the two pages.
}
Many thanks!