testbuilder/interface/selenium/interface.py
def Type(self, step_context):
        """Types some text to a selenium webelement

        Arguments:
            step_context {StepContext} -- The current step context
        """

        xpath = step_context.step_argument_1_mapped
        text = str(step_context.step_argument_2)

        self.Exist(step_context)
        element = self.driver.find_element_by_xpath(xpath)
        
        prefix,_,key = text.partition(".") # Map Special keys
        if prefix == "$Keys":
            text = getattr(keys.Keys, key)

        element.send_keys(text)
Types some text to a selenium webelement

        Arguments:
            step_context {StepContext} -- The current step context
        
Types some text to a selenium webelement
Arguments:
step_context {StepContext} -- The current step context
Types some text to a selenium webelement Arguments : step_context { StepContext } -- The current step context
def Type(self, step_context):
        xpath = step_context.step_argument_1_mapped
        text = str(step_context.step_argument_2)
        self.Exist(step_context)
        element = self.driver.find_element_by_xpath(xpath)
        prefix,_,key = text.partition(".") 
        if prefix == "$Keys":
            text = getattr(keys.Keys, key)
        element.send_keys(text)
def Type ( self , step_context ) : xpath = step_context . step_argument_1_mapped text = str ( step_context . step_argument_2 ) self . Exist ( step_context ) element = self . driver . find_element_by_xpath ( xpath ) prefix , _ , key = text . partition ( "." ) if prefix == "$Keys" : text = getattr ( keys . Keys , key ) element . send_keys ( text )
Types some text to a selenium webelement
Arguments:
step_context {StepContext} -- The current step context
Types some text to a selenium webelement Arguments : step_context { StepContext } -- The current step context
"""Types some text to a selenium webelement

        Arguments:
            step_context {StepContext} -- The current step context
        """ # Map Special keys
self
step_context