Skip to main content



      Home
Home » Eclipse Projects » RCP Testing Tool » Get Parent Control(Get Parent Control)
Get Parent Control [message #1700146] Tue, 30 June 2015 07:59 Go to next message
Eclipse UserFriend
I have a tab folder with several tabs, and in one of the tabs I have another tab folder. When I start the test I can reach all tab items from the parent tab folder. I have the following code:

get-tab-folder | get-tab-item "Übersicht" | click
get-tab-folder | get-tab-item "Benutzer Vertretung" | click
with [get-tab-item Dokumente] {
    click
}
get-tab-folder | get-tab-item Arbeitsplatz | click
get-tab-folder | get-tab-item "Übersicht" | click


The parent folder has the tab items: "Übersicht", "Benutzer Vertretung" und "Dokumente".
In the tab item "Dokuemente there is another tabfolder with tab item "Arbeitsplat".
When I do the click in this tab item
"get-tab-folder | get-tab-item "Arbeitsplat" | click" I can't select any tab items from the parent folder.
This means, the last code line gives an error.
But the first line is ok, but they are equal.
I think this is, because "get-tab-folder" has the wrong parent control. But I don't know to set the right parent control.

I have a screenshot of the app attached.
Has anyone an idea?
  • Attachment: Image.png
    (Size: 10.86KB, Downloaded 109 times)
Re: Get Parent Control [message #1700357 is a reply to message #1700146] Thu, 02 July 2015 03:12 Go to previous message
Eclipse UserFriend
Hi Mario,

Could you please try to define a parent like:

get-eclipse-window | get-tab-folder | get-tab-item "Übersicht" | click


or

with [get-tab-item Dokumente] {
    click
    get-tab-folder | get-tab-item Arbeitsplatz | click
}

get-eclipse-window | get-tab-folder | get-tab-item "Übersicht" | click


if it doesn't help, could you please try to play with indexes, like:


get-tab-folder -index 0 ...
get-tab-folder -index 1 ...



Kind regards,
Ulyana.

[Updated on: Thu, 02 July 2015 03:12] by Moderator

Previous Topic:What means: DebugDisplayAspect activated
Next Topic:Mvn Runner Problem
Goto Forum:
  


Current Time: Tue Jun 24 10:23:33 EDT 2025

Powered by FUDForum. Page generated in 0.71984 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top