pages/ui_component.py
def from_web_element(self, web_element):
        """
            Store reference to a WebElement instance representing the element on the DOM.
            Use it when an instance of WebElement has already been created (e.g. as the result of find_element) and
            you want to create a UIComponent out of it without evaluating it from the locator again.
            Returns an instance of the class.
        """
        if isinstance(web_element, WebElement) is not True:
            raise TypeError("web_element parameter is not of type WebElement.")
        self._web_element = web_element
        return self
def from_web_element(self, web_element):
        """
            Store reference to a WebElement instance representing the element on the DOM.
            Use it when an instance of WebElement has already been created (e.g. as the result of find_element) and
            you want to create a UIComponent out of it without evaluating it from the locator again.
            Returns an instance of the class.
        """
        if isinstance(web_element, WebElement) is not True:
            raise TypeError("web_element parameter is not of type WebElement.")
        self._web_element = web_element
        return self
def from_web_element ( self , web_element ) : if isinstance ( web_element , WebElement ) is not True : raise TypeError ( "web_element parameter is not of type WebElement." ) self . _web_element = web_element return self
Store reference to a WebElement instance representing the element on the DOM.
            Use it when an instance of WebElement has already been created (e.g. as the result of find_element) and
            you want to create a UIComponent out of it without evaluating it from the locator again.
            Returns an instance of the class.
Store reference to a WebElement instance representing the element on the DOM . Use it when an instance of WebElement has already been created ( e . g . as the result of find_element ) and you want to create a UIComponent out of it without evaluating it from the locator again . Returns an instance of the class .