To get a bit more targetted on what I am asking you.....
If I have a TextBlock, for example:
TextBlock
c = Pages.MMSPlugins_0.SilverlightApp.RadTileView1Radtileview.Find.ByText("Blarg!");
and I want to be able to check the foreground color of the text in said TextBlock.
How can I access that property?
Your previous response:
Hello Travis Acton,
Using the Developer Edition you can craft and record a verification step that verifies the computed color matches a particular value. Follow these steps:
Navigate to the page containing the text you want to verify the color of.
Turn on highlighting.
Hover over the text to be verified and wait for the blue nub to appear.
Click on the blue nub to open the Element Menu.
Click the Build Verification button. The Sentence Verification Builder will open.
Create a verification like the one shown in the verifycolor.png screenshot. This screenshot is for verifying the foreground color is Blue. Your color will probably be different.
Click OK to save the verification as a step to your test.
Now you also mention about using a coded test. If you convert this verification step to code it will come out something like this:
[CodedStep(@"Verify 'ColorAndBackground:Color' style 'Exact' '#0000FF' on 'Text2Span'")]
public void IpsumLoremDolor_CodedStep()
{
//Verify 'ColorAndBackground:Color' style 'Exact' '#0000FF' on 'Text2Span'
Pages.LoremIpsumDolorSitAmet.Text2Span.AssertStyle().ColorAndBackground(ArtOfTest.WebAii.Controls.HtmlControls.HtmlAsserts.HtmlStyleColorAndBackground.Color, "#0000FF", ArtOfTest.WebAii.Controls.HtmlControls.HtmlAsserts.HtmlStyleType.Computed, ArtOfTest.Common.StringCompareType.Exact);
}
Greetings,
Cody
the Telerik team