Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>How are you constructing the view hierarchy? From the log, it looks like you have two navigation bars under the one UIWindow: one unlabeled, and one labeled with <code>mainNavigationBar</code>.</p> <p>As Claus points out, you should be able to get at the back button by accessing the main window's navigation bar, but that might be failing in your case because of the presence of that second navigation bar.</p> <p>In case it helps, the following is a script that I wrote which steps through every section in the UICatalog sample application, grabs a screenshot of that section, then returns to the main level of the navigation controller. In this example, I use <code>leftButton()</code> to access the back button on the navigation bar. </p> <pre><code>var target = UIATarget.localTarget(); var application = target.frontMostApp(); var mainWindow = application.mainWindow(); var tableView = mainWindow.tableViews()[0]; UIALogger.logMessage("Number of cells " + tableView.cells().length); for (var currentCellIndex = 0; currentCellIndex &lt; tableView.cells().length; currentCellIndex++) { var currentCell = tableView.cells()[currentCellIndex]; UIALogger.logStart("Testing table option " + currentCell.name()); currentCell.scrollToVisible(); target.delay(1); currentCell.tap(); // Go down a level target.delay(1); UIATarget.localTarget().captureScreenWithName(currentCell.name()); mainWindow.navigationBar().leftButton().tap(); // Go back target.delay(1); UIALogger.logPass("Testing table option " + currentCell.name()); } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload