{"repo":"jonhoo/fantoccini","free":true,"listed":false,"github":"https://github.com/jonhoo/fantoccini","clone":"git clone https://github.com/jonhoo/fantoccini.git","description":"A high-level API for programmatically interacting with web pages through WebDriver.","language":"Rust","stars":2015,"topics":["rust","webdriver","automation","library"],"license":"Apache-2.0","category":"workflow-automation","readme_excerpt":"fantoccini A high-level API for programmatically interacting with web pages through WebDriver. This crate uses the [WebDriver protocol] to drive a conforming (potentially headless) browser through relatively high-level operations such as \"click this element\", \"submit this form\", etc. Most interactions are driven by using [CSS selectors]. With most WebDriver-compatible browser being fairly recent, the more expressive levels of the CSS standard are also supported, giving fairly [powerful] [operators]. Forms are managed by first calling Client::form , and then using the methods on Form to manipulate the form's fields and eventually submitting it. For low-level access to the page, Client::source can be used to fetch the full page HTML source code, and Client::raw client for to build a raw HTTP request for a particular URL. Examples These examples all assume that you have a [WebDriver compatible] process running on port 4444. A quick way to get one is to run [ geckodriver ] at the command line. Let's start out clicking around on Wikipedia: How did we get to the Foobar page in the first place? We did a search! Let's make the program do that for us instead: What if we want to download a raw file? Fantoccini has you covered: For more examples, take a look at the examples/ directory. Contributing to fantoccini The following information applies only to developers interested in contributing to this project. If you simply want to use it to automate web browsers you can skip this section.","default_branch":null,"files":null,"tree":[],"storefront":"/r/jonhoo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jonhoo/fantoccini/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}