File tree Expand file tree Collapse file tree
src/e2eIosTest/java/io/appium/java_client/ios Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818
1919import io .appium .java_client .service .local .AppiumDriverLocalService ;
2020import io .appium .java_client .service .local .AppiumServiceBuilder ;
21+ import io .appium .java_client .service .local .flags .GeneralServerFlag ;
2122import org .junit .jupiter .api .AfterAll ;
2223
2324import java .time .Duration ;
@@ -49,6 +50,7 @@ public static AppiumDriverLocalService startAppiumServer() {
4950 .withIPAddress ("127.0.0.1" )
5051 .usingPort (PORT )
5152 .withTimeout (SERVER_START_TIMEOUT )
53+ .withArgument (GeneralServerFlag .ALLOW_INSECURE , "*:session_discovery" )
5254 .build ();
5355 service .start ();
5456 return service ;
Original file line number Diff line number Diff line change @@ -57,10 +57,10 @@ public void addCustomCommandTest() {
5757
5858 @ Test
5959 public void addCustomCommandWithSessionIdTest () {
60- driver .addCommand (HttpMethod .POST , "/session/" + driver .getSessionId () + "/appium/capabilities " ,
61- "getSessionCapabilities " );
62- final Response getSessionCapabilities = driver .execute ("getSessionCapabilities " );
63- assertNotNull (getSessionCapabilities .getSessionId ());
60+ driver .addCommand (HttpMethod .GET , "/session/" + driver .getSessionId () + "/appium/settings " ,
61+ "getSessionSettings " );
62+ final Response getSessionSettings = driver .execute ("getSessionSettings " );
63+ assertNotNull (getSessionSettings .getSessionId ());
6464 }
6565
6666 @ Test
You can’t perform that action at this time.
0 commit comments