AM
Size: a a a
AM
b
AM
b
b
>>> from requests_html import HTMLSession
>>> session = HTMLSession()
>>> r = session.get('https://python.org/')
AM
actual_products = [row.select('.name') + row.select('.count-value') for row in page.select('tr')]
for product in expected_products:
name, quantity = product
assert any(name in row[0].get_text() and quantity in row[1].get_text() for row in actual_products), '{} and {} not in {}'.format(name, quantity, actual_products)
AM
IS
СС
IS
M
AM
СС
IS
СС
b
AM
IS
b
b