Page 1 of 1

Button attribute

Posted: Tue Mar 06, 2012 4:23 pm
by omayer
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");

}

Re: Button attribute

Posted: Tue Mar 06, 2012 6:33 pm
by Support Team
Hi,

can you please provide us the exact error message you get when trying to validate this attribute?

Regards,
Tobias
Ranorex Support

Re: Button attribute

Posted: Tue Mar 06, 2012 7:02 pm
by omayer
it works now, thank you for looking into it.
-beginner