Giter Club home page Giter Club logo

appium-ios-simulator's Introduction

appium-ios-simulator

NPM version Downloads

Appium API for dealing with iOS simulators. The API enables you to use the following features:

  • query locations of Simulator-specific directories and applications
  • read/write access to Simulator settings
  • full control over starting and stopping simulators
  • deal with biometric auth, geolocation settings, application permissions, and others

Usage

async getSimulator(udid)

This is the main entry of this module. This function returns a simulator object (see below) associated with the udid passed in. If an iOS simulator with the given udid does not exist already on this machine, it will throw an error.

If you want to create a new simulator, you can use the createDevice() method of node-simctl.

import { getSimulator } from 'appium-ios-simulator';
import assert from 'node:assert/strict';

const sim = await getSimulator('DAE95172-0788-4A85-8D0D-5C85509109E1');
await sim.run();
assert.equal('Booted', (await sim.stat()).state);
await sim.shutdown();
assert.equal('Shutdown', (await sim.stat()).state);

Third-party tools

The following tools and utilities are not mandatory, but could be used by the appium-ios-simulator, if installed locally, to extend its functionality:

Xcode and iOS versions

Check Xcode wikipedia for more details about Xcode version to iOS version mapping.

Development

Checkout the repository and run

npm install
npm run dev

Use the following commands to run tests:

# unit tests
npm run test
# integration tests
npm run e2e-test

appium-ios-simulator's People

Contributors

imurchie avatar mykola-mokhnach avatar jonahss avatar semantic-release-bot avatar dependabot[bot] avatar kazucocoa avatar jlipps avatar greenkeeper[bot] avatar sebv avatar scottdixon avatar dpgraham avatar mwakizaka avatar rerorero avatar dependabot-preview[bot] avatar bayandin avatar vrunoa avatar chickenbeef avatar kool79 avatar nextlevelbeard avatar sadafyadegari avatar yaphatak avatar lamkovod avatar midopa avatar rkavalap 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.