{"repo":"mbrock/wd","free":true,"listed":false,"github":"https://github.com/mbrock/wd","clone":"git clone https://github.com/mbrock/wd.git","description":"Use WebDriver from the command line","language":"Shell","stars":39,"topics":["webdriver","bash","selenium"],"license":"MIT","category":"cli-tools","readme_excerpt":"wd -- WebDriver command line tool wd is a simple tool for interacting with servers that implement the W3C WebDriver API. It can be used for web automation tasks such as testing and scraping. You can use Selenium as the WebDriver server to control browsers on your own machine. There are commercial services that offer the WebDriver API remotely; see \"Functional Test Services\" here. See the WebDriver spec for details about the protocol and behavior. Dependencies - bash - perl (5.14 or greater) - curl Example $ wd go https://github.com/mbrock/wd $ wd screenshot /tmp/wd.png $ wd click \"$(wd find css .user-mention)\" $ wd exec 'return document.title' wd automatically creates and reuses a WebDriver session per login, caching its ID under $XDG RUNTIME DIR/wd/ . There is no need to export WEBDRIVER SESSION or wd new-session in everyday use; the first command transparently spins up a browser and subsequent commands reuse it. When there is no $DISPLAY , the default is headless Chrome (1280x900). Configuration - WEBDRIVER URL : WebDriver API URL (default http://127.0.0.1:4444/wd/hub ). - WEBDRIVER SESSION : explicit session ID. When set, overrides the cache and bypasses validation; you are on your own for cleanup. - WEBDRIVER CAPABILITIES : stringified JSON capabilities object used when creating a new session. - WEBDRIVER BROWSER : browser name (e.g. chrome , firefox ) used when creating a session if WEBDRIVER CAPABILITIES is unset. - WEBDRIVER CACHE DIR : directory for the session cache ","default_branch":null,"files":null,"tree":[],"storefront":"/r/mbrock","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mbrock/wd/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."}