1+
12var target = UIATarget . localTarget ( ) ;
23var app = target . frontMostApp ( ) ;
34var win = app . mainWindow ( ) ;
@@ -72,8 +73,8 @@ if (app.tabBar().checkIsValid()) {
7273 app . tabBar ( ) . buttons ( ) [ 3 ] . tap ( ) ;
7374 sleep ( 5 ) ;
7475
75- target . frontMostApp ( ) . mainWindow ( ) . tableViews ( ) [ 0 ] . cells ( ) [ 2 ] . scrollToVisible ( ) ; sleep ( 2 ) ;
76- target . frontMostApp ( ) . mainWindow ( ) . tableViews ( ) [ 0 ] . cells ( ) [ 2 ] . tap ( ) ;
76+ target . frontMostApp ( ) . mainWindow ( ) . tableViews ( ) [ 0 ] . cells ( ) [ 4 ] . scrollToVisible ( ) ; sleep ( 2 ) ;
77+ target . frontMostApp ( ) . mainWindow ( ) . tableViews ( ) [ 0 ] . cells ( ) [ 4 ] . tap ( ) ;
7778
7879 sleep ( 5 ) ;
7980
@@ -110,14 +111,14 @@ if (isIpad()) {
110111 app . navigationBar ( ) . buttons ( ) [ 0 ] . tap ( ) ; sleep ( 2 ) ; sleep ( 2 ) ;
111112}
112113
113- target . frontMostApp ( ) . mainWindow ( ) . elements ( ) [ "Pager View" ] . scrollViews ( ) [ 0 ] . tableViews ( ) [ 0 ] . cells ( ) [ 0 ] . tap ( ) ; sleep ( 5 ) ;
114+ target . frontMostApp ( ) . mainWindow ( ) . elements ( ) [ "Pager View" ] . scrollViews ( ) [ 0 ] . tableViews ( ) [ 0 ] . cells ( ) [ 1 ] . tap ( ) ; sleep ( 5 ) ;
114115captureLocalizedScreenshot ( "1-reader" ) ;
115116
116117target . frontMostApp ( ) . tabBar ( ) . buttons ( ) [ 4 ] . tap ( ) ; sleep ( 5 ) ;
117118captureLocalizedScreenshot ( "2-notifications" ) ;
118119
119120target . frontMostApp ( ) . tabBar ( ) . buttons ( ) [ 0 ] . tap ( ) ; sleep ( 2 ) ;
120- target . frontMostApp ( ) . mainWindow ( ) . tableViews ( ) [ 0 ] . cells ( ) [ 2 ] . tap ( ) ; sleep ( 5 ) ;
121+ target . frontMostApp ( ) . mainWindow ( ) . tableViews ( ) [ 0 ] . cells ( ) [ 3 ] . tap ( ) ; sleep ( 5 ) ;
121122captureLocalizedScreenshot ( "3-posts" ) ;
122123
123124target . frontMostApp ( ) . mainWindow ( ) . tableViews ( ) [ "PostsTable" ] . visibleCells ( ) [ 0 ] . tap ( ) ; sleep ( 3 ) ;
@@ -129,16 +130,17 @@ if (isIpad()) {
129130}
130131captureLocalizedScreenshot ( "4-post-editor" ) ;
131132
133+
132134target . frontMostApp ( ) . navigationBar ( ) . buttons ( ) [ 0 ] . tap ( ) ; sleep ( 2 ) ;
133135if ( isIpad ( ) ) {
134136 target . frontMostApp ( ) . mainWindow ( ) . popover ( ) . actionSheet ( ) . collectionViews ( ) [ 0 ] . cells ( ) [ 0 ] . buttons ( ) [ 0 ] . tap ( ) ;
135137} else {
136- target . frontMostApp ( ) . actionSheet ( ) . collectionViews ( ) [ 0 ] . cells ( ) [ 0 ] . buttons ( ) [ 0 ] . tap ( ) ;
138+ target . frontMostApp ( ) . actionSheet ( ) . collectionViews ( ) [ 0 ] . cells ( ) [ 0 ] . buttons ( ) [ 0 ] . tap ( ) ; sleep ( 2 ) ;
137139}
138140
139141target . frontMostApp ( ) . navigationBar ( ) . buttons ( ) [ 0 ] . tap ( ) ; sleep ( 2 ) ;
140142target . frontMostApp ( ) . navigationBar ( ) . leftButton ( ) . tap ( ) ; sleep ( 2 ) ;
141- target . frontMostApp ( ) . mainWindow ( ) . tableViews ( ) [ 0 ] . cells ( ) [ 1 ] . tap ( ) ; sleep ( 5 ) ;
143+ target . frontMostApp ( ) . mainWindow ( ) . tableViews ( ) [ 0 ] . cells ( ) [ 2 ] . tap ( ) ; sleep ( 5 ) ;
142144captureLocalizedScreenshot ( "5-stats" ) ;
143145
144146UIALogger . logPass ( "screenshots" ) ;
0 commit comments