Forum Discussion
djadhav
10 years agoRegular Contributor
Please provide screenshots of what you're describing.
FabriceB
10 years agoOccasional Contributor
Hi,
I give you two screenshots the ihm menu button and the object browser detect on TC
thx
Fabrice
- TanyaYatskovska10 years ago
Alumni
Hi FabriceB,
Try using the Point and fix mode of Object Spy to catch your elements. I suppose that they will be found in the ContextMenu object of your Java process. For example, here is what I see on my computer:
Sys.Process("javaw").JavaFXObject("ContextMenu", "").
JavaFXObject("Scene$3$1", "").
JavaFXObject("ContextMenuContent$MenuItemContainer", "", 0).
JavaFXObject("ContextMenuContent$MenuLabel", "Item1")Thus, the following code will click the target item:
function Test() { var javaw; javaw = Sys.Process("javaw");
javaw.JavaFXObject("Stage", "JavaFX").JavaFXObject("Scene", "").
JavaFXObject("MenuButton", "MenuButton1").DropDown();
javaw.JavaFXObject("ContextMenu", "").JavaFXObject("Scene$3$1", "").
JavaFXObject("ContextMenuContent$MenuItemContainer", "", 0).
JavaFXObject("ContextMenuContent$MenuLabel", "Item1").Click(); }- FabriceB10 years agoOccasional Contributor
Hi,
Sorry for the delay of my answer.
i restart to work on this problem for few days only. Thank you for your response.
in fact, i force the fropdown by .hide/.show and TC can look and catch my content, i can see and use my elements
Thx u so
Fabrice