Created
February 1, 2012 22:30
-
-
Save Jaym3s/1719885 to your computer and use it in GitHub Desktop.
Navigating UITableViews with UIAutomation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)awakeFromNib | |
{ | |
[self.tableView setaccessibilityLabel:@"first_table"]; | |
[super awakeFromNib]; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function cellWithIndexFromTableNamed(celldex, tableName) { | |
return window.tableViews().firstWithName(tableName).cells()[celldex]; | |
} | |
cellWithIndexFromTableNamed(0, "first_table").tap(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function cellNamedFromTableNamed(cellName, tableName) { | |
return window.tableViews().firstWithName(tableName).cells().firstWithName(cellName); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function cellNamedFromTableNamed(cellName, tableName) { | |
return window.tableViews()[tableName].cells()[cellName]; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var first_table = window.tableViews()[0]; | |
var first_cell = first_table.cells()[0]; | |
first_cell.tap(); | |
var second_table = window.tableViews()[1]; | |
var second_table_cell = second_table.cells()[0]; | |
second_table_cell.tap(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var first_table = window.tableViews().firstWithName("first_table"); | |
var first_cell = first_table.cells()[0]; | |
first_cell.tap(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment