Skip to content

Commit

Permalink
fixed example in readme, added docs badge
Browse files Browse the repository at this point in the history
  • Loading branch information
ojii committed May 25, 2017
1 parent ea9adac commit f40e242
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Async Webdriver

[![CircleCI](https://circleci.com/gh/HDE/arsenic/tree/master.svg?style=svg)](https://circleci.com/gh/HDE/arsenic/tree/master)
[![CircleCI](https://circleci.com/gh/HDE/arsenic/tree/master.svg?style=svg)](https://circleci.com/gh/HDE/arsenic/tree/master) [![Documentation Status](https://readthedocs.org/projects/arsenic/badge/?version=latest)](http://arsenic.readthedocs.io/en/latest/?badge=latest)


Asynchronous, framework-independent webdriver client.

Expand Down Expand Up @@ -49,7 +50,7 @@ async def example():
# go to example.com
await session.get('http://example.com')
# wait up to 5 seconds to get the h1 element from the page
h1 = await driver.wait(5, session.get_element, 'h1')
h1 = await driver.wait_for_element(5, 'h1')
# print the text of the h1 element
print(await h1.get_text())
```
Expand Down

0 comments on commit f40e242

Please sign in to comment.