'Sets the password field to the desired value. This requires a login form'

def set_login_password(self, password):

    assert self.is_login_form(), 'Login    form    is    required'
    for (k, v, path, setter) in self.iter_setters():
        if (self.get_parameter_type(k).lower() == INPUT_TYPE_PASSWD):
            setter(password)
