Skip to content

Commit 78ad75a

Browse files
committed
complexFind
1 parent 69093b0 commit 78ad75a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/io/appium/java_client/AppiumDriver.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ public AppiumDriver(URL remoteAddress, Capabilities desiredCapabilities){
6161
.put(END_TEST_COVERAGE, postC("/session/:sessionId/appium/app/end_test_coverage"))
6262
.put(LOCK, postC("/session/:sessionId/appium/device/lock"))
6363
.put(SHAKE, postC("/session/:sessionId/appium/device/shake"))
64+
.put(COMPLEX_FIND, postC("/session/:sessionId/appium/app/complex_find"))
6465
;
6566
ImmutableMap<String, CommandInfo> mobileCommands = builder.build();
6667

@@ -446,6 +447,12 @@ public void shake() {
446447
execute(SHAKE);
447448
}
448449

450+
public String complexFind(String[] complex) {
451+
Response response = execute(COMPLEX_FIND, ImmutableMap.of("selector", complex));
452+
453+
return response.toString();
454+
}
455+
449456

450457

451458

src/io/appium/java_client/MobileCommand.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public interface MobileCommand {
4343
String END_TEST_COVERAGE = "endTestCoverage";
4444
String LOCK = "lock";
4545
String SHAKE = "shake";
46+
String COMPLEX_FIND = "complexFind";
4647

4748

4849
}

0 commit comments

Comments
 (0)