appium-webdriveragent 3.8.0 → 3.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,92 @@
1
+ const path = require('path');
2
+ const os = require('os');
3
+ const { asyncify } = require('asyncbox');
4
+ const { logger, fs, mkdirp, zip } = require('appium-support');
5
+ const { exec } = require('teen_process');
6
+ const xcode = require('appium-xcode');
7
+
8
+ const log = new logger.getLogger('WDABuild');
9
+ const rootDir = path.resolve(__dirname, '..');
10
+
11
+ async function buildWebDriverAgent (xcodeVersion) {
12
+ // Get Xcode version
13
+ xcodeVersion = xcodeVersion || await xcode.getVersion();
14
+ log.info(`Building bundle for Xcode version '${xcodeVersion}'`);
15
+
16
+ // Clear WebDriverAgent from derived data
17
+ const derivedDataPath = path.resolve(os.homedir(), 'Library', 'Developer',
18
+ 'Xcode', 'DerivedData');
19
+ log.info(`Clearing contents of '${derivedDataPath}/WebDriverAgent-*'`);
20
+ for (const wdaPath of
21
+ await fs.glob('WebDriverAgent-*', {cwd: derivedDataPath, absolute: true})
22
+ ) {
23
+ log.info(`Deleting existing WDA: '${wdaPath}'`);
24
+ await fs.rimraf(wdaPath);
25
+ }
26
+
27
+ // Clean and build
28
+ log.info('Running ./Scripts/build.sh');
29
+ let env = {TARGET: 'runner', SDK: 'sim'};
30
+ try {
31
+ await exec('/bin/bash', ['./Scripts/build.sh'], {env, cwd: rootDir});
32
+ } catch (e) {
33
+ log.error(`===FAILED TO BUILD FOR ${xcodeVersion}`);
34
+ log.error(e.stdout);
35
+ log.error(e.stderr);
36
+ log.error(e.message);
37
+ throw e;
38
+ }
39
+
40
+ // Create bundles folder
41
+ const pathToBundles = path.resolve(rootDir, 'bundles');
42
+ await mkdirp(pathToBundles);
43
+
44
+ // Start creating zip
45
+ const uncompressedDir = path.resolve(rootDir, 'uncompressed');
46
+ await fs.rimraf(uncompressedDir);
47
+ await mkdirp(uncompressedDir);
48
+ log.info('Creating zip');
49
+
50
+ // Move contents of the root to folder called "uncompressed"
51
+ await exec('rsync', [
52
+ '-av', '.', uncompressedDir,
53
+ '--exclude', 'node_modules',
54
+ '--exclude', 'build',
55
+ '--exclude', 'ci-jobs',
56
+ '--exclude', 'lib',
57
+ '--exclude', 'test',
58
+ '--exclude', 'bundles',
59
+ '--exclude', 'azure-templates',
60
+ ], {cwd: rootDir});
61
+
62
+ // Move DerivedData/WebDriverAgent-* from Library to "uncompressed" folder
63
+ const wdaPath = (await fs.glob(`${derivedDataPath}/WebDriverAgent-*`))[0];
64
+ await mkdirp(path.resolve(uncompressedDir, 'DerivedData'));
65
+ await fs.rename(wdaPath, path.resolve(uncompressedDir, 'DerivedData', 'WebDriverAgent'));
66
+
67
+ // Compress the "uncompressed" bundle as a Zip
68
+ const pathToZip = path.resolve(pathToBundles, `webdriveragent-xcode_${xcodeVersion}.zip`);
69
+ await zip.toArchive(
70
+ pathToZip, {cwd: path.join(rootDir, 'uncompressed')}
71
+ );
72
+ log.info(`Zip bundled at "${pathToZip}"`);
73
+
74
+ // Now just zip the .app and place it in the root directory
75
+ // This zip file will be published to NPM
76
+ const wdaAppBundle = 'WebDriverAgentRunner-Runner.app';
77
+ const appBundlePath = path.join(uncompressedDir, 'DerivedData', 'WebDriverAgent',
78
+ 'Build', 'Products', 'Debug-iphonesimulator', wdaAppBundle);
79
+ const appBundleZipPath = path.join(rootDir, `${wdaAppBundle}.zip`);
80
+ await fs.rimraf(appBundleZipPath);
81
+ log.info(`Created './${wdaAppBundle}.zip'`);
82
+ await zip.toArchive(appBundleZipPath, {cwd: appBundlePath});
83
+ log.info(`Zip bundled at "${appBundleZipPath}"`);
84
+ // Clean up the uncompressed directory
85
+ await fs.rimraf(uncompressedDir);
86
+ }
87
+
88
+ if (require.main === module) {
89
+ asyncify(buildWebDriverAgent);
90
+ }
91
+
92
+ module.exports = buildWebDriverAgent;
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>BuildLocationStyle</key>
6
+ <string>UseAppPreferences</string>
7
+ <key>CustomBuildLocationType</key>
8
+ <string>RelativeToDerivedData</string>
9
+ <key>DerivedDataLocationStyle</key>
10
+ <string>Default</string>
11
+ <key>EnabledFullIndexStoreVisibility</key>
12
+ <false/>
13
+ <key>IssueFilterStyle</key>
14
+ <string>ShowActiveSchemeOnly</string>
15
+ <key>LiveSourceIssuesEnabled</key>
16
+ <true/>
17
+ <key>ShowSharedSchemesAutomaticallyEnabled</key>
18
+ <true/>
19
+ </dict>
20
+ </plist>
@@ -0,0 +1,906 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Bucket
3
+ uuid = "85B8A7BB-AF39-4AA4-A91B-3E091377E49F"
4
+ type = "1"
5
+ version = "2.0">
6
+ <Breakpoints>
7
+ <BreakpointProxy
8
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
9
+ <BreakpointContent
10
+ uuid = "A9F66173-9518-449B-9BB0-00CC4F22A3E0"
11
+ shouldBeEnabled = "No"
12
+ ignoreCount = "0"
13
+ continueAfterRunningActions = "No"
14
+ filePath = "WebDriverAgentLib/Utilities/FBXPath.m"
15
+ timestampString = "551537374.305424"
16
+ startingColumnNumber = "9223372036854775807"
17
+ endingColumnNumber = "9223372036854775807"
18
+ startingLineNumber = "320"
19
+ endingLineNumber = "320"
20
+ landmarkName = "+recordElementAttributes:forElement:indexPath:includedAttributes:"
21
+ landmarkType = "7">
22
+ </BreakpointContent>
23
+ </BreakpointProxy>
24
+ <BreakpointProxy
25
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
26
+ <BreakpointContent
27
+ uuid = "A00A53EE-97FC-41AA-822E-EB5C91B67A04"
28
+ shouldBeEnabled = "No"
29
+ ignoreCount = "0"
30
+ continueAfterRunningActions = "No"
31
+ filePath = "WebDriverAgentLib/FBApplication.m"
32
+ timestampString = "573535990.0440609"
33
+ startingColumnNumber = "9223372036854775807"
34
+ endingColumnNumber = "9223372036854775807"
35
+ startingLineNumber = "81"
36
+ endingLineNumber = "81"
37
+ landmarkName = "+fb_activeApplicationWithDefaultBundleId:"
38
+ landmarkType = "7">
39
+ </BreakpointContent>
40
+ </BreakpointProxy>
41
+ <BreakpointProxy
42
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
43
+ <BreakpointContent
44
+ uuid = "FD03C36B-901E-4F06-A532-730E33954070"
45
+ shouldBeEnabled = "No"
46
+ ignoreCount = "0"
47
+ continueAfterRunningActions = "No"
48
+ filePath = "WebDriverAgentLib/FBApplication.m"
49
+ timestampString = "573535990.04477"
50
+ startingColumnNumber = "9223372036854775807"
51
+ endingColumnNumber = "9223372036854775807"
52
+ startingLineNumber = "92"
53
+ endingLineNumber = "92"
54
+ landmarkName = "+fb_activeApplicationWithDefaultBundleId:"
55
+ landmarkType = "7">
56
+ </BreakpointContent>
57
+ </BreakpointProxy>
58
+ <BreakpointProxy
59
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
60
+ <BreakpointContent
61
+ uuid = "34E69244-7E26-461D-87BF-4F8DAB4CBB53"
62
+ shouldBeEnabled = "No"
63
+ ignoreCount = "0"
64
+ continueAfterRunningActions = "No"
65
+ filePath = "WebDriverAgentLib/Commands/FBSessionCommands.m"
66
+ timestampString = "573543236.2431999"
67
+ startingColumnNumber = "9223372036854775807"
68
+ endingColumnNumber = "9223372036854775807"
69
+ startingLineNumber = "76"
70
+ endingLineNumber = "76"
71
+ landmarkName = "+handleCreateSession:"
72
+ landmarkType = "7">
73
+ </BreakpointContent>
74
+ </BreakpointProxy>
75
+ <BreakpointProxy
76
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
77
+ <BreakpointContent
78
+ uuid = "C8A7A71C-9244-471E-AD56-4DD888F82EEE"
79
+ shouldBeEnabled = "No"
80
+ ignoreCount = "0"
81
+ continueAfterRunningActions = "No"
82
+ filePath = "WebDriverAgentLib/Commands/FBSessionCommands.m"
83
+ timestampString = "573543296.7784981"
84
+ startingColumnNumber = "9223372036854775807"
85
+ endingColumnNumber = "9223372036854775807"
86
+ startingLineNumber = "78"
87
+ endingLineNumber = "78"
88
+ landmarkName = "+handleCreateSession:"
89
+ landmarkType = "7">
90
+ </BreakpointContent>
91
+ </BreakpointProxy>
92
+ <BreakpointProxy
93
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
94
+ <BreakpointContent
95
+ uuid = "FCE5B435-6417-4C17-A2A8-BA1BD762528A"
96
+ shouldBeEnabled = "No"
97
+ ignoreCount = "0"
98
+ continueAfterRunningActions = "No"
99
+ filePath = "WebDriverAgentLib/Utilities/FBXCAXClientProxy.m"
100
+ timestampString = "573546169.498659"
101
+ startingColumnNumber = "9223372036854775807"
102
+ endingColumnNumber = "9223372036854775807"
103
+ startingLineNumber = "77"
104
+ endingLineNumber = "77"
105
+ landmarkName = "+sharedClient"
106
+ landmarkType = "7">
107
+ </BreakpointContent>
108
+ </BreakpointProxy>
109
+ <BreakpointProxy
110
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
111
+ <BreakpointContent
112
+ uuid = "3420D952-E1B0-4A66-A172-A4759B1A35D2"
113
+ shouldBeEnabled = "No"
114
+ ignoreCount = "0"
115
+ continueAfterRunningActions = "No"
116
+ filePath = "WebDriverAgentLib/Utilities/FBXCAXClientProxy.m"
117
+ timestampString = "573546212.0884579"
118
+ startingColumnNumber = "9223372036854775807"
119
+ endingColumnNumber = "9223372036854775807"
120
+ startingLineNumber = "75"
121
+ endingLineNumber = "75"
122
+ landmarkName = "+sharedClient"
123
+ landmarkType = "7">
124
+ </BreakpointContent>
125
+ </BreakpointProxy>
126
+ <BreakpointProxy
127
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
128
+ <BreakpointContent
129
+ uuid = "C4AE05AB-F253-40C1-939D-0B505182E5F3"
130
+ shouldBeEnabled = "No"
131
+ ignoreCount = "0"
132
+ continueAfterRunningActions = "No"
133
+ filePath = "WebDriverAgentLib/Commands/FBCustomCommands.m"
134
+ timestampString = "588012389.766982"
135
+ startingColumnNumber = "9223372036854775807"
136
+ endingColumnNumber = "9223372036854775807"
137
+ startingLineNumber = "298"
138
+ endingLineNumber = "298"
139
+ landmarkName = "+handleResetAppAuth:"
140
+ landmarkType = "7">
141
+ </BreakpointContent>
142
+ </BreakpointProxy>
143
+ <BreakpointProxy
144
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
145
+ <BreakpointContent
146
+ uuid = "114A29B1-DA4E-45BA-9824-69186562AAD6"
147
+ shouldBeEnabled = "No"
148
+ ignoreCount = "0"
149
+ continueAfterRunningActions = "No"
150
+ filePath = "WebDriverAgentLib/Commands/FBCustomCommands.m"
151
+ timestampString = "588012389.767392"
152
+ startingColumnNumber = "9223372036854775807"
153
+ endingColumnNumber = "9223372036854775807"
154
+ startingLineNumber = "292"
155
+ endingLineNumber = "292"
156
+ landmarkName = "+handleResetAppAuth:"
157
+ landmarkType = "7">
158
+ </BreakpointContent>
159
+ </BreakpointProxy>
160
+ <BreakpointProxy
161
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
162
+ <BreakpointContent
163
+ uuid = "F50BECF0-3136-4D26-8C2C-097CEF4B035C"
164
+ shouldBeEnabled = "No"
165
+ ignoreCount = "0"
166
+ continueAfterRunningActions = "No"
167
+ filePath = "WebDriverAgentLib/Utilities/FBFailureProofTestCase.m"
168
+ timestampString = "0"
169
+ startingColumnNumber = "9223372036854775807"
170
+ endingColumnNumber = "9223372036854775807"
171
+ startingLineNumber = "32"
172
+ endingLineNumber = "32"
173
+ landmarkName = "-setUp"
174
+ landmarkType = "7">
175
+ </BreakpointContent>
176
+ </BreakpointProxy>
177
+ <BreakpointProxy
178
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
179
+ <BreakpointContent
180
+ uuid = "F84F010B-9113-43FC-9F98-73BC11C51AD7"
181
+ shouldBeEnabled = "No"
182
+ ignoreCount = "0"
183
+ continueAfterRunningActions = "No"
184
+ filePath = "WebDriverAgentLib/Utilities/FBFailureProofTestCase.m"
185
+ timestampString = "0"
186
+ startingColumnNumber = "9223372036854775807"
187
+ endingColumnNumber = "9223372036854775807"
188
+ startingLineNumber = "27"
189
+ endingLineNumber = "27"
190
+ landmarkName = "-setUp"
191
+ landmarkType = "7">
192
+ </BreakpointContent>
193
+ </BreakpointProxy>
194
+ <BreakpointProxy
195
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
196
+ <BreakpointContent
197
+ uuid = "6E82A111-4A3C-45AE-92E5-F0AEF268A0C6"
198
+ shouldBeEnabled = "No"
199
+ ignoreCount = "0"
200
+ continueAfterRunningActions = "No"
201
+ filePath = "WebDriverAgentLib/Utilities/FBFailureProofTestCase.m"
202
+ timestampString = "0"
203
+ startingColumnNumber = "9223372036854775807"
204
+ endingColumnNumber = "9223372036854775807"
205
+ startingLineNumber = "28"
206
+ endingLineNumber = "28"
207
+ landmarkName = "-setUp"
208
+ landmarkType = "7">
209
+ </BreakpointContent>
210
+ </BreakpointProxy>
211
+ <BreakpointProxy
212
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
213
+ <BreakpointContent
214
+ uuid = "51F52575-D72E-4854-94D5-70990AABC252"
215
+ shouldBeEnabled = "Yes"
216
+ ignoreCount = "0"
217
+ continueAfterRunningActions = "No"
218
+ filePath = "WebDriverAgentLib/Commands/FBCustomCommands.m"
219
+ timestampString = "0"
220
+ startingColumnNumber = "9223372036854775807"
221
+ endingColumnNumber = "9223372036854775807"
222
+ startingLineNumber = "76"
223
+ endingLineNumber = "76"
224
+ landmarkName = "+handleHomescreenCommand:"
225
+ landmarkType = "7">
226
+ </BreakpointContent>
227
+ </BreakpointProxy>
228
+ <BreakpointProxy
229
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
230
+ <BreakpointContent
231
+ uuid = "E107AEAC-6A21-4066-BDB8-3BBFB6EEB81E"
232
+ shouldBeEnabled = "No"
233
+ ignoreCount = "0"
234
+ continueAfterRunningActions = "No"
235
+ filePath = "WebDriverAgentLib/Commands/FBCustomCommands.m"
236
+ timestampString = "0"
237
+ startingColumnNumber = "9223372036854775807"
238
+ endingColumnNumber = "9223372036854775807"
239
+ startingLineNumber = "75"
240
+ endingLineNumber = "75"
241
+ landmarkName = "+handleHomescreenCommand:"
242
+ landmarkType = "7">
243
+ </BreakpointContent>
244
+ </BreakpointProxy>
245
+ <BreakpointProxy
246
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
247
+ <BreakpointContent
248
+ uuid = "9431A7C9-52FF-4879-A301-CCDDF64B7AF3"
249
+ shouldBeEnabled = "Yes"
250
+ ignoreCount = "0"
251
+ continueAfterRunningActions = "No"
252
+ filePath = "WebDriverAgentLib/Commands/FBCustomCommands.m"
253
+ timestampString = "0"
254
+ startingColumnNumber = "9223372036854775807"
255
+ endingColumnNumber = "9223372036854775807"
256
+ startingLineNumber = "77"
257
+ endingLineNumber = "77"
258
+ landmarkName = "+handleHomescreenCommand:"
259
+ landmarkType = "7">
260
+ </BreakpointContent>
261
+ </BreakpointProxy>
262
+ <BreakpointProxy
263
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
264
+ <BreakpointContent
265
+ uuid = "65E2A037-FDDD-4F25-8895-B989584BA514"
266
+ shouldBeEnabled = "Yes"
267
+ ignoreCount = "0"
268
+ continueAfterRunningActions = "No"
269
+ filePath = "WebDriverAgentLib/Commands/FBCustomCommands.m"
270
+ timestampString = "0"
271
+ startingColumnNumber = "9223372036854775807"
272
+ endingColumnNumber = "9223372036854775807"
273
+ startingLineNumber = "80"
274
+ endingLineNumber = "80"
275
+ landmarkName = "+handleHomescreenCommand:"
276
+ landmarkType = "7">
277
+ </BreakpointContent>
278
+ </BreakpointProxy>
279
+ <BreakpointProxy
280
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
281
+ <BreakpointContent
282
+ uuid = "C8563B5D-FA15-421E-BD78-3E692392F6A6"
283
+ shouldBeEnabled = "No"
284
+ ignoreCount = "0"
285
+ continueAfterRunningActions = "No"
286
+ filePath = "WebDriverAgentLib/FBSpringboardApplication.m"
287
+ timestampString = "0"
288
+ startingColumnNumber = "9223372036854775807"
289
+ endingColumnNumber = "9223372036854775807"
290
+ startingLineNumber = "37"
291
+ endingLineNumber = "37"
292
+ landmarkName = "-fb_waitUntilApplicationBoardIsVisible:"
293
+ landmarkType = "7">
294
+ </BreakpointContent>
295
+ </BreakpointProxy>
296
+ <BreakpointProxy
297
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
298
+ <BreakpointContent
299
+ uuid = "C175DF91-A5D2-41BE-AD84-CB6BD3D377D4"
300
+ shouldBeEnabled = "No"
301
+ ignoreCount = "0"
302
+ continueAfterRunningActions = "No"
303
+ filePath = "WebDriverAgentLib/Commands/FBCustomCommands.m"
304
+ timestampString = "0"
305
+ startingColumnNumber = "9223372036854775807"
306
+ endingColumnNumber = "9223372036854775807"
307
+ startingLineNumber = "41"
308
+ endingLineNumber = "41"
309
+ landmarkName = "+routes"
310
+ landmarkType = "7">
311
+ </BreakpointContent>
312
+ </BreakpointProxy>
313
+ <BreakpointProxy
314
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
315
+ <BreakpointContent
316
+ uuid = "8A2CB0B1-904C-4972-836D-4B05DABFA579"
317
+ shouldBeEnabled = "No"
318
+ ignoreCount = "0"
319
+ continueAfterRunningActions = "No"
320
+ filePath = "WebDriverAgentLib/Utilities/FBXCTestDaemonsProxy.m"
321
+ timestampString = "0"
322
+ startingColumnNumber = "9223372036854775807"
323
+ endingColumnNumber = "9223372036854775807"
324
+ startingLineNumber = "55"
325
+ endingLineNumber = "55"
326
+ landmarkName = "+retrieveTestRunnerProxy"
327
+ landmarkType = "7">
328
+ </BreakpointContent>
329
+ </BreakpointProxy>
330
+ <BreakpointProxy
331
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
332
+ <BreakpointContent
333
+ uuid = "8606C9F6-8A67-4DC9-B72B-BADEE1ECA185"
334
+ shouldBeEnabled = "No"
335
+ ignoreCount = "0"
336
+ continueAfterRunningActions = "No"
337
+ filePath = "WebDriverAgentLib/Utilities/FBConfiguration.m"
338
+ startingColumnNumber = "9223372036854775807"
339
+ endingColumnNumber = "9223372036854775807"
340
+ startingLineNumber = "534"
341
+ endingLineNumber = "534"
342
+ landmarkName = "+setReduceMotionEnabled:"
343
+ landmarkType = "7">
344
+ </BreakpointContent>
345
+ </BreakpointProxy>
346
+ <BreakpointProxy
347
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
348
+ <BreakpointContent
349
+ uuid = "3130B9D9-7754-4F1C-A9BA-9EE059D9550A"
350
+ shouldBeEnabled = "No"
351
+ ignoreCount = "0"
352
+ continueAfterRunningActions = "No"
353
+ filePath = "WebDriverAgentLib/Utilities/FBConfiguration.m"
354
+ startingColumnNumber = "9223372036854775807"
355
+ endingColumnNumber = "9223372036854775807"
356
+ startingLineNumber = "535"
357
+ endingLineNumber = "535"
358
+ landmarkName = "+setReduceMotionEnabled:"
359
+ landmarkType = "7">
360
+ </BreakpointContent>
361
+ </BreakpointProxy>
362
+ <BreakpointProxy
363
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
364
+ <BreakpointContent
365
+ uuid = "442DC620-432E-4C04-9375-E8DCA9C5B271"
366
+ shouldBeEnabled = "No"
367
+ ignoreCount = "0"
368
+ continueAfterRunningActions = "No"
369
+ filePath = "WebDriverAgentLib/Commands/FBCustomCommands.m"
370
+ startingColumnNumber = "9223372036854775807"
371
+ endingColumnNumber = "9223372036854775807"
372
+ startingLineNumber = "345"
373
+ endingLineNumber = "345"
374
+ landmarkName = "+handleGetLocation:"
375
+ landmarkType = "7">
376
+ </BreakpointContent>
377
+ </BreakpointProxy>
378
+ <BreakpointProxy
379
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
380
+ <BreakpointContent
381
+ uuid = "94AB7150-F82A-428D-8441-F24A47115E32"
382
+ shouldBeEnabled = "No"
383
+ ignoreCount = "0"
384
+ continueAfterRunningActions = "No"
385
+ filePath = "WebDriverAgentLib/Utilities/FBScreen.m"
386
+ startingColumnNumber = "9223372036854775807"
387
+ endingColumnNumber = "9223372036854775807"
388
+ startingLineNumber = "34"
389
+ endingLineNumber = "34"
390
+ landmarkName = "+statusBarSizeForApplication:"
391
+ landmarkType = "7">
392
+ </BreakpointContent>
393
+ </BreakpointProxy>
394
+ <BreakpointProxy
395
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
396
+ <BreakpointContent
397
+ uuid = "17535DC3-8BF3-4F78-978C-3B78CCF9CDA3"
398
+ shouldBeEnabled = "No"
399
+ ignoreCount = "0"
400
+ continueAfterRunningActions = "No"
401
+ filePath = "WebDriverAgentLib/Commands/FBSessionCommands.m"
402
+ startingColumnNumber = "9223372036854775807"
403
+ endingColumnNumber = "9223372036854775807"
404
+ startingLineNumber = "68"
405
+ endingLineNumber = "68"
406
+ landmarkName = "+handleOpenURL:"
407
+ landmarkType = "7">
408
+ </BreakpointContent>
409
+ </BreakpointProxy>
410
+ <BreakpointProxy
411
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
412
+ <BreakpointContent
413
+ uuid = "30F9F989-56E7-450B-94E1-6C6D5D6FC00C"
414
+ shouldBeEnabled = "No"
415
+ ignoreCount = "0"
416
+ continueAfterRunningActions = "No"
417
+ filePath = "WebDriverAgentLib/Commands/FBSessionCommands.m"
418
+ startingColumnNumber = "9223372036854775807"
419
+ endingColumnNumber = "9223372036854775807"
420
+ startingLineNumber = "64"
421
+ endingLineNumber = "64"
422
+ landmarkName = "+handleOpenURL:"
423
+ landmarkType = "7">
424
+ </BreakpointContent>
425
+ </BreakpointProxy>
426
+ <BreakpointProxy
427
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
428
+ <BreakpointContent
429
+ uuid = "296814BD-33BE-4F33-8C18-B4642F085641"
430
+ shouldBeEnabled = "No"
431
+ ignoreCount = "0"
432
+ continueAfterRunningActions = "No"
433
+ filePath = "WebDriverAgentLib/Categories/XCUIApplicationProcess+FBQuiescence.m"
434
+ startingColumnNumber = "9223372036854775807"
435
+ endingColumnNumber = "9223372036854775807"
436
+ startingLineNumber = "31"
437
+ endingLineNumber = "31"
438
+ landmarkName = "swizzledWaitForQuiescenceIncludingAnimationsIdle(self, includingAnimations)"
439
+ landmarkType = "9">
440
+ </BreakpointContent>
441
+ </BreakpointProxy>
442
+ <BreakpointProxy
443
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
444
+ <BreakpointContent
445
+ uuid = "C1E501CA-8378-47ED-9C80-6D7B5A76C3E5"
446
+ shouldBeEnabled = "No"
447
+ ignoreCount = "0"
448
+ continueAfterRunningActions = "No"
449
+ filePath = "WebDriverAgentLib/Categories/XCUIApplicationProcess+FBQuiescence.m"
450
+ startingColumnNumber = "9223372036854775807"
451
+ endingColumnNumber = "9223372036854775807"
452
+ startingLineNumber = "45"
453
+ endingLineNumber = "45"
454
+ landmarkName = "+load"
455
+ landmarkType = "7">
456
+ </BreakpointContent>
457
+ </BreakpointProxy>
458
+ <BreakpointProxy
459
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
460
+ <BreakpointContent
461
+ uuid = "9E5F4EFE-B308-4031-AA50-6D656929F706"
462
+ shouldBeEnabled = "No"
463
+ ignoreCount = "0"
464
+ continueAfterRunningActions = "No"
465
+ filePath = "WebDriverAgentLib/Categories/XCUIApplicationProcess+FBQuiescence.m"
466
+ startingColumnNumber = "9223372036854775807"
467
+ endingColumnNumber = "9223372036854775807"
468
+ startingLineNumber = "47"
469
+ endingLineNumber = "47"
470
+ landmarkName = "+load"
471
+ landmarkType = "7">
472
+ </BreakpointContent>
473
+ </BreakpointProxy>
474
+ <BreakpointProxy
475
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
476
+ <BreakpointContent
477
+ uuid = "FACDDF41-4B81-48DF-BD84-C6E0ED509F8C"
478
+ shouldBeEnabled = "No"
479
+ ignoreCount = "0"
480
+ continueAfterRunningActions = "No"
481
+ filePath = "WebDriverAgentLib/Commands/FBCustomCommands.m"
482
+ startingColumnNumber = "9223372036854775807"
483
+ endingColumnNumber = "9223372036854775807"
484
+ startingLineNumber = "310"
485
+ endingLineNumber = "310"
486
+ landmarkName = "FBCustomCommands"
487
+ landmarkType = "3">
488
+ </BreakpointContent>
489
+ </BreakpointProxy>
490
+ <BreakpointProxy
491
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
492
+ <BreakpointContent
493
+ uuid = "37FA73E5-ED83-4D04-8453-161E214F837A"
494
+ shouldBeEnabled = "No"
495
+ ignoreCount = "0"
496
+ continueAfterRunningActions = "No"
497
+ filePath = "WebDriverAgentLib/Commands/FBCustomCommands.m"
498
+ startingColumnNumber = "9223372036854775807"
499
+ endingColumnNumber = "9223372036854775807"
500
+ startingLineNumber = "317"
501
+ endingLineNumber = "317"
502
+ landmarkName = "+handleGetLocation:"
503
+ landmarkType = "7">
504
+ </BreakpointContent>
505
+ </BreakpointProxy>
506
+ <BreakpointProxy
507
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
508
+ <BreakpointContent
509
+ uuid = "6443EB1E-ABBE-4234-A930-E3573DF92239"
510
+ shouldBeEnabled = "No"
511
+ ignoreCount = "0"
512
+ continueAfterRunningActions = "No"
513
+ filePath = "WebDriverAgentLib/Utilities/FBScreenshot.m"
514
+ startingColumnNumber = "9223372036854775807"
515
+ endingColumnNumber = "9223372036854775807"
516
+ startingLineNumber = "137"
517
+ endingLineNumber = "137"
518
+ landmarkName = "+takeWithScreenID:scale:compressionQuality:rect:sourceUTI:error:"
519
+ landmarkType = "7">
520
+ </BreakpointContent>
521
+ </BreakpointProxy>
522
+ <BreakpointProxy
523
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
524
+ <BreakpointContent
525
+ uuid = "D553156B-EAAC-48B5-A201-A4855888F479"
526
+ shouldBeEnabled = "No"
527
+ ignoreCount = "0"
528
+ continueAfterRunningActions = "No"
529
+ filePath = "WebDriverAgentLib/Utilities/FBScreenshot.m"
530
+ startingColumnNumber = "9223372036854775807"
531
+ endingColumnNumber = "9223372036854775807"
532
+ startingLineNumber = "76"
533
+ endingLineNumber = "76"
534
+ landmarkName = "+takeInOriginalResolutionWithQuality:rect:error:"
535
+ landmarkType = "7">
536
+ </BreakpointContent>
537
+ </BreakpointProxy>
538
+ <BreakpointProxy
539
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
540
+ <BreakpointContent
541
+ uuid = "CBA25643-A03E-4408-A32D-245CEB634874"
542
+ shouldBeEnabled = "No"
543
+ ignoreCount = "0"
544
+ continueAfterRunningActions = "No"
545
+ filePath = "WebDriverAgentLib/Utilities/FBScreenshot.m"
546
+ startingColumnNumber = "9223372036854775807"
547
+ endingColumnNumber = "9223372036854775807"
548
+ startingLineNumber = "73"
549
+ endingLineNumber = "73"
550
+ landmarkName = "+takeInOriginalResolutionWithQuality:rect:error:"
551
+ landmarkType = "7">
552
+ </BreakpointContent>
553
+ </BreakpointProxy>
554
+ <BreakpointProxy
555
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
556
+ <BreakpointContent
557
+ uuid = "B7272C93-BC06-46D5-A45F-5B7D004E8BFF"
558
+ shouldBeEnabled = "No"
559
+ ignoreCount = "0"
560
+ continueAfterRunningActions = "No"
561
+ filePath = "WebDriverAgentLib/Utilities/FBScreenshot.m"
562
+ startingColumnNumber = "9223372036854775807"
563
+ endingColumnNumber = "9223372036854775807"
564
+ startingLineNumber = "92"
565
+ endingLineNumber = "92"
566
+ landmarkName = "+takeInOriginalResolutionWithQuality:error:"
567
+ landmarkType = "7">
568
+ </BreakpointContent>
569
+ </BreakpointProxy>
570
+ <BreakpointProxy
571
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
572
+ <BreakpointContent
573
+ uuid = "2CED838E-DA0B-45AC-B6E5-89F307217FE1"
574
+ shouldBeEnabled = "No"
575
+ ignoreCount = "0"
576
+ continueAfterRunningActions = "No"
577
+ filePath = "WebDriverAgentLib/Utilities/FBImageIOScaler.m"
578
+ startingColumnNumber = "9223372036854775807"
579
+ endingColumnNumber = "9223372036854775807"
580
+ startingLineNumber = "55"
581
+ endingLineNumber = "55"
582
+ landmarkName = "-submitImage:uti:scalingFactor:compressionQuality:completionHandler:"
583
+ landmarkType = "7">
584
+ <Locations>
585
+ <Location
586
+ uuid = "2CED838E-DA0B-45AC-B6E5-89F307217FE1 - 90d26db73e1b824"
587
+ shouldBeEnabled = "Yes"
588
+ ignoreCount = "0"
589
+ continueAfterRunningActions = "No"
590
+ symbolName = "-[FBImageIOScaler submitImage:uti:scalingFactor:compressionQuality:completionHandler:]"
591
+ moduleName = "WebDriverAgentLib"
592
+ usesParentBreakpointCondition = "Yes"
593
+ urlString = "file:///Users/kazuaki/GitHub/WebDriverAgent/WebDriverAgentLib/Utilities/FBImageIOScaler.m"
594
+ startingColumnNumber = "9223372036854775807"
595
+ endingColumnNumber = "9223372036854775807"
596
+ startingLineNumber = "55"
597
+ endingLineNumber = "55"
598
+ offsetFromSymbolStart = "341">
599
+ </Location>
600
+ <Location
601
+ uuid = "2CED838E-DA0B-45AC-B6E5-89F307217FE1 - 90d26db73e1b824"
602
+ shouldBeEnabled = "Yes"
603
+ ignoreCount = "0"
604
+ continueAfterRunningActions = "No"
605
+ symbolName = "-[FBImageIOScaler submitImage:uti:scalingFactor:compressionQuality:completionHandler:]"
606
+ moduleName = "WebDriverAgentLib"
607
+ usesParentBreakpointCondition = "Yes"
608
+ urlString = "file:///Users/kazuaki/GitHub/WebDriverAgent/WebDriverAgentLib/Utilities/FBImageIOScaler.m"
609
+ startingColumnNumber = "9223372036854775807"
610
+ endingColumnNumber = "9223372036854775807"
611
+ startingLineNumber = "55"
612
+ endingLineNumber = "55"
613
+ offsetFromSymbolStart = "346">
614
+ </Location>
615
+ <Location
616
+ uuid = "2CED838E-DA0B-45AC-B6E5-89F307217FE1 - 90d26db73e1b824"
617
+ shouldBeEnabled = "Yes"
618
+ ignoreCount = "0"
619
+ continueAfterRunningActions = "No"
620
+ symbolName = "-[FBImageIOScaler submitImage:uti:scalingFactor:compressionQuality:completionHandler:]"
621
+ moduleName = "WebDriverAgentLib"
622
+ usesParentBreakpointCondition = "Yes"
623
+ urlString = "file:///Users/kazuaki/GitHub/WebDriverAgent/WebDriverAgentLib/Utilities/FBImageIOScaler.m"
624
+ startingColumnNumber = "9223372036854775807"
625
+ endingColumnNumber = "9223372036854775807"
626
+ startingLineNumber = "55"
627
+ endingLineNumber = "55"
628
+ offsetFromSymbolStart = "521">
629
+ </Location>
630
+ </Locations>
631
+ </BreakpointContent>
632
+ </BreakpointProxy>
633
+ <BreakpointProxy
634
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
635
+ <BreakpointContent
636
+ uuid = "EBA85278-A0F9-414E-9D82-4252CEB994FA"
637
+ shouldBeEnabled = "No"
638
+ ignoreCount = "0"
639
+ continueAfterRunningActions = "No"
640
+ filePath = "WebDriverAgentLib/Utilities/FBScreenshot.m"
641
+ startingColumnNumber = "9223372036854775807"
642
+ endingColumnNumber = "9223372036854775807"
643
+ startingLineNumber = "132"
644
+ endingLineNumber = "132"
645
+ landmarkName = "+takeWithScreenID:scale:compressionQuality:rect:sourceUTI:error:"
646
+ landmarkType = "7">
647
+ </BreakpointContent>
648
+ </BreakpointProxy>
649
+ <BreakpointProxy
650
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
651
+ <BreakpointContent
652
+ uuid = "774ED0CF-929F-402B-AFC1-51978DF91874"
653
+ shouldBeEnabled = "No"
654
+ ignoreCount = "0"
655
+ continueAfterRunningActions = "No"
656
+ filePath = "WebDriverAgentLib/Utilities/FBScreenshot.m"
657
+ startingColumnNumber = "9223372036854775807"
658
+ endingColumnNumber = "9223372036854775807"
659
+ startingLineNumber = "47"
660
+ endingLineNumber = "47"
661
+ landmarkName = "+compressionQualityWithQuality:"
662
+ landmarkType = "7">
663
+ </BreakpointContent>
664
+ </BreakpointProxy>
665
+ <BreakpointProxy
666
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
667
+ <BreakpointContent
668
+ uuid = "60F615FC-2F1D-486B-8562-5C172B0C5338"
669
+ shouldBeEnabled = "No"
670
+ ignoreCount = "0"
671
+ continueAfterRunningActions = "No"
672
+ filePath = "WebDriverAgentTests/IntegrationTests/XCUIDeviceHelperTests.m"
673
+ startingColumnNumber = "9223372036854775807"
674
+ endingColumnNumber = "9223372036854775807"
675
+ startingLineNumber = "68"
676
+ endingLineNumber = "68"
677
+ landmarkName = "-testLandscapeScreenshot"
678
+ landmarkType = "7">
679
+ </BreakpointContent>
680
+ </BreakpointProxy>
681
+ <BreakpointProxy
682
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
683
+ <BreakpointContent
684
+ uuid = "B31EB68D-0E0F-4118-BF1E-FC9CCB47F03E"
685
+ shouldBeEnabled = "Yes"
686
+ ignoreCount = "0"
687
+ continueAfterRunningActions = "No"
688
+ filePath = "WebDriverAgentTests/IntegrationTests/XCUIDeviceHelperTests.m"
689
+ startingColumnNumber = "9223372036854775807"
690
+ endingColumnNumber = "9223372036854775807"
691
+ startingLineNumber = "67"
692
+ endingLineNumber = "67"
693
+ landmarkName = "-testLandscapeScreenshot"
694
+ landmarkType = "7">
695
+ </BreakpointContent>
696
+ </BreakpointProxy>
697
+ <BreakpointProxy
698
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
699
+ <BreakpointContent
700
+ uuid = "7407E8F4-877A-4DDF-8F6A-A9E9FA3D7EB3"
701
+ shouldBeEnabled = "No"
702
+ ignoreCount = "0"
703
+ continueAfterRunningActions = "No"
704
+ filePath = "WebDriverAgentLib/Utilities/FBImageIOScaler.m"
705
+ startingColumnNumber = "9223372036854775807"
706
+ endingColumnNumber = "9223372036854775807"
707
+ startingLineNumber = "146"
708
+ endingLineNumber = "146"
709
+ landmarkName = "-scaledImageWithImage:uti:rect:scalingFactor:compressionQuality:error:"
710
+ landmarkType = "7">
711
+ </BreakpointContent>
712
+ </BreakpointProxy>
713
+ <BreakpointProxy
714
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
715
+ <BreakpointContent
716
+ uuid = "C8229F5B-4277-4381-ABE5-5B54FB06EF54"
717
+ shouldBeEnabled = "No"
718
+ ignoreCount = "0"
719
+ continueAfterRunningActions = "No"
720
+ filePath = "WebDriverAgentLib/Utilities/FBImageIOScaler.m"
721
+ startingColumnNumber = "9223372036854775807"
722
+ endingColumnNumber = "9223372036854775807"
723
+ startingLineNumber = "149"
724
+ endingLineNumber = "149"
725
+ landmarkName = "-scaledImageWithImage:uti:rect:scalingFactor:compressionQuality:error:"
726
+ landmarkType = "7">
727
+ </BreakpointContent>
728
+ </BreakpointProxy>
729
+ <BreakpointProxy
730
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
731
+ <BreakpointContent
732
+ uuid = "E57763BD-AF14-412F-A467-F4A1E8D92D91"
733
+ shouldBeEnabled = "No"
734
+ ignoreCount = "0"
735
+ continueAfterRunningActions = "No"
736
+ filePath = "WebDriverAgentLib/Utilities/FBImageIOScaler.m"
737
+ startingColumnNumber = "9223372036854775807"
738
+ endingColumnNumber = "9223372036854775807"
739
+ startingLineNumber = "156"
740
+ endingLineNumber = "156"
741
+ landmarkName = "-scaledImageWithImage:uti:rect:scalingFactor:compressionQuality:error:"
742
+ landmarkType = "7">
743
+ </BreakpointContent>
744
+ </BreakpointProxy>
745
+ <BreakpointProxy
746
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
747
+ <BreakpointContent
748
+ uuid = "987055D5-4CC2-473A-8CF0-49BE5E4BADAF"
749
+ shouldBeEnabled = "No"
750
+ ignoreCount = "0"
751
+ continueAfterRunningActions = "No"
752
+ filePath = "WebDriverAgentLib/Utilities/FBImageIOScaler.m"
753
+ startingColumnNumber = "9223372036854775807"
754
+ endingColumnNumber = "9223372036854775807"
755
+ startingLineNumber = "157"
756
+ endingLineNumber = "157"
757
+ landmarkName = "-scaledImageWithImage:uti:rect:scalingFactor:compressionQuality:error:"
758
+ landmarkType = "7">
759
+ </BreakpointContent>
760
+ </BreakpointProxy>
761
+ <BreakpointProxy
762
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
763
+ <BreakpointContent
764
+ uuid = "79E80161-2798-4CA8-BE27-CD9BB7B2E576"
765
+ shouldBeEnabled = "Yes"
766
+ ignoreCount = "0"
767
+ continueAfterRunningActions = "No"
768
+ filePath = "WebDriverAgentLib/Utilities/FBImageIOScaler.m"
769
+ startingColumnNumber = "9223372036854775807"
770
+ endingColumnNumber = "9223372036854775807"
771
+ startingLineNumber = "124"
772
+ endingLineNumber = "124"
773
+ landmarkName = "-scaledImageWithImage:uti:rect:scalingFactor:compressionQuality:error:"
774
+ landmarkType = "7">
775
+ </BreakpointContent>
776
+ </BreakpointProxy>
777
+ <BreakpointProxy
778
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
779
+ <BreakpointContent
780
+ uuid = "806B9AFA-8F5D-4043-9D97-D9419CECEF37"
781
+ shouldBeEnabled = "Yes"
782
+ ignoreCount = "0"
783
+ continueAfterRunningActions = "No"
784
+ filePath = "WebDriverAgentLib/Utilities/FBScreenshot.m"
785
+ startingColumnNumber = "9223372036854775807"
786
+ endingColumnNumber = "9223372036854775807"
787
+ startingLineNumber = "74"
788
+ endingLineNumber = "74"
789
+ landmarkName = "+takeInOriginalResolutionWithQuality:rect:error:"
790
+ landmarkType = "7">
791
+ </BreakpointContent>
792
+ </BreakpointProxy>
793
+ <BreakpointProxy
794
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
795
+ <BreakpointContent
796
+ uuid = "22CF5998-BB36-4DD7-85CE-84D49C19D3D2"
797
+ shouldBeEnabled = "Yes"
798
+ ignoreCount = "0"
799
+ continueAfterRunningActions = "No"
800
+ filePath = "WebDriverAgentLib/Utilities/FBScreenshot.m"
801
+ startingColumnNumber = "9223372036854775807"
802
+ endingColumnNumber = "9223372036854775807"
803
+ startingLineNumber = "93"
804
+ endingLineNumber = "93"
805
+ landmarkName = "+takeInOriginalResolutionWithQuality:error:"
806
+ landmarkType = "7">
807
+ </BreakpointContent>
808
+ </BreakpointProxy>
809
+ <BreakpointProxy
810
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
811
+ <BreakpointContent
812
+ uuid = "D3AD5D9F-F9C3-43A6-9087-AAFDCD4B5005"
813
+ shouldBeEnabled = "No"
814
+ ignoreCount = "0"
815
+ continueAfterRunningActions = "No"
816
+ filePath = "WebDriverAgentLib/Commands/FBCustomCommands.m"
817
+ startingColumnNumber = "9223372036854775807"
818
+ endingColumnNumber = "9223372036854775807"
819
+ startingLineNumber = "340"
820
+ endingLineNumber = "340"
821
+ landmarkName = "+handleGetLocation:"
822
+ landmarkType = "7">
823
+ </BreakpointContent>
824
+ </BreakpointProxy>
825
+ <BreakpointProxy
826
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
827
+ <BreakpointContent
828
+ uuid = "2F01B40B-3CAC-41A2-B16A-F4B042B799FA"
829
+ shouldBeEnabled = "No"
830
+ ignoreCount = "0"
831
+ continueAfterRunningActions = "No"
832
+ filePath = "WebDriverAgentLib/Commands/FBCustomCommands.m"
833
+ startingColumnNumber = "9223372036854775807"
834
+ endingColumnNumber = "9223372036854775807"
835
+ startingLineNumber = "341"
836
+ endingLineNumber = "341"
837
+ landmarkName = "+handleGetLocation:"
838
+ landmarkType = "7">
839
+ </BreakpointContent>
840
+ </BreakpointProxy>
841
+ <BreakpointProxy
842
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
843
+ <BreakpointContent
844
+ uuid = "7CC7853E-FF88-4DA6-9A88-B5CFA89F19E4"
845
+ shouldBeEnabled = "No"
846
+ ignoreCount = "0"
847
+ continueAfterRunningActions = "No"
848
+ filePath = "WebDriverAgentTests/IntegrationTests/XCUIDeviceHelperTests.m"
849
+ startingColumnNumber = "9223372036854775807"
850
+ endingColumnNumber = "9223372036854775807"
851
+ startingLineNumber = "129"
852
+ endingLineNumber = "129"
853
+ landmarkName = "-testPressingSupportedButton"
854
+ landmarkType = "7">
855
+ </BreakpointContent>
856
+ </BreakpointProxy>
857
+ <BreakpointProxy
858
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
859
+ <BreakpointContent
860
+ uuid = "98E8247D-35CD-4457-9418-1FFE87DE6E6A"
861
+ shouldBeEnabled = "No"
862
+ ignoreCount = "0"
863
+ continueAfterRunningActions = "No"
864
+ filePath = "WebDriverAgentLib/Categories/XCUIDevice+FBHelpers.m"
865
+ startingColumnNumber = "9223372036854775807"
866
+ endingColumnNumber = "9223372036854775807"
867
+ startingLineNumber = "259"
868
+ endingLineNumber = "259"
869
+ landmarkName = "-fb_pressButton:forDuration:error:"
870
+ landmarkType = "7">
871
+ </BreakpointContent>
872
+ </BreakpointProxy>
873
+ <BreakpointProxy
874
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
875
+ <BreakpointContent
876
+ uuid = "88DEF201-FF0A-44FB-AD9A-64B3B7655B49"
877
+ shouldBeEnabled = "No"
878
+ ignoreCount = "0"
879
+ continueAfterRunningActions = "No"
880
+ filePath = "WebDriverAgentLib/Categories/XCUIDevice+FBHelpers.m"
881
+ startingColumnNumber = "9223372036854775807"
882
+ endingColumnNumber = "9223372036854775807"
883
+ startingLineNumber = "262"
884
+ endingLineNumber = "262"
885
+ landmarkName = "-fb_pressButton:forDuration:error:"
886
+ landmarkType = "7">
887
+ </BreakpointContent>
888
+ </BreakpointProxy>
889
+ <BreakpointProxy
890
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
891
+ <BreakpointContent
892
+ uuid = "600F9490-99C4-4BEE-86AC-6ADAEDB54A2B"
893
+ shouldBeEnabled = "No"
894
+ ignoreCount = "0"
895
+ continueAfterRunningActions = "No"
896
+ filePath = "WebDriverAgentLib/Commands/FBCustomCommands.m"
897
+ startingColumnNumber = "9223372036854775807"
898
+ endingColumnNumber = "9223372036854775807"
899
+ startingLineNumber = "247"
900
+ endingLineNumber = "247"
901
+ landmarkName = "+handlePressButtonCommand:"
902
+ landmarkType = "7">
903
+ </BreakpointContent>
904
+ </BreakpointProxy>
905
+ </Breakpoints>
906
+ </Bucket>
@@ -4,55 +4,40 @@
4
4
  <dict>
5
5
  <key>SchemeUserState</key>
6
6
  <dict>
7
- <key>IntegrationApp.xcscheme_^#shared#^_</key>
8
- <dict>
9
- <key>orderHint</key>
10
- <integer>0</integer>
11
- </dict>
12
- <key>IntegrationTests_1.xcscheme_^#shared#^_</key>
13
- <dict>
14
- <key>orderHint</key>
15
- <integer>1</integer>
16
- </dict>
17
- <key>IntegrationTests_2.xcscheme_^#shared#^_</key>
18
- <dict>
19
- <key>orderHint</key>
20
- <integer>2</integer>
21
- </dict>
22
- <key>IntegrationTests_3.xcscheme_^#shared#^_</key>
7
+ <key>IntegrationApp.xcscheme</key>
23
8
  <dict>
24
9
  <key>orderHint</key>
25
10
  <integer>3</integer>
26
11
  </dict>
27
- <key>WebDriverAgentLib copy.xcscheme_^#shared#^_</key>
12
+ <key>IntegrationApp.xcscheme_^#shared#^_</key>
28
13
  <dict>
29
14
  <key>orderHint</key>
30
- <integer>9</integer>
15
+ <integer>5</integer>
31
16
  </dict>
32
17
  <key>WebDriverAgentLib.xcscheme_^#shared#^_</key>
33
18
  <dict>
34
19
  <key>orderHint</key>
35
- <integer>4</integer>
20
+ <integer>0</integer>
36
21
  </dict>
37
22
  <key>WebDriverAgentLib_tvOS.xcscheme_^#shared#^_</key>
38
23
  <dict>
39
24
  <key>orderHint</key>
40
- <integer>5</integer>
25
+ <integer>3</integer>
41
26
  </dict>
42
27
  <key>WebDriverAgentRunner-nodebug.xcscheme_^#shared#^_</key>
43
28
  <dict>
44
29
  <key>orderHint</key>
45
- <integer>7</integer>
30
+ <integer>2</integer>
46
31
  </dict>
47
32
  <key>WebDriverAgentRunner.xcscheme_^#shared#^_</key>
48
33
  <dict>
49
34
  <key>orderHint</key>
50
- <integer>6</integer>
35
+ <integer>1</integer>
51
36
  </dict>
52
37
  <key>WebDriverAgentRunner_tvOS.xcscheme_^#shared#^_</key>
53
38
  <dict>
54
39
  <key>orderHint</key>
55
- <integer>8</integer>
40
+ <integer>4</integer>
56
41
  </dict>
57
42
  </dict>
58
43
  </dict>
Binary file
@@ -75,12 +75,19 @@ NS_ASSUME_NONNULL_BEGIN
75
75
  - (BOOL)fb_openUrl:(NSString *)url error:(NSError **)error;
76
76
 
77
77
  /**
78
- Presses the corresponding hardware button on the device
78
+ Presses the corresponding hardware button on the device with duration.
79
79
 
80
80
  @param buttonName One of the supported button names: volumeUp (real devices only), volumeDown (real device only), home
81
+ @param duration Duration in seconds or nil.
82
+ This argument works only on tvOS. When this argument is nil on tvOS,
83
+ https://developer.apple.com/documentation/xctest/xcuiremote/1627476-pressbutton will be called.
84
+ Others are https://developer.apple.com/documentation/xctest/xcuiremote/1627475-pressbutton.
85
+ A single tap when this argument is `nil` is equal to when the duration is 0.005 seconds in XCTest.
86
+ On iOS, this value will be ignored. It always calls https://developer.apple.com/documentation/xctest/xcuidevice/1619052-pressbutton
81
87
  @return YES if the button has been pressed
82
88
  */
83
- - (BOOL)fb_pressButton:(NSString *)buttonName error:(NSError **)error;
89
+ - (BOOL)fb_pressButton:(NSString *)buttonName forDuration:(nullable NSNumber *)duration error:(NSError **)error;
90
+
84
91
 
85
92
  /**
86
93
  Activates Siri service voice recognition with the given text to parse
@@ -92,7 +99,7 @@ NS_ASSUME_NONNULL_BEGIN
92
99
  - (BOOL)fb_activateSiriVoiceRecognitionWithText:(NSString *)text error:(NSError **)error;
93
100
 
94
101
  /**
95
- Eumlated triggering of the given low-level IOHID device event. The constants for possible events are defined
102
+ Emulated triggering of the given low-level IOHID device event. The constants for possible events are defined
96
103
  in https://unix.superglobalmegacorp.com/xnu/newsrc/iokit/IOKit/hidsystem/IOHIDUsageTables.h.html
97
104
  Popular constants:
98
105
  - kHIDPage_Consumer = 0x0C
@@ -103,7 +110,7 @@ NS_ASSUME_NONNULL_BEGIN
103
110
  - kHIDUsage_Csmr_Snapshot = 0x65 (Power + Home)
104
111
 
105
112
  @param page The event page identifier
106
- @param usage The event usage indentifier (usages are defined per-page)
113
+ @param usage The event usage identifier (usages are defined per-page)
107
114
  @param duration The event duration in float seconds (XCTest uses 0.005 for a single press event)
108
115
  @param error If there is an error, upon return contains an NSError object that describes the problem.
109
116
  @return YES the event has successfully been triggered
@@ -190,9 +190,13 @@ static bool fb_isLocked;
190
190
  }
191
191
  }
192
192
 
193
- #if TARGET_OS_TV
194
- - (BOOL)fb_pressButton:(NSString *)buttonName error:(NSError **)error
193
+ - (BOOL)fb_pressButton:(NSString *)buttonName
194
+ forDuration:(nullable NSNumber *)duration
195
+ error:(NSError **)error
195
196
  {
197
+ #if !TARGET_OS_TV
198
+ return [self fb_pressButton:buttonName error:error];
199
+ #else
196
200
  NSMutableArray<NSString *> *supportedButtonNames = [NSMutableArray array];
197
201
  NSInteger remoteButton = -1; // no remote button
198
202
  if ([buttonName.lowercaseString isEqualToString:@"home"]) {
@@ -249,12 +253,22 @@ static bool fb_isLocked;
249
253
  withDescriptionFormat:@"The button '%@' is unknown. Only the following button names are supported: %@", buttonName, supportedButtonNames]
250
254
  buildError:error];
251
255
  }
252
- [[XCUIRemote sharedRemote] pressButton:remoteButton];
256
+
257
+ if (duration) {
258
+ // https://developer.apple.com/documentation/xctest/xcuiremote/1627475-pressbutton
259
+ [[XCUIRemote sharedRemote] pressButton:remoteButton forDuration:duration.doubleValue];
260
+ } else {
261
+ // https://developer.apple.com/documentation/xctest/xcuiremote/1627476-pressbutton
262
+ [[XCUIRemote sharedRemote] pressButton:remoteButton];
263
+ }
264
+
253
265
  return YES;
266
+ #endif
254
267
  }
255
- #else
256
268
 
257
- - (BOOL)fb_pressButton:(NSString *)buttonName error:(NSError **)error
269
+ #if !TARGET_OS_TV
270
+ - (BOOL)fb_pressButton:(NSString *)buttonName
271
+ error:(NSError **)error
258
272
  {
259
273
  NSMutableArray<NSString *> *supportedButtonNames = [NSMutableArray array];
260
274
  XCUIDeviceButton dstButton = 0;
@@ -243,7 +243,9 @@
243
243
  + (id<FBResponsePayload>)handlePressButtonCommand:(FBRouteRequest *)request
244
244
  {
245
245
  NSError *error;
246
- if (![XCUIDevice.sharedDevice fb_pressButton:(id)request.arguments[@"name"] error:&error]) {
246
+ if (![XCUIDevice.sharedDevice fb_pressButton:(id)request.arguments[@"name"]
247
+ forDuration:(NSNumber *)request.arguments[@"duration"]
248
+ error:&error]) {
247
249
  return FBResponseWithUnknownError(error);
248
250
  }
249
251
  return FBResponseWithOK();
Binary file
@@ -119,14 +119,28 @@
119
119
  - (void)testPressingUnsupportedButton
120
120
  {
121
121
  NSError *error;
122
- XCTAssertFalse([XCUIDevice.sharedDevice fb_pressButton:@"volumeUpp" error:&error]);
122
+ NSNumber *duration = nil;
123
+ XCTAssertFalse([XCUIDevice.sharedDevice fb_pressButton:@"volumeUpp"
124
+ forDuration:duration
125
+ error:&error]);
123
126
  XCTAssertNotNil(error);
124
127
  }
125
128
 
126
129
  - (void)testPressingSupportedButton
127
130
  {
128
131
  NSError *error;
129
- XCTAssertTrue([XCUIDevice.sharedDevice fb_pressButton:@"home" error:&error]);
132
+ XCTAssertTrue([XCUIDevice.sharedDevice fb_pressButton:@"home"
133
+ forDuration:nil
134
+ error:&error]);
135
+ XCTAssertNil(error);
136
+ }
137
+
138
+ - (void)testPressingSupportedButtonNumber
139
+ {
140
+ NSError *error;
141
+ XCTAssertTrue([XCUIDevice.sharedDevice fb_pressButton:@"home"
142
+ forDuration:[NSNumber numberWithDouble:1.0]
143
+ error:&error]);
130
144
  XCTAssertNil(error);
131
145
  }
132
146
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appium-webdriveragent",
3
- "version": "3.8.0",
3
+ "version": "3.9.2",
4
4
  "description": "Package bundling WebDriverAgent",
5
5
  "main": "build/index.js",
6
6
  "scripts": {
@@ -15,7 +15,7 @@
15
15
  "lint:fix": "gulp eslint --fix",
16
16
  "precommit-msg": "echo 'Pre-commit checks...' && exit 0",
17
17
  "precommit-test": "gulp lint",
18
- "bundle": "node ./ci-jobs/scripts/build-webdriveragent.js",
18
+ "bundle": "node ./Scripts/build-webdriveragent.js",
19
19
  "fetch-prebuilt-wda": "node ./Scripts/fetch-prebuilt-wda"
20
20
  },
21
21
  "bin": {
@@ -78,6 +78,7 @@
78
78
  "build/lib",
79
79
  "Scripts/build.sh",
80
80
  "Scripts/fetch-prebuilt-wda.js",
81
+ "Scripts/build-webdriveragent.js",
81
82
  "Cartfile",
82
83
  "Cartfile.resolved",
83
84
  "Configurations",
Binary file
@@ -1,35 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Bucket
3
- uuid = "2F0174F2-ED3F-4D11-9A17-7C590053D796"
4
- type = "1"
5
- version = "2.0">
6
- <Breakpoints>
7
- <BreakpointProxy
8
- BreakpointExtensionID = "Xcode.Breakpoint.ExceptionBreakpoint">
9
- <BreakpointContent
10
- uuid = "471ECA8C-2C53-4C59-88DB-1C1CB3D61601"
11
- shouldBeEnabled = "No"
12
- ignoreCount = "0"
13
- continueAfterRunningActions = "No"
14
- breakpointStackSelectionBehavior = "1"
15
- scope = "1"
16
- stopOnStyle = "0">
17
- </BreakpointContent>
18
- </BreakpointProxy>
19
- <BreakpointProxy
20
- BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
21
- <BreakpointContent
22
- uuid = "C2E06865-6A52-4686-9771-279AF13ABF8A"
23
- shouldBeEnabled = "Yes"
24
- ignoreCount = "0"
25
- continueAfterRunningActions = "No"
26
- filePath = "WebDriverAgentLib/Categories/XCUIElement+FBUtilities.m"
27
- timestampString = "0"
28
- startingColumnNumber = "9223372036854775807"
29
- endingColumnNumber = "9223372036854775807"
30
- startingLineNumber = "264"
31
- endingLineNumber = "264">
32
- </BreakpointContent>
33
- </BreakpointProxy>
34
- </Breakpoints>
35
- </Bucket>
Binary file
Binary file