• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Home
  • Programming Languages
    • Java Tutorials
    • Python Tutorials
    • JavaScript Tutorials
  • Automation Tools and Different Tools
    • Web Automation
      • Selenium with Java
        • Selenium Basic
        • Selenium Advance
        • Selenium Realtime
        • Framework
        • Selenium Interview
        • Selenium Videos
        • Selenium with Docker
      • Selenium with Python
      • WebdriverIO
        • Selenium Webdriver C# Tutorial
      • Cypress
      • Playwright
    • TestNG
    • Cucumber
    • Mobile Automation
      • Appium
    • API Testing
      • Postman
      • Rest Assured
      • SOAPUI
    • testRigor
    • Katalon
    • TestProject
    • Serenity BDD
    • Gradle- Build Tool
    • RPA-UiPath
    • Protractor
    • Windows Automation
  • Automation For Manual Testers
  • Services
  • Online Training
  • Contact us
  • About me
  • Follow us
    • Linkedin
    • Facebook Group
    • Facebook Page
    • Instagram

Automation

Selenium WebDriver tutorial Step by Step

You are here: Home / Appium Tutorials / How to Automate IOS app using Appium Framework in Selenium

How to Automate IOS app using Appium Framework in Selenium

October 6, 2016 by Mukesh Otwani 8 Comments

Automate ios app using appium

In the previous section, we have already discussed automating native and web application on Android Device using appium and this article will mainly guide you How to Automate IOS app using Appium Framework which runs on safari Browser.

Automate ios app using appium

Appium is one of the popular tools to automate mobile web, native and hybrid application and it has the power of handling basic to complex gesture as well.

Automate ios app using appium

 

 

Installation Steps

1- Java- You can download any version of Java but recommended is Java 8.

2- Eclipse- You can  use any version of Eclipse but latest in Eclipse Neon and trust me it’s more user-friendly.

3- Java-Client- It is jar file which will have all advanced methods for appium(mobile actions)

4- Appium- You need appium server which will redirect all command to the mobile device. You can install this using cmd or you can download dmg file as well.

5- XCode-  Which will help you to run test cases on Emulator and on real devices as well.

I have uploaded the PPT on SlideShare which I used in video

 

Complete video for Automate ios app using appium

 

Program Automate ios app using appium

import java.net.MalformedURLException;
import java.net.URL;
import org.openqa.selenium.remote.CapabilityType;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.testng.annotations.Test;

import io.appium.java_client.ios.IOSDriver;

public class TestIOSSafariBrowser {

	@Test
	public void startBrowser() throws MalformedURLException {
                
                // Create Object of DesiredCapability class 
		DesiredCapabilities capabilities = new DesiredCapabilities();

                // Set the device Name- You can change based on your requirement
		capabilities.setCapability("deviceName", "iPhone 6");

                // Set the platform name- This will ramain same 
		capabilities.setCapability("platformName", "iOS");
                 
                // This the version- it is important so change it if required 
		capabilities.setCapability("platformVersion", "9.1");

                // set the browser in Emulator
		capabilities.setCapability(CapabilityType.BROWSER_NAME, "safari");

                // pass the capability object and start the session
		IOSDriver driver = new IOSDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);

                // Open any web application which you want to Test
		driver.get("https://learn-automation.com");

                // Perform any operation- In my case I just used title of Page.
		System.out.println("Page title is " + driver.getTitle());

	}

}

 

[thrive_text_block color=”blue” headline=”Some important point- “]

Emulators are slow so have patience it will work but you will get the accurate result (95 %).

If XCode is not starting the Emulator then you can try creating emulator manually first.

[/thrive_text_block]

 

I hope above article helped you. If yes then share with your friends and let me know your thought in the comment section.

 

Filed Under: Appium Tutorials Tagged With: Automate ios app using appium, Automate mobile web browser in Selenium

Reader Interactions

Comments

  1. Divakar says

    September 5, 2019 at 5:36 PM

    Hi Mukesh can you please list the steps how to run appium script on ios real device i want to automate safari and setting app

    Reply
    • Mukesh Otwani says

      September 6, 2019 at 7:19 PM

      Hi Divakar,

      Please refer this link https://www.youtube.com/watch?v=4RiieiylcnU&list=PL6flErFppaj20yvWkrYv6yO_I3jJWvYTj

      Reply
  2. Aadesh Raj says

    January 19, 2017 at 3:59 PM

    Hi Mukesh,

    One common question in Appium interview is – which framework was implimented in your project ?

    Can you please let us know that which framework is implemented in Mobile automation script ? Can we use same framework which we used in Selenium ?

    Reply
    • Mukesh Otwani says

      January 24, 2017 at 4:55 PM

      Hi Aadesh,

      We use hybrid framework only for Selenium and for appium both.

      Reply
  3. Santhoshkumar Muralikrishnan says

    October 21, 2016 at 7:35 AM

    Hi Mukesh,

    How to run Appium for IOS on windows?

    Reply
    • Mukesh Otwani says

      November 6, 2016 at 10:20 AM

      Hi Santhosh,

      Here you go https://www.youtube.com/watch?v=NUGUrjtYjHY

      Reply
      • shiva says

        January 18, 2017 at 10:44 AM

        Sorry mukesh, didnt get any info on how to run Appium for IOS on windows machine in that video… could you help me out

        Reply
        • Mukesh Otwani says

          January 19, 2017 at 12:31 PM

          Hi Shiva,

          For IOS check this https://www.youtube.com/watch?v=ySglJIrDVMQ

          Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Free Selenium Videos

https://www.youtube.com/watch?v=w_iPCT1ETO4

Search topic

Top Posts & Pages

  • Selenium Webdriver tutorial for beginners
  • How To Fix Eclipse Autocomplete Or Code Suggestion In Eclipse
  • Selenium Webdriver C# Tutorial
  • WHAT ARE YOUR EXPECTATIONS FROM US?

Stay connected via Facebook

Stay connected via Facebook

Archives

Footer

Categories

Recent Post

  • Syllabus For Playwright Online Training Program
  • API Testing Using Postman And RestAssured
  • Disable Personalise Your Web Experience Microsoft Edge Prompt In Selenium
  • How To Fix Error: No tests found In Playwright
  • How To Fix Eclipse Autocomplete Or Code Suggestion In Eclipse

Top Posts & Pages

  • Selenium Webdriver tutorial for beginners
  • How To Fix Eclipse Autocomplete Or Code Suggestion In Eclipse
  • Selenium Webdriver C# Tutorial
  • WHAT ARE YOUR EXPECTATIONS FROM US?