Really anybody don't have any idea ? ..Appium Performance is very slow for XCUIElement:-

Hi All,

I am writing below script for login screen but appium taking too much time (like 2 to 3 min) for run script :-

Script:-

wait.until(ExpectedConditions.visibilityOfElementLocated(MobileBy.iOSNsPredicateString(“value == ‘Password’”))).sendKeys(“welcome101”);
driver.hideKeyboard();
wait.until(ExpectedConditions.visibilityOfElementLocated(MobileBy.iOSNsPredicateString(“name == ‘Continue’ and label == ‘Continue’”))).click();

DC:-
DesiredCapabilities cap = new DesiredCapabilities();
cap.setCapability(MobileCapabilityType.DEVICE_NAME, “iPad”);
cap.setCapability(“udid”, “XXCCCYYYYASDFASDF”);
cap.setCapability(“automationName”, “XCUITest”);
cap.setCapability(“platformName”, “ios”);
cap.setCapability(“bundleId”, “com.vw.test2go”);
driver = new IOSDriver(new URL(“https://127.0.0.1:4723/wd/hub”), cap);

Page source:-

<?xml version="1.0" encoding="UTF-8"?>
                      <XCUIElementTypeStaticText type="XCUIElementTypeStaticText" value="The Service &amp; Repair App" name="The Service &amp; Repair App" label="The Service &amp; Repair App" enabled="true" visible="true" x="412" y="220" width="200" height="22"/>
                    </XCUIElementTypeOther>
                    <XCUIElementTypeOther type="XCUIElementTypeOther" enabled="true" visible="true" x="307" y="287" width="410" height="47">
                      <XCUIElementTypeImage type="XCUIElementTypeImage" enabled="true" visible="true" x="324" y="299" width="26" height="25"/>
                      <XCUIElementTypeTextField type="XCUIElementTypeTextField" value="testprovw41" label="" enabled="true" visible="true" x="364" y="294" width="218" height="34"/>
                    </XCUIElementTypeOther>
                    <XCUIElementTypeOther type="XCUIElementTypeOther" enabled="true" visible="true" x="307" y="333" width="410" height="47">
                      <XCUIElementTypeImage type="XCUIElementTypeImage" enabled="true" visible="true" x="326" y="345" width="21" height="25"/>
                      <XCUIElementTypeSecureTextField type="XCUIElementTypeSecureTextField" value="Password" enabled="true" visible="true" x="364" y="340" width="218" height="34"/>
                    </XCUIElementTypeOther>
                    <XCUIElementTypeOther type="XCUIElementTypeOther" enabled="true" visible="true" x="307" y="379" width="410" height="77">
                      <XCUIElementTypeButton type="XCUIElementTypeButton" name="Continue" label="Continue" enabled="true" visible="true" x="307" y="409" width="410" height="47"/>
                    </XCUIElementTypeOther>
                    <XCUIElementTypeOther type="XCUIElementTypeOther" enabled="true" visible="true" x="0" y="504" width="1024" height="125">
                    <XCUIElementTypeWindow type="XCUIElementTypeWindow" enabled="true" visible="false" x="0" y="0" width="1024" height="768">
<XCUIElementTypeStatusBar type="XCUIElementTypeStatusBar" enabled="true" visible="false" x="0" y="0" width="1024" height="20">
  <XCUIElementTypeOther type="XCUIElementTypeOther" enabled="true" visible="false" x="0" y="0" width="1024" height="20"/>
  <XCUIElementTypeOther type="XCUIElementTypeOther" enabled="true" visible="false" x="0" y="0" width="1024" height="20">
    <XCUIElementTypeOther type="XCUIElementTypeOther" name="No SIM" label="No SIM" enabled="true" visible="false" x="6" y="0" width="41" height="20"/>
    <XCUIElementTypeOther type="XCUIElementTypeOther" value="SSID" name="3 of 3 Wi-Fi bars" label="3 of 3 Wi-Fi bars" enabled="true" visible="false" x="52" y="0" width="13" height="20"/>