SelectedTab [set] not working
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
SelectedTab [set] not working
Hello,
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have also tried using "set_selectedTab" This gave the same issues
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What are the properties of tabLlantinfo object?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I wanted to see if there's anything that uniquely identifies the tabs, for example.
And when switching between tabs, do the properties change
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Insert delay after the "left mouse button" ?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I tried but that does not work.
