Skip to content

Add crosslocator library to README - #107

Merged
MobyNL merged 2 commits into
MarketSquare:masterfrom
julien-becheny:patch-1
Jul 9, 2026
Merged

Add crosslocator library to README#107
MobyNL merged 2 commits into
MarketSquare:masterfrom
julien-becheny:patch-1

Conversation

@julien-becheny

Copy link
Copy Markdown
Contributor

I released a small, dependency-free library for a recurring pain in cross-platform mobile testing: maintaining the same locator for Android, iOS, iPadOS and Windows.

You define a selector once per platform, and crosslocator resolves the right one at runtime:

from crosslocator import Locator

LOGIN = Locator(
    android="accessibility_id=login",
    ios="accessibility_id=login",
    windows='//Button[@Name="Log in"]',
    default="id=login",
)
LOGIN.resolve()  # the right selector for the current platform

It works with pure Python (Appium) and Robot Framework (a small library exposing Set Current Platform / Resolve Locator keywords). It can also auto-detect the platform from the active Appium session. iPad falls back to iOS selectors, and a shared default covers the rest.

It's an early release (v0.2). Feedback and issues are very welcome — especially on the Robot Framework integration and the locator formats you'd like supported.

I released a small, dependency-free library for a recurring pain in cross-platform
mobile testing: maintaining the same locator for Android, iOS, iPadOS and Windows.

You define a selector once per platform, and crosslocator resolves the right one
at runtime:

    from crosslocator import Locator

    LOGIN = Locator(
        android="accessibility_id=login",
        ios="accessibility_id=login",
        windows='//Button[@name="Log in"]',
        default="id=login",
    )
    LOGIN.resolve()  # the right selector for the current platform

It works with pure Python (Appium) and Robot Framework (a small library exposing
`Set Current Platform` / `Resolve Locator` keywords). It can also auto-detect the
platform from the active Appium session. iPad falls back to iOS selectors, and a
shared default covers the rest.

- Install: pip install crosslocator
- Source: https://github.com/julien-becheny/crosslocator

It's an early release (v0.2). Feedback and issues are very welcome — especially on
the Robot Framework integration and the locator formats you'd like supported.
Copilot AI review requested due to automatic review settings July 8, 2026 13:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds the newly released crosslocator project to the README’s “Libraries → App/Mobile” list so users can discover it alongside other mobile automation/testing libraries.

Changes:

  • Added a README entry linking to julien-becheny/crosslocator under the App/Mobile libraries section.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@MobyNL
MobyNL merged commit 6acda74 into MarketSquare:master Jul 9, 2026
1 check failed
@MobyNL

MobyNL commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Nice, I'm going to check this one out for myself too! It's merged! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants