npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

arce-appium-driver

v0.1.0

Published

Experimental driver for appium.

Downloads

1

Readme

ARCE Appium Driver

Work-in-Progress...

An experimental "browser-agnostic" appium driver.

In most scenarios you should probably use another driver. This is more of a "last resort" solution.

(TODO explain use-cases in a bit more detail.)

Usage

To use this driver, Appium v2 needs to be installed first.

npm install -g appium@next

Make this driver available for automation:

# npm release
appium driver install --source=npm arce-appium-driver
# github repository
appium driver install --source=github andreas-schoch/arce-appium-driver
# local repository
appium driver install --source=local /path/to/git-repos/arce-appium-driver

And start the appium server:

appium server

Then within your appium client of choice, use the following capabilities:

| Capability Name | Description | |-----------------|----------------------------------------------------------------------------------------------| | automationName | Must be set to ARCE. | | arce:sslCert | Path to ssl cert. E.g. ./example.crt (Only if you want ArceServer proxy to run via https). | | arce:sslKey | Path to ssl key. E.g. ./example.key (Only if you want ArceServer proxy to run via https). | | arce:port | Which port the ArceServer proxy should use (default: 12000) |

TODO

  • Find:

    • [x] driver.findElement() by: id, class, css selector, xpath, automationId
    • [x] driver.findElements() by: id, class, css selector, xpath, automationId
    • [x] element.findElement() by: id, class, css selector, xpath, automationId
    • [x] element.findElements() by: id, class, css selector, xpath, automationId
  • Element:

    • [x] driver.getActiveElement()
    • [x] element.active()
    • [x] element.getAttribute()
    • [x] element.getProperty()
    • [x] element.getCssProperty()
    • [x] element.click()
    • [x] element.clear()
    • [x] element.setValue()
    • [x] element.setValueImmediate()
    • [x] element.elementSelected()
    • [x] element.getText()
    • [x] element.getName()
    • [x] element.getElementRect()
    • [x] element.elementEnabled()
    • [x] element.elementDisplayed()
  • Execute:

    • [x] execute() (expected to be a valid arce command script for now)
    • [x] executeAsync() (expected to be a valid arce command script for now)
  • Navigate:

    • [x] setUrl
    • [x] getUrl
    • [x] back
    • [x] forward
    • [x] refresh
  • Cookies:

    • [ ] getCookies()
    • [ ] getCookie()
    • [ ] setCookie()
    • [ ] deleteCookie()
    • [ ] deleteCookies()
  • Window (The strike-through commands can likely only be supported to a limited extent, or not at all, via ARCE):

    • [ ] getWindowRect()
    • [ ] ~~setWindow()~~
    • [ ] ~~createNewWindow()~~
    • [ ] ~~closeWindow()~~
    • [ ] ~~setWindowRect()~~
    • [ ] ~~maximizeWindow()~~
    • [ ] ~~minimizeWindow()~~
    • [ ] ~~fullScreenWindow()~~
    • [ ] ~~getWindowHandle()~~
  • Action (A lot of the possible actions chains cannot be fully supported via ARCE.):

    • [ ] performActions()
    • [ ] releaseActions()
  • Screenshot:

    • [ ] element.getElementScreenshot() (Can maybe be supported via html2canvas npm package or getUserMedia API)
    • [ ] driver.getScreenshot()
  • Timeout (Not sure yet which ones are useful or expected to be implemented):

    • [ ] driver.setNewCommandTimeout()
    • [ ] driver.implicitWait()
    • [ ] driver.setImplicitWait()
    • [ ] driver.implicitWaitForCondition()
    • [ ] driver.getTimeouts()
    • [ ] driver.implicitWaitW3C()
    • [ ] driver.pageLoadTimeoutW3C()
    • [ ] driver.scriptTimeoutW3C()
    • [ ] driver.newCommandTimeout()
    • [ ] driver.parseTimeoutArgument()

    (List incomplete. A few misc commands omitted)

License

MIT