Testing Extension Sidebar with Webdriver

Is there anyway to test an extension’s sidebar using webdriver? I found some examples of interacting with toolbar buttons (e.g. https://github.com/webexts/webextensions-geckodriver) but nothing for sidebars.