

Mac, Sierra, Win10 (iPhone/iPad, or Android for mobile) environment: Local, remote, and Sauce Labs optPrefs: Map of driver preferences (this will be covered later in detail) Class methods. SECONDS) ĭriver.findElement(By.xpath("//UIAApplication/UIAWindow/UIASecureTextField/UIASecureTextField" )).sendKeys("kishan" ) Ģ. Selenium standalone server and client drivers. String args = ĭriver.findElement(By.xpath("//UIAApplication/UIAWindow/UIAAlert/UIACollectionView/UIACollectionCell/UIAButton" )).click() driver.findElement(By.xpath("//UIAApplication/UIAWindow/UIAButton" )).click() driver.findElement(By.xpath("//UIAApplication/UIAWindow/UIATextField" )).sendKeys("kishan" ) ĭriver.manage().timeouts().implicitlyWait(60, TimeUnit.

IOSDriver driver = new IOSDriver( new URL( " "),cap) Consequently, it is as shown below: As we can see in the above screenshot, few Selenium WebDriver jar files are directly under the 'selenium-java-4.0.0-alpha' folder. Make your test is ready, This could be your selenium script to launch browser in iPhone from simulator Sample Script: DesiredCapabilities cap = new DesiredCapabilities() Ĭap.setCapability( "deviceName", "iPad Air") Ĭap.setCapability( "platformName", "iOS") Ĭap.setCapability( "platformVersion", "9.3") As we are using 'Selenium -4 ', so we will be adding all the jar files provided by 'Selenium 4.0.0 -alpha '. Make sure all the the requirements met before start actual testġ. M2 folder along with repository (If you are working with Maven) Process: Make sure correct settings.xml is present in.

Check Appium doctor for all configurationĩ. Set Java path from bash_profile -JAVA_HOMEĨ. Selenium-Java, Selenium-Server jar – maven / or Download Selenium standalone server (make sure that it is working sample selenium sript)ħ. Xcode command line tool – Download & InstallĦ. Xcode (Version 7.3.1 recommended ) – Download & Installģ. Appium (Version 1.5.3 recommeded)- Download & InstallĢ.
