Button attribute

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
omayer
Posts: 458
Joined: Thu Oct 28, 2010 6:14 pm

Button attribute

Post by omayer » 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");

}
Tipu

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Button attribute

Post by Support Team » Tue Mar 06, 2012 6:33 pm

Hi,

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

Regards,
Tobias
Ranorex Support
.
Image

omayer
Posts: 458
Joined: Thu Oct 28, 2010 6:14 pm

Re: Button attribute

Post by omayer » Tue Mar 06, 2012 7:02 pm

it works now, thank you for looking into it.
-beginner
Tipu