Fix platformVersion in Java sample code
MODIFY
sample-code/java/src/IOSBasicInteractionsTest.java
sample-code/java/src/IOSBasicInteractionsTest.java
@@ -24,7 +24,7 @@ public class IOSBasicInteractionsTest extends BaseTest {
String platformVersion = System.getenv("IOS_PLATFORM_VERSION");
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("deviceName", deviceName == null ? "iPhone 6s" : deviceName);
- capabilities.setCapability("platformVerison", platformVersion == null ? "11.1" : platformVersion);
+ capabilities.setCapability("platformVersion", platformVersion == null ? "11.1" : platformVersion);
capabilities.setCapability("app", app.getAbsolutePath());
capabilities.setCapability("automationName", "XCUITest");
driver = new IOSDriver<WebElement>(getServiceUrl(), capabilities);

MODIFY
sample-code/java/src/IOSCreateSessionTest.java
sample-code/java/src/IOSCreateSessionTest.java
@@ -22,7 +22,7 @@ public class IOSCreateSessionTest extends BaseTest {
String platformVersion = System.getenv("IOS_PLATFORM_VERSION");
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("deviceName", deviceName == null ? "iPhone 6s" : deviceName);
- capabilities.setCapability("platformVerison", platformVersion == null ? "11.1" : platformVersion);
+ capabilities.setCapability("platformVersion", platformVersion == null ? "11.1" : platformVersion);
capabilities.setCapability("app", app.getAbsolutePath());
capabilities.setCapability("automationName", "XCUITest");
driver = new IOSDriver<WebElement>(getServiceUrl(), capabilities);

MODIFY
sample-code/java/src/IOSCreateWebSessionTest.java
sample-code/java/src/IOSCreateWebSessionTest.java
@@ -17,7 +17,7 @@ public class IOSCreateWebSessionTest extends BaseTest {
String platformVersion = System.getenv("IOS_PLATFORM_VERSION");
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("deviceName", deviceName == null ? "iPhone 6s" : deviceName);
- capabilities.setCapability("platformVerison", platformVersion == null ? "11.1" : platformVersion);
+ capabilities.setCapability("platformVersion", platformVersion == null ? "11.1" : platformVersion);
capabilities.setCapability("browserName", "Safari");
capabilities.setCapability("automationName", "XCUITest");
driver = new IOSDriver<WebElement>(getServiceUrl(), capabilities);

MODIFY
sample-code/java/src/IOSSelectorsTest.java
sample-code/java/src/IOSSelectorsTest.java
@@ -21,7 +21,7 @@ public class IOSSelectorsTest extends BaseTest {
String platformVersion = System.getenv("IOS_PLATFORM_VERSION");
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("deviceName", deviceName == null ? "iPhone 6s" : deviceName);
- capabilities.setCapability("platformVerison", platformVersion == null ? "11.1" : platformVersion);
+ capabilities.setCapability("platformVersion", platformVersion == null ? "11.1" : platformVersion);
capabilities.setCapability("app", app.getAbsolutePath());
capabilities.setCapability("automationName", "XCUITest");
driver = new IOSDriver<WebElement>(getServiceUrl(), capabilities);

Fix platformVersion in Java sample code (#11356)