File tree 1 file changed +15
-13
lines changed
src/main/java/io/appium/java_client/remote
1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -264,21 +264,23 @@ public void writeTo(Appendable appendable) throws IOException {
264
264
json .name (DESIRED_CAPABILITIES );
265
265
json .write (first );
266
266
267
- // And write the first capability for gecko13
268
- json .name (CAPABILITIES );
269
- json .beginObject ();
267
+ if (!forceMobileJSONWP ) {
268
+ // And write the first capability for gecko13
269
+ json .name (CAPABILITIES );
270
+ json .beginObject ();
270
271
271
- json .name (ALWAYS_MATCH );
272
- getW3C ().forEach (json ::write );
273
-
274
- json .name (FIRST_MATCH );
275
- json .beginArray ();
276
- //noinspection unchecked
277
- json .beginObject ();
278
- json .endObject ();
279
- json .endArray ();
272
+ json .name (ALWAYS_MATCH );
273
+ getW3C ().forEach (json ::write );
280
274
281
- json .endObject (); // Close "capabilities" object
275
+ json .name (FIRST_MATCH );
276
+ json .beginArray ();
277
+ //noinspection unchecked
278
+ json .beginObject ();
279
+ json .endObject ();
280
+ json .endArray ();
281
+
282
+ json .endObject (); // Close "capabilities" object
283
+ }
282
284
283
285
writeMetaData (json );
284
286
You can’t perform that action at this time.
0 commit comments