@kumarsiva
Am using below code is this ok or should i change anything in this
File appDir = new File("src");
File app =new File(appDir,"test.app");
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("platformName", "iOS");
capabilities.setCapability("platformversion", "11.0");
capabilities.setCapability("deviceName", "iphone Simulator");
capabilities.setCapability("automationName", "XCUITest");
capabilities.setCapability(MobileCapabilityType.APP,app.getAbsolutePath());
IOSDriver driver = new IOSDriver(new URL("http://127.0.0.1:4723/wd/hub"),capabilities);
driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);
driver.findElementByAccessibilityId("menuwhite48").click();
driver.findElementByAccessibilityId("Login").click(); //Contact
Thread.sleep(200);
driver.findElement(By.xpath("//XCUIElementTypeTextField[@value=‘Email’]")).click();
driver.hideKeyboard();
driver.findElement(By.xpath("//XCUIElementTypeTextField[@value=‘Email’]")).sendKeys("test");
driver.findElement(By.xpath("//XCUIElementTypeSecureTextField[@value=‘Password’]")).click();
driver.hideKeyboard();
driver.findElement(By.xpath("//XCUIElementTypeSecureTextField[@value=‘Password’]")).sendKeys(“raks”);
Thread.sleep(90000);