()
| 122 | |
| 123 | @pytest.mark.ok |
| 124 | def test_xpath(): |
| 125 | r = get() |
| 126 | html = r.html.xpath('/html', first=True) |
| 127 | assert 'no-js' in html.attrs['class'] |
| 128 | |
| 129 | a_hrefs = r.html.xpath('//a/@href') |
| 130 | assert '#site-map' in a_hrefs |
| 131 | |
| 132 | |
| 133 | @pytest.mark.ok |