<option>
, but you can always do that via BeautifulSoup. Stg like https://www.crummy.com/software/BeautifulSoup/bs4/doc/#insert.
<a href="foo"><span>SomeText</span></a>
browser.follow_link(text=re.compile("SomeText"))
but that doesn't find the link, presumably because the text is nested.browser.follow_link(browser.get_current_page().find(lambda el: el.name == "a" and "SomeText" in el.text))
or is there any decent alternative?
AttributeError: 'StatefulBrowser' object has no attribute 'page'
even though https://github.com/MechanicalSoup/MechanicalSoup/pull/294/files
ImportError: cannot import name 'BaseResponse' from 'werkzeug.wrappers' (/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/werkzeug/wrappers/__init__.py)
, when it tries to test with pytest