[Webtest] Clicking a dynamically generated button

Afshartous, Nick webtest@lists.canoo.com
Tue, 25 Apr 2006 09:48:45 -0400


This is a multi-part message in MIME format.

------=_NextPart_000_007E_01C6684D.71DC6EC0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit


Hi,

I'm trying to click a button that is generated by the function below.

However this step fails

                <clickButton
                    description="click a submit button"
                    name="Login.Submit"/>

as the button is not found.  Just wanted to confirm whether or not this is
currently supported, thanks.

--
      Nick
 


function markupButton(label, href) {
    label = "&nbsp;" + strTrim(label) + "&nbsp;";
    document.write("<td>");
    document.write("<div class=\"logBtn\">");    
    document.write("<input name=\"Login.Submit\" type=\"submit\"");
    document.write(" class=\"Btn1Def\" value=\"");
    document.write(label);
    document.write("\" onclick=\"");
    document.write(href);
    document.write("\" onmouseover=\"javascript: if (this.disabled==0)
this.className='Btn1DefHov'\"");
    document.write(" onmouseout=\"javascript: if (this.disabled==0)
this.className='Btn1Def'\"");
    document.write(" onblur=\"javascript: if (this.disabled==0)
this.className='Btn1Def'\"");
    document.write(" onfocus=\"javascript: if (this.disabled==0)
this.className='Btn1DefHov'\"");    
    document.write("/></div></td>");

------=_NextPart_000_007E_01C6684D.71DC6EC0
Content-Type: application/x-pkcs7-signature;
	name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="smime.p7s"

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIII8DCCAngw
ggHhoAMCAQICEG/GNX2YAq/KgsIrAHAHLfUwDQYJKoZIhvcNAQEEBQAwYjELMAkGA1UEBhMCWkEx
JTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMTI1RoYXd0ZSBQ
ZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBMB4XDTA2MDQwNzEzMzUzOVoXDTA3MDQwNzEzMzUz
OVowUzEfMB0GA1UEAxMWVGh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