Forum Discussion

eric_armstrong's avatar
eric_armstrong
New Contributor
12 years ago

FindChild JavaFXObject

Hi,



In the Application I'm testing there are several JavaFXObject's.

I need to use the FindChild because of changes in the Object branch.



For example:



Aliases.MyProcess.JavaFXOject( "Label", 1 ).JavaFXObject( "Button", "Go" );



On the first JavaFXObject, the number 1 is constantly changing, so I want to do a FindChild for the Second JavaFXObject: JavaFXObject("Button","Go")



I tried many different way of doing the FindChild on this object with no success. Can someone show me an exmple on how it could be done.



We are using Javascript



Eric

2 Replies

  • Hi all,



    Problem is solved and I just want to share my finding.



    After keeping the FindChild result in a variable, I was pushing the variable into the Log.Message(); method but I forgot to add the .FullName after my variable.



    So what I had was:



    - Log.Message(w);



    But the working way was to add the FullName like so:



    - Log.Message(w.FullName);





    Hope it helps someone else.







    Eric
  • Just to add some information,



    I tried different things and one of those is:



    Aliases.MyProcess.FindChild( "Button", "Go",999 );



    But it doesn't work.