Skip to content

Commit

Permalink
Merge pull request psf#123 from erinxocon/patch-1
Browse files Browse the repository at this point in the history
xpath didn't actually do anything from the example on README.rst
  • Loading branch information
kennethreitz authored Mar 11, 2018
2 parents ecb1024 + 22b3fd5 commit c0680d3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@ XPath is also supported:

.. code-block:: pycon
>>> r.html.xpath('a')
[<Element 'a' class='btn' href='https://help.github.com/articles/supported-browsers'>]
>>> r.html.xpath('/html/body/div[1]/a')
[<Element 'a' class=('px-2', 'py-4', 'show-on-focus', 'js-skip-to-content') href='#start-of-content' tabindex='1'>]
JavaScript Support
==================
Expand Down

0 comments on commit c0680d3

Please sign in to comment.