Alternatives for "SelectedTab [Set]"
We are updating our software to .Net 6, and I noticed some action aren't available anymore.
SelectedTab is still availible but doesn't work anymore.
Logs say: Unable to find the object WinFormsObject("tabFinancieel"). See Details for additional information.
However when manually selecting the tab and changing back, using SelectedTab does work.
Almost like the tab doesn't exist if not activated before. when restarting the program it no longer works.
I tried 'set_SelectedTab' which also does not work.
I don't want to use 'SelectedIndex [Set]' since the order of the tabs can (and does) change.
Is there any other action that might work in the situation?
Or is there any thing my developers can change (small changes only ofcourse) about our code to stop this problem?
Thanks!
Here to update in case anyone else runs into this issue,
I found a way around this problem. TC didn't see the tabs as object so click would always click on coordinates. Yesterday I was on a call with Smartbear and they showed me the following:
By putting the parent object in the MSAA list. Project properties > Open applications > MSAA
TC is now able to see them as objects, which is great now i can just use a click on them and all is solved.
Since sometimes some tabs don't exist, I can now use an if object exists ...
This works great for my tests, and might even be a better way to test than before.
Here is the object spy now able to recognise them as objects
Anyways, this issue is now solved. This ticket update is just to help the future people that google this issue in 5 years.