Git Product home page Git Product logo

webdriver_client_rust's Introduction

WebDriver client library in Rust

webdriver_client on crates.io

crates.io

docs.rs

Source code and issues on GitHub: GitHub last commit

CI build on Travis CI: Build Status

Pull requests welcome.

Getting started

GeckoDriver and ChromeDriver are fully supported as WebDriver backends by the webdriver_client::firefox::GeckoDriver and webdriver_client::chrome::ChromeDriver structs. This crate expects the driver to be on your path.

However HttpDriver will accept any WebDriver server's HTTP URL, so Microsoft WebDriver for Edge, safaridriver for Apple Safari, and OperaDriver for Opera should all work if you start the server yourself.

On Linux

The scripts bin/download_geckodriver and bin/download_chromedriver download the Linux x64 binary releases for geckodriver and chromedriver.

This snippet will download the drivers and place it on your current shell's path:

bin/download_geckodriver
bin/download_chromedriver
export PATH=$PATH:$PWD/bin

Tests

cargo test runs a few tests. Integration tests require geckodriver and chromedriver to be installed.

Changelog

v0.2.0

  • Added ChromeDriver.
  • www bin has new commands: frames, switchframe.
  • Breaking change: Driver::session and DriverSession::create_session take a NewSessionCmd argument that specifies the session capabilities.
  • New method on DriverSession: browser_name
  • New methods on Element: property, clear, find_element, find_elements raw_reference.
  • Integration tests: many more of them, more assertions and a built-in HTTP server.

This fork is based on equalsraf's excellent work from https://github.com/equalsraf/webdriver.

webdriver_client_rust's People

Contributors

equalsraf avatar fluffysquirrels avatar illicitonion avatar hgzimmerman 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.