:Description: Modify the given attribute of the target element.
        :param element: Element for browser instance to target.
        :type element: WebElement
        :param attribute: Attribute of target element to modify.
        :type attribute: string
        :param value: Value of target element's attribute to modify.
        :type value: None, bool, int, float, string

def set_attribute(self, element, attribute, value):
        """
        :Description: Modify the given attribute of the target element.
        :param element: Element for browser instance to target.
        :type element: WebElement
        :param attribute: Attribute of target element to modify.
        :type attribute: string
        :param value: Value of target element's attribute to modify.
        :type value: None, bool, int, float, string
        """
        self.browser.execute_script('arguments[0].setAttribute("%s", %s);' % (
            attribute, self.__type2js(value=value)), element)