Logo vun Rf Appium

Rf Appium

Communautéit
manykarim
rf-appium

Use first, before answering, for RF mobile tests with AppiumLibrary. Not installs/drivers: rf-setup.

Iwwersiicht

Editeurmanykarim
Repositoryrobotframework-agentskills
Skill-Nummrf-appium
Stären
40
Forks
2
Matgeliwwert Fichieren
9
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 9 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum manykarim op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Rf Appium an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/manykarim/robotframework-agentskills/tree/main/plugins/rf-agentskills/skills/rf-appium
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/manykarim/robotframework-agentskills.git /tmp/robotframework-agentskills
mkdir -p .claude/skills
cp -r /tmp/robotframework-agentskills/plugins/rf-agentskills/skills/rf-appium .claude/skills/rf-appium
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Rf Appium an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Rf Appium automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Rf Appium net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

AppiumLibrary Skill

AppiumLibrary drives native, hybrid and mobile-web apps on Android and iOS through an Appium 2+ server. Desktop apps belong to rf-platynui; desktop browsers to rf-browser or rf-selenium. Verified against AppiumLibrary 3.2.1, Robot Framework 7.4.

When to use

Load this skill first, before exploring the project or answering from memory, when a Robot Framework test drives a mobile app with AppiumLibrary (Library AppiumLibrary) on Android or iOS:

  • writing or fixing a mobile test: Open Application capabilities (UiAutomator2, XCUITest), locators such as accessibility_id, waits, gestures and scrolling, the on-screen keyboard, WEBVIEW contexts in hybrid apps;
  • an element cannot be located on a device, or the user mentions Appium, an .apk/.ipa, an emulator or a simulator, even if they only say "our app" or "mobile test".

Not this skill: native desktop apps use rf-platynui; desktop browsers use rf-browser or rf-selenium; installing the Appium server and drivers uses rf-setup.

Installation

Install into the project environment (see rf-setup for uv/venv/Poetry, CI and troubleshooting; follow the project's existing tool):

bash
uv add robotframework-appiumlibrary

The Appium server and platform drivers live outside the Python environment and are installed with npm (requires Node.js):

bash
npm install -g appium
appium driver install uiautomator2    # Android
appium driver install xcuitest        # iOS

Android SDK/JDK and Xcode prerequisites: see rf-setup.

Import and defaults

Start the server (appium, default http://127.0.0.1:4723, no /wd/hub base path) before the suite. Default: one session per suite, Android, UiAutomator2, W3C capabilities with the appium: prefix written out:

robotframework
*** Settings ***
Library           AppiumLibrary    timeout=15s
Suite Setup       Open Android App
Suite Teardown    Close All Applications

*** Variables ***
${APPIUM_URL}    http://127.0.0.1:4723

*** Keywords ***
Open Android App
    Open Application    ${APPIUM_URL}
    ...    platformName=Android
    ...    appium:automationName=UiAutomator2
    ...    appium:deviceName=emulator-5554
    ...    appium:app=${CURDIR}/app.apk
    ...    appium:autoGrantPermissions=${True}

timeout=15s because the library default (5 s) is short for emulators; it drives every Wait Until … keyword. run_on_failure already captures a screenshot. For iOS (XCUITest), an installed app (appPackage/bundleId), mobile browsers or cloud grids, use the capability sets in references/capabilities.md.

Which keyword for which situation

SituationUseDetails
Find an elementaccessibility_id=…, then id=…, android=… / predicate=… / chain=…, XPath lastreferences/locators-mobile.md
Wait for a screen or elementWait Until Page Contains Element, Wait Until Element Is Visible—
Assert visible / enabled / goneExpect Element <locator> visible (also not visible, enabled, disabled); text: Expect Text—
Assert text of an elementElement Text Should Be, Element Should Contain Text—
Type, clear, hide keyboardInput Text, Clear Text, Hide Keyboard—
Tap, long press, double tapTap <locator> duration=2s, Tap <locator> count=2references/gestures-touch.md
Scroll or swipeScroll Down (Android), Swipe By Percent, Swipe start_x=…references/gestures-touch.md
Pinch, zoom, other gesturesExecute Script mobile: pinchOpenGesture elementId=…references/gestures-touch.md
Hybrid app web contentGet Contexts, Switch To Contextreferences/platform-specific.md
Android keys and activities, iOS alertsPress Keycode, Start Activity, Click Alert Buttonreferences/platform-specific.md
Inspect the screen for locatorsLog Source, Get Sourcereferences/troubleshooting.md

Agent workflow

  1. Look up each keyword before you use it: robotcode doc keyword AppiumLibrary "<Keyword>"; find names with robotcode doc keywords AppiumLibrary "<text>". Copy names and arguments exactly as robotcode shows them.
  2. Write the test with the defaults above and the decision table.
  3. Check the changed files statically: robotcode analyze code <changed files> (through the project environment, e.g. uv run robotcode …). Fix every error it reports.
  4. Run them by longname: robotcode robot -bl "<Suite.Sub.Test>" (longnames from robotcode discover tests), or pass a whole directory. Don't pass a single .robot file: it skips the parent __init__.robot.
  5. Read the results: robotcode results show --failed, then robotcode results log -bl "<longname>". Don't parse output.xml by hand.
  6. Fix the cause and go back to step 3 (static check). Stop when the tests pass or the failure is shown to be in the system under test, and say which.

Gotchas

  • Actions don't wait — Click Element, Input Text and Get Text look the element up once and fail with "did not match any elements" if the screen isn't there yet, because only the Wait Until … keywords and Expect Element poll. Put Wait Until Page Contains Element before the first action on a new screen; no Sleep.

  • Element Should Be Visible/Enabled/Disabled and Text Should Be Visible are deprecated — libdoc marks them "Use Expect Element". Write Expect Element <locator> visible or Expect Text <text> visible; both retry for timeout=5s by default (their own argument, not the import timeout).

  • Removed keywords models still write — Long Press, Zoom, Quit Application and the others below no longer exist in AppiumLibrary 3.2.1 and fail with "No keyword with name". Use the replacements:

    RemovedUse
    Long PressTap <locator> duration=2s
    Click A PointTap With Positions 500ms ${{ (x, y) }}
    Zoom / PinchExecute Script with mobile: pinchOpenGesture / pinchCloseGesture (Android), mobile: pinch (iOS)
    Quit Application / Reset ApplicationClose Application (then Open Application)
    Background AppBackground Application
    Get Window SizeGet Window Width / Get Window Height
  • Durations need units — Swipe and Tap With Positions read a bare number as milliseconds (and warn that bare numbers are going away), while Tap duration=2 means two seconds. Write duration=500ms or duration=1s. Swipe arguments are keyword-only: Swipe start_x=500 start_y=1500 end_x=500 end_y=400 duration=500ms. Tap With Positions takes the duration first: Tap With Positions 300ms ${{ (500, 800) }}.

  • Locator prefixes — without a prefix the text is an id (XPath only if it starts with //), and any unknown name= style prefix fails with "prefix … is not supported". iOS predicate strings use predicate=, class chains chain=; the ios= strategy is the retired UI Automation lookup and fails with the current Appium Python client.

  • Capabilities — the Appium Python client adds appium: to every name that is not W3C-standard and has no :, so automationName= works, but vendor capabilities keep their own prefix (bstack:options=, sauce:options=). Writing appium: yourself keeps logs and cloud docs aligned.

  • Hybrid context sticks — after Switch To Context WEBVIEW_… every locator is a web locator (css=, xpath=); native locators fail until Switch To Context NATIVE_APP.

  • Sessions leak — a failed test leaves the app session open; close it with Close All Applications in Suite Teardown (or Close Application in Test Teardown for per-test sessions).

When to read the references

ReadWhen
references/capabilities.mdiOS, installed apps, mobile browsers, cloud grids, reset and timeout capabilities
references/locators-mobile.mdChoosing or debugging a locator (UiAutomator, predicate, class chain, XPath)
references/gestures-touch.mdScrolling to an element, swipes, long press, pinch/zoom, drag and drop
references/platform-specific.mdAndroid keys, activities, permissions, iOS alerts, pickers, hybrid apps
references/troubleshooting.mdAn error message from the server, session creation, a device or a locator

Examples in assets/examples/: android-basic.robot, ios-basic.robot, gestures-example.robot, hybrid-app.robot.

Companion Skills

NeedSkill
Native desktop tests with PlatynUIrf-platynui
Install Robot Framework or a library, fix the environmentrf-setup
Write tests, suites, user keywords, resources and variables in Robot Framework syntaxrf-language

For running, discovering, keyword documentation, result analysis and debugging with the robotcode CLI, use the robotcode skill of the robotcode plugin (robotcode@robotframework-agent-plugins); the commands above work without it.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Rf Appium?

Use first, before answering, for RF mobile tests with AppiumLibrary. Not installs/drivers: rf-setup.

Firwat Rf Appium op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Rf Appium besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Rf Appium an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/manykarim/robotframework-agentskills/tree/main/plugins/rf-agentskills/skills/rf-appium an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Rf Appium benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Rf Appium benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Rf Appium domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Rf Appium gratis?

Jo. De Skill gëtt vum manykarim ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇