Hi, My 2nd post here.
What if the recorded step is not quite right?
Is it possible for me to fine tune it?
For example, I have this "LeftClick on x...Textblock", with the following Find logic:
Expression:
XamlTag=datagrid,automationid=DataGrid,|,XamlPath=/grid[0]/border[0]/grid[name=Root]/datagridrowspresenter[automationid=RowsPresenter]/datagridrow[0]/datagridfrozengrid[name=Root]/datagridcellspresenter[name=CellsPresenter]/datagridcell[3]/grid[name=Root]/contentpresenter[0]/stackpanel[0]/textblock[0]
FindLogic:
[automationid 'Exact' DataGrid] AND [XamlTag 'Exact' datagrid][XamlPath 'Exact' /grid[0]/border[0]/grid[name=Root]/datagridrowspresenter[automationid=RowsPresenter]/datagridrow[0]/datagridfrozengrid[name=Root]/datagridcellspresenter[name=CellsPresenter]/datagridcell[3]/grid[name=Root]/contentpresenter[0]/stackpanel[0]/textblock[0]]
How to interpret it?
What looks obvious to me is the 'XamlPath=' part in Expression. That should tell me how to locate the object in DOM. For the rest, the syntax is still unclear to me. Moreover, is the [XamlPath 'Exact' ...] part in FindLogic the same as what's in Expression? If so, why duplicate it to two places?
Sorry for so many question, here is the last one. If I don't want to select a data grid by a fixed place, but rather select a data grid according its content, say the content begins with 'Abc', how can I alter the recorded step?
Thanks