TTF couldnot get the AutomationId in GridViewCell / TextBlock tag.

2 posts, 0 answers
  1. Hoang
    Hoang avatar
    4 posts
    Member since:
    Nov 2013

    Posted 30 Jul 2014 Link to this post

    We have a textblock in a cell as below:

        <contentpresenter Name="PART_ContentPresenter" Uid="40569470">
          <textblock AutomationId="CellElement_0_0" Uid="29580916">3</textblock>
        </contentpresenter>

    I am using TTF in Visual Studio. When we start script to catch this cell/textblock. It gets object successfully but in textblock tag, i don't see the AutomationId element. 

    However, after i turn on the Inspect.exe tool to try to verify properties on my product, i re-run my script, i see the AutomationId element appears in textblock tag. 

    If I turn off inspect tool, restart my application, re-run my script again, i don't see the AutomationId element in textblock tag.... :(

    I really need to get the AutomationId property to use it to get exactly data cell i need to work on.

    Maybe the inspect tool performs any action on my application,... i am not sure. Could you please help me on this ? do i need to set any configuration in my script ?

    Thanks and Regards,
    Hoang.

  2. Hoang
    Hoang avatar
    4 posts
    Member since:
    Nov 2013

    Posted 30 Jul 2014 in reply to Hoang Link to this post

    Sorrry, I missed. I re-posted this issue under Testing Framework.

Back to Top