def upload_to_file_input(self, locator, path, params=None):
        """
        Sends in path in an <input type=file> to upload a file. The <input type=file> must be set to be visible,
        usually by setting the style of the element to display-block; instead of display-none or nothing at all.
        Uses WebElement's send_keys instead of ActionChains.

        :param locator: locator tuple or WebElement instance
        :param path: full path to file to be uploaded
        :type path: string
        :param params: (optional) locator params
        :return: None
        """
        element = locator
        if not isinstance(element, WebElement):
            element = self.get_visible_element(locator, params)

        element.send_keys(path)