Skip to content

Commit 2208093

Browse files
committed
Updating the screenshot script.
1 parent b796e09 commit 2208093

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Scripts/fastlane/shoot_the_screens.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
var target = UIATarget.localTarget();
23
var app = target.frontMostApp();
34
var 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);
114115
captureLocalizedScreenshot("1-reader");
115116

116117
target.frontMostApp().tabBar().buttons()[4].tap(); sleep(5);
117118
captureLocalizedScreenshot("2-notifications");
118119

119120
target.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);
121122
captureLocalizedScreenshot("3-posts");
122123

123124
target.frontMostApp().mainWindow().tableViews()["PostsTable"].visibleCells()[0].tap(); sleep(3);
@@ -129,16 +130,17 @@ if (isIpad()) {
129130
}
130131
captureLocalizedScreenshot("4-post-editor");
131132

133+
132134
target.frontMostApp().navigationBar().buttons()[0].tap(); sleep(2);
133135
if (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

139141
target.frontMostApp().navigationBar().buttons()[0].tap(); sleep(2);
140142
target.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);
142144
captureLocalizedScreenshot("5-stats");
143145

144146
UIALogger.logPass("screenshots");

0 commit comments

Comments
 (0)