Forum Discussion
it should but it doesn't. Here is how the list looks in the failing test
and this is the code that does the check.
and this is what I get in the test report even though the item is there.
even though I am specifically asking for the the second item it's still checking against the first
Just before the CheckProperty method, can you insert the following
Sys.HighlightObject(Aliases.GDP.HwndSource_AssetsWindow.AssetsWindow.AssetList.Name_)
Log.Message(Aliases.GDP.HwndSource_AssetsWindow.AssetsWindow.AssetList.Name_.text)
Is it highlighting the correct UI control that you are referring to, and what log output is shown for text property?
Also, the method assetList(name) is different to Assets.assetListValidation(name)!?
- WesWhit2 months agoContributor
okay so using this above it just consistently targets the text in the 1st row of the name column and doesn't seem to know about any other rows. I then tried highlighting the whole of row 2 before hand but it still went back to Row 1.
so I have had to add the WPFControlText property to the name mapping and hook that up to a project variable.
then define the variables value as the text I'm looking for then do the property check.
as long as it's there it pass but I will just have to accept that if it's slightly wrong it will say it doesn't exist but at least it will fail or pass when it should.
- rraghvani2 months agoChampion Level 3
If there's no other property that you can use, which uniquely identifies the object, then the other option is to use the Find method. Raise an error if the object is not found - as opposed to using project variable.
Related Content
- 4 years ago
- 6 years ago
- 10 years ago
- 11 years ago
Recent Discussions
- 27 days ago
- 5 days ago
- 5 days ago
- 8 days ago