(self, *value)
Simulates typing into the element.
Simulates typing into the element.
Simulates typing into the element .
def send_keys(self, *value):
        """Simulates typing into the element."""
        # transfer file to another machine only if remote driver is used
        # the same behaviour as for java binding
        if self.parent._is_remote:
            local_file = LocalFileDetector.is_local_file(*value)
            if local_file is not None:
                value = self._upload(local_file)

        typing = []
        for val in value:
            if isinstance(val, Keys):
                typing.append(val)
            elif isinstance(val, int):
                val = str(val)
                for i in range(len(val)):
                    typing.append(val[i])
            else:
                for i in range(len(val)):
                    typing.append(val[i])
        self._execute(Command.SEND_KEYS_TO_ELEMENT, {'value': typing})
def send_keys ( self , * value ) : # transfer file to another machine only if remote driver is used # the same behaviour as for java binding if self . parent . _is_remote : local_file = LocalFileDetector . is_local_file ( * value ) if local_file is not None : value = self . _upload ( local_file ) typing = [ ] for val in value : if isinstance ( val , Keys ) : typing . append ( val ) elif isinstance ( val , int ) : val = str ( val ) for i in range ( len ( val ) ) : typing . append ( val [ i ] ) else : for i in range ( len ( val ) ) : typing . append ( val [ i ] ) self . _execute ( Command . SEND_KEYS_TO_ELEMENT , { 'value' : typing } )