SelectedTab [set] not working
For a Keywordtest TC must open all Tabs and subTabs one by one. I do this by using "SelectedTab [set]" which works great except when it doesn't.
Most of the time it works great, however for some Tabs it can't find the tab and I get an error.
When manually clicking the Tab then going back to another one and running the selected operation suddenly it can find the tab it could not find before.
Some Tabs can be found some only after openning once before.
"SelectedIndex [set]" Does work, But if the Tabs were to change order then I would not get the right Tab.
I don't understand why it can't find the Tab but when the Tab has been opened once it can suddenly find it.
Solved! Go to Solution.
This is what the application looks like, on the left arre main tabs, on the top are subTabs
as for the properties, I dont know what properties you want to know.
TabklantInfo is just part of tpAlgemeen (tpAlgemeen is in the left list of Tabs) i need TC to go to tabFinancieel (in the top list of subTabs)
EDIT: For extra information, subTab 'Klantmedewerkers' can be opened by using SelectedTab, Financieel, Prijzen, Verkoop, etc.... Can't be found using this action
Things like Name, WndCaption, WinformsControlName.
There is a Controlid, however i dont know if that stays consistent everytime you open it.
Once i open the tabFinancieel and then open another one suddenly TC can switch back to tabFinancieel.
(it will not remember if you then close the whole app)
TC just says it does not exist if not opened before. while other tabs will open first try
You click on Omzetten and then click on Financieel? I guess the object is not shown straight away, and hence WinFormObject("tabFinancieel") fails. Try and add a delay.
I Have tried with delays, using Rclick on SelectedTab_[set] 'Run selected operation' it can't find the tab, I think the object just doesn't exist untill it has been opened once.
TC just posts the same error as 1st pic stated above