Use configured links selector for navigate command

This commit is contained in:
Olmo Kramer 2018-04-22 03:24:34 +02:00
parent 6212dbc488
commit ca89b11398
No known key found for this signature in database
GPG Key ID: BE09591F4AB66337

View File

@ -146,5 +146,6 @@ def prevnext(*, browsertab, win_id, baseurl, prev=False,
else:
browsertab.openurl(url)
link_selector = 'a[href], area[href], link[href], [role=link][href]'
selectors = config.instance.get('hints.selectors', baseurl)
link_selector = ','.join(selectors['links'])
browsertab.elements.find_css(link_selector, _prevnext_cb)