Button attribute
Posted: Tue Mar 06, 2012 4:23 pm
I can't validate the attribute on button control using following code--also tried w/different xptah, snapshot sent via email
public void ValidatePage()
{
WebDocument webDoc = "dom[@page='x.cfm']";
ButtonTag saveD =webDoc.FindSingle(".//button[@id='MmCommandButton' and @InnerText='SAVE VIEW']",10000);
Validate.Attribute(saveD , "InnerText", "SAVE VIEW","Page Visible");
}
public void ValidatePage()
{
WebDocument webDoc = "dom[@page='x.cfm']";
ButtonTag saveD =webDoc.FindSingle(".//button[@id='MmCommandButton' and @InnerText='SAVE VIEW']",10000);
Validate.Attribute(saveD , "InnerText", "SAVE VIEW","Page Visible");
}