Button 硒-测试登录名';t启用Javascript按钮

Button 硒-测试登录名';t启用Javascript按钮,button,login,selenium,Button,Login,Selenium,我是新来的。我有一个具有以下按钮功能的登录表单: function init() { //attach the login validation to the password on change event getElem("Password").onkeyup = handleLoginButtonValidation; } function handleLoginButtonValidation() { //if the password is of zero length th

我是新来的。我有一个具有以下按钮功能的登录表单:

function init()
{   //attach the login validation to the password on change event
getElem("Password").onkeyup = handleLoginButtonValidation;
}

function handleLoginButtonValidation()
{   //if the password is of zero length then disable the button
getElem("Login").disabled = (getElem("Password").value.length == 0);
}
我尝试使用Selenium IDE测试它,代码如下:

type id=Username username
type id=Password password
clickAndWait id=login
但即使密码由Selenium填充,按钮仍然未启用,因此我的测试超时


有什么解决方法吗?

您可以通过按钮启用

fireEvent id=Password change
typeKeys id=Password password