GithubHelp home page GithubHelp logo

janijegoroff / facebook-ios-sdk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from facebook/facebook-ios-sdk

0.0 3.0 0.0 17.79 MB

Simple Calabash/Sikuli example for a classic problem: Facebook login

License: Apache License 2.0

Ruby 0.11% Python 0.47% Shell 1.39% Objective-C 97.89% C 0.10% C++ 0.03%

facebook-ios-sdk's Introduction

Motivation

This simple example provides one solution for a classic problem: automating Facebook login scenarios for iOS.

Facebook iOS SDK example application Scrumptious is used for a demo.

Problem

When automation Facebook login scenarios application context is switched from native application to a browser. Unfortunately, Calabash does not have a control in that browser window.

Solution

When working with simulators, one solution is to handle Facebook login in a browser utilising Sikuli framework: http://www.sikulix.com/.

See screencast: http://screencast.com/t/BP9IHRjQ1f

Environment

Xcode 6.1.1

Calabash 0.11.4

run_loop 1.1.1.pre3

iPhone 6 8.1 simulator

SikuliX (Build 1.1.0 2014-12-18_01:01nightly)

How to run this example

  1. Install SikuliX
  2. Set SIKULIX_HOME
  3. Download Facebook SDK for iOS and follow setup instructions
  4. Run bundle
  5. Create Sikuli Facebook login script. See example: https://github.com/JaniJegoroff/facebook-ios-sdk/tree/master/samples/Scrumptious/facebook-login.sikuli
  6. Modify Sikuli script path if needed. See https://github.com/JaniJegoroff/facebook-ios-sdk/blob/master/samples/Scrumptious/features/support/utils.rb#L2
  7. Build the project for iPhone 6 8.1 Simulator
  8. Run cucumber

facebook-ios-sdk's People

Contributors

alexjeng avatar aselekman avatar bdewey avatar bgold avatar briantkelley avatar chrisblizzard avatar chrisp-fb avatar christopherb avatar ekoneil avatar gcaglar avatar gregschechter avatar janijegoroff avatar kilink avatar laughingguitarist avatar lshepard avatar ma11hew28 avatar mingflifb avatar mvernal avatar n3tr avatar onebit avatar raghuc avatar seshness avatar suhasjoshi avatar toddkrabach avatar vijaye avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.