Forum Discussion
TanyaYatskovska
Alumni
12 years agoHi Mark,
Are you testing the iOS app? TestComplete officially supports the UITableView control. Please refer to the "iOS TableView Support" article to make sure that this table is used in your app. You can try using the wItem property to get the value of the specified cell. Here is an example from the "wItem Property (iOS TableView Controls)" article:
function Test()
{
// Select the mobile device
Mobile.SetCurrent("iPhone");
// Obtain the TableView object
var p = Mobile.Device.Process("SampleApp");
var tableview = p.Window().TableView();
for (var i = 0; i<tableview.wSectionCount; i++)
{
Log.Message(tableview.wSection(i));
for (var n = 0; n<tableview.wItemCount(i); n++)
{
Log.Message(tableview.wItem(i, n));
Log.Message(tableview.wItemDetail(i, n));
Log.Message(tableview.wItemSelected(i, n));
}
}
}
Are you testing the iOS app? TestComplete officially supports the UITableView control. Please refer to the "iOS TableView Support" article to make sure that this table is used in your app. You can try using the wItem property to get the value of the specified cell. Here is an example from the "wItem Property (iOS TableView Controls)" article:
//JScript
function Test()
{
// Select the mobile device
Mobile.SetCurrent("iPhone");
// Obtain the TableView object
var p = Mobile.Device.Process("SampleApp");
var tableview = p.Window().TableView();
for (var i = 0; i<tableview.wSectionCount; i++)
{
Log.Message(tableview.wSection(i));
for (var n = 0; n<tableview.wItemCount(i); n++)
{
Log.Message(tableview.wItem(i, n));
Log.Message(tableview.wItemDetail(i, n));
Log.Message(tableview.wItemSelected(i, n));
}
}
}