webdriverwrapper/forms.py
def _click_on_elm_or_his_ancestor(cls, elm):
        """
        For example Bootstrap wraps chboxes or radio button into label and hide
        that element, so Selenium can't click on it.
        """
        try:
            elm.click()
        except WebDriverException:
            elm.click(xpath='ancestor::label')

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