Git Product home page Git Product logo

ash's Introduction

Ash

./ash.jpg

Ash is a Selenium client for Common Lisp. It was written against the Selenium 2.x JSON wire protocol described here.

It is incomplete - This was written for a separate project and I added functionality as I needed it. Over time, however, it has proved to be quite useful.

Examples

(setf *ash-host* "127.0.0.1")
(setf *ash-port* 4444)
(with-session ()
  (page-open "http://google.com"))

Creates a new session, opens the page, and closes the session.

(with-session (:autoclose nil)
  (page-open "http://www.google.com"))

Creates a new session, opens the page, but does not close the session.

(with-a-session
  (page-click (find-element-by-text "Login")))

Uses the session from example2, and clicks on the first element with the text “Login”.

Note that with-a-session will use the first available session with no regard to whether it is in use or not. If you’re using Selenium Grid, or using multiple connections to Selenium, you’re almost always better off using with-session.

ash's People

Contributors

cmoore avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

ash's Issues

Dumb things in this package...

  • The api isn't consistent.
  • There's no good way to supply your own capabilities, they're just hardwired into the source.

SHAME

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.