[twill] Twill Scripting Limitations?

Barry Hart barry.hart at predictix.com
Sat Apr 24 14:20:50 PDT 2010


Twill does not support JavaScript at all. If you need JavaScript functionality you should be looking at a tool that scripts an actual browser such as Selenium or Windmill.

Barry

----- Original Message -----
From: "kron filter" <kronfilter at hotmail.com>
To: twill at lists.idyll.org
Sent: Saturday, April 24, 2010 5:11:43 PM
Subject: Re: [twill] Twill Scripting Limitations?


The doLogin() function that the "in_bu_Login" of type button (JavaScript) is trying to execute is as follows: 

function doLogin()
{
    var persistInfo = true;
    var cb = getRememberCheckbox();
    if (!persistInfo || !cb || !cb.checked)
    {
        deleteLoginInfo();
    }
    else
    {
        var userName = '';
        var usr = getUserTextbox();
        if (usr) { userName = usr.value; }
        var authSource = 0;
        var sel = getAutoSourceSelect();
        if (sel) { authSource = sel.selectedIndex; }
        storeLoginInfo(userName,authSource);
    }
    var loginForm = document.lform;
    var hiddenLogin = loginForm.in_hi_dologin;
    hiddenLogin.value = 'true';
    loginForm.submit();
} 



More information about the twill mailing list