This is a migrated thread and some comments may be shown as answers.

TTF couldnot get the AutomationId in GridViewCell / TextBlock tag.

1 Answer 21 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Hoang
Top achievements
Rank 1
Hoang asked on 31 Jul 2014, 04:22 AM
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.

1 Answer, 1 is accepted

Sort by
0
Hoang
Top achievements
Rank 1
answered on 31 Jul 2014, 04:26 AM
Sorrry, I missed. I re-posted this issue under Testing Framework.

Tags
GridView
Asked by
Hoang
Top achievements
Rank 1
Answers by
Hoang
Top achievements
Rank 1
Share this question
or