Ask a Question

Object finder not able to find child objects on JavaFx panel in Oxygen XML Editor.

SOLVED
atul_acrolinx
Occasional Contributor

Object finder not able to find child objects on JavaFx panel in Oxygen XML Editor.

Hello team,

My name is Atul Patil from Berlin Germany working with Acrolinx GmbH.
We are current customers having Test complete and test execute licenses and currently evaluating renewal of the licenses.

our company owns a product of content optimization and which has integration with almost all the editors in the market.

out of which we are trying to automate cases for Oxygen editor using test complete.
But our product's sidebar panel is based on the JavaFX web browser, and Testcomplete's object finder is not able to traverse through different child objects of the panel.

we need to understnad why this is happening ? where as when panel is based on the IE browser (for MS Word editor), it works fine.

But Oxygen editor using JavaFX browser to load our product and now we are not able to traveser through the child objects of our sidebar.

can you please extend you support on this problem ?

I am using
Oxygen editor 21.1 version
Test complete Version: 14.0.308.7 x64

7 REPLIES 7
atul_acrolinx
Occasional Contributor

From the attached image in the original question, we can see that object finder can only highlight the outer panel of the sidebar only. 

But what I would want it to select, find, highlight, click on its child objects - such as - Check button, other links on the sidebar etc.

 

as the sidebar is based on JavaFX browser.  which currently is not working with TC v14 .

 

 

The first steps is to make sure that you have properly configured and set up TestComplete and your application so that it can be automated.  Please check through https://support.smartbear.com/testcomplete/docs/app-testing/desktop/java-fx/index.html


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

Thank you  @tristaanogre  for so quick response. 

I checked on the given link and found that in the supported control list under JavaFX does not include control "Webview". 

 

Our all the child objects are inside the webview control. 

https://support.smartbear.com/testcomplete/docs/general-info/supported-technologies/controls/javafx....

 

I could see there are some old threads on the community - but do not see any fix or supprt added to it.

 

https://community.smartbear.com/t5/TestComplete-Feature-Requests/JavaFX-WebView-Control-Support-Test...

 

 

The best I can suggest is two-fold:

 

1) Upvote that item in the feature request

2) Send a request directly to the support team at https://support.smartbear.com/message/?prod=TestComplete


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

Thank you so much @tristaanogre  for all your inputs, it really helped. 

 

I did wrote to support this morning and waiting for their response. 

 

Hope for the best. Thank you again. 

TanyaYatskovska
SmartBear Alumni (Retired)

Hi @atul_acrolinx,

 

I've found your support case. Let me post a reply from the technical team here:


Support team wrote:

Are we talking about javafx.scene.web.WebView? This is an embedded browser control, and these require special support from the TestComplete side. This particular control is not supported at the moment. We have a feature request in our community for this support, but the demand does not seem to be high enough to expect it being implemented in the near future.

There's no way to make TestComplete recognize controls as individual objects at the moment. But, there is a way to interact with them through the WebEngine object (see the documentation here: "Class WebEngine [https://docs.oracle.com/javase/8/javafx/api/javafx/scene/web/WebEngine.html]"). In a script, it'll look like this: 

[JavaScript]
  var engine = JavaFXObject("WebView", "").getEngine();
  var doc = engine.getDocument();
  Log.Message(doc.getDocumentURI());


To simulate actions over the web elements, you can use methods like getElementById, or call "executeScript" to use native methods of the browser to evaluate XPath expressions to find elements. There are also some relevant code examples on StackOverflow:
https://stackoverflow.com/questions/26562380/getting-javafx-webengine-interpreted-document
https://stackoverflow.com/questions/tagged/webview+javafx


 

 

 

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



dineth
Occasional Contributor

Hi Tanya,

 

Is it possible to interact with the JavaFX WebView objects through the WebEngine object within a python script?

Kind regards,
Dineth

cancel
Showing results for 
Search instead for 
Did you mean: