Ask a Question

decompose WEB controls/get access to some custom WEB controls sub-objects

radu
Occasional Contributor

decompose WEB controls/get access to some custom WEB controls sub-objects

 

Dear all,

 

I'm testing the printing functionality of a web application (displayed with Chrome 68). I can see in the ObjectBrowser that there are some object corresponding to the page, but I do not have access to their children. How can I access things like buttons (the Print button) from the displayed page? Please see the attachements.

 

Note1: you can see the properties of the object with the Print button in the screenshots;

Note2: the objects are identified as Chrome_RenderWidgetHostHWND (ClassName) or as Chrome Legacy Window (WndCaption) or as Chrome_RenderWidgetHostHWND (WndClass);

Note3: I know there is an older discussion ("Need Help to identify chrome legacy window object") but I don't know what to add to the TestedApplication (chrome executable?; web page url?)

 

Thank you for your time and support!

R

3 REPLIES 3
tristaanogre
Esteemed Contributor

I see FireFox in your Object Explorer and Chrome.... question... that print popup.... is it coming up when you're printing from Chrome or from FireFox?

 

Additionally, you mention in another thread that you noticed Chrome is running Chrome 68 and you're running TC 12.42.  In that other thread, I recommended upgrading to TC 12.50 to be able to support Chrome 68... is this problem here related to the mismatch of Chrome versions to TC version as mentioned?


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
radu
Occasional Contributor

 

Hi Robert!

I thank you for your answer.

I'm currently working only in Google Chrome (GC) because this is the required browser to be used (for testing this project). The popup is different in Firefox (i.e. is more simpler: it just asks me for chossing the printer (please see the atachment)). I think this new type of controls/popup is something created by Google.

Regarding your other question, I can confirm that using GC 64.0.3282.140 (official build 64bits), SmartbearTestExtension12.0.2 and TestComplete 12.42.3048.7 x64, when one wants to print something (i.e. an email from his/hers favourite email web page) some controls appear that are not visible with TestComplete - only some high level controls appear, and I don't know how to deal with its sub-object/children.

Anyway, let's just think there is no incompatibility between GC and TC and return to my initial question: how/where to add this new controls to make them accessible by tests functions? (As an example/similar case (probably) I know that if one finds some weird WPF controls, he/she can add them to the project properties and TestComplete might understand them and it would decompose these controls allowing access to the desired objects/children; I don't know what is the control type/name to add (that's why I've attached some images with some properties in the initial post) and where to place them - this web application is not a WPF one:) )

I thank you once again for your time and support!
R

Hi,

 

I tried with Chrome and also was not able to get controls from the 'print' overlay to be recognized in TestComplete.

My current understanding is that this is something provided by Chrome itself, implemented as a native binary code and thus not accessible to TestComplete.

The quick idea is to try new OCR functionality in TestComplete 12.6 Beta (https://community.smartbear.com/t5/TestComplete-General-Discussions/TestComplete-Beta-Program-Try-AI...) and check if it works.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
cancel
Showing results for 
Search instead for 
Did you mean: