Is this location method applicable for WPF Desktop applications?
I am asking this question because it is defined under namespace 'ArtOfTest.WebAii.Silverlight', and it does not seems to work.
Here is my test.
Consider this call:
Console.WriteLine(profit.Find.ByName<Button>("PART_BuyButton").ToXml());
It returns:
<tradebutton Name="PART_BuyButton" Uid="10313144">
<button Uid="38447936">
<grid Name="grid" Uid="25709437">
<border Name="Regular" Uid="30058349" />
<border Name="OverlayRegular" Uid="2089687" />
<border Name="OverlayHover" Uid="18807190" />
<border Name="Pressed" Uid="35046986" />
<border Name="Disabled" Uid="46987420" />
<border Name="ContentHolder" Uid="20233597">
<contentpresenter Uid="47884646">
<textblock Uid="28308632">Buy</textblock>
</contentpresenter>
</border>
</grid>
</button>
</tradebutton>
While the next one returns null:
Console.WriteLine(profit.Find.ByExpression(new XamlFindExpression("TagName=tradebutton")));
Is this:
- a bug
- unsupported feature
- error on my side?
I am asking this question because it is defined under namespace 'ArtOfTest.WebAii.Silverlight', and it does not seems to work.
Here is my test.
Consider this call:
Console.WriteLine(profit.Find.ByName<Button>("PART_BuyButton").ToXml());
It returns:
<tradebutton Name="PART_BuyButton" Uid="10313144">
<button Uid="38447936">
<grid Name="grid" Uid="25709437">
<border Name="Regular" Uid="30058349" />
<border Name="OverlayRegular" Uid="2089687" />
<border Name="OverlayHover" Uid="18807190" />
<border Name="Pressed" Uid="35046986" />
<border Name="Disabled" Uid="46987420" />
<border Name="ContentHolder" Uid="20233597">
<contentpresenter Uid="47884646">
<textblock Uid="28308632">Buy</textblock>
</contentpresenter>
</border>
</grid>
</button>
</tradebutton>
While the next one returns null:
Console.WriteLine(profit.Find.ByExpression(new XamlFindExpression("TagName=tradebutton")));
Is this:
- a bug
- unsupported feature
- error on my side?