

@classmethod
def _click_on_elm_or_his_ancestor(self, elm):
    "\n        For example Bootstrap wraps chboxes or radio button into label and hide\n        that element, so Selenium can't click on it.\n        "
    try:
        self.click()
    except WebDriverException:
        elm.click(xpath='ancestor::label')

dataset/ETHPy150Open horejsek/python-webdriverwrapper/webdriverwrapper/forms.py FormElement._click_on_elm_or_his_ancestor/VarMisuse@21/87 `elm`->`self`