mirror of
https://github.com/kennethreitz/requests-html.git
synced 2026-06-05 23:00:20 +00:00
@@ -53,11 +53,13 @@ def test_search():
|
||||
style = r.html.search('Python is a {} language')[0]
|
||||
assert style == 'programming'
|
||||
|
||||
|
||||
def test_xpath():
|
||||
r = get()
|
||||
html = r.html.xpath('/html', first=True)
|
||||
assert 'no-js' in html.attrs['class']
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
# test_file_get()
|
||||
test_css_selector()
|
||||
|
||||
Reference in New Issue
Block a user