Ask a Question

Chrome Widget in an Electron application

SOLVED
jerkins
Occasional Contributor

Chrome Widget in an Electron application

Hi,

My application is an Electron application and it has a small tab-menu extension (there is a down arrow and when clicked expands as a menu). Until the Down arrow I am able to recognize as a part of my electron application but the menu which is displayed (after clicking on the down arrow) is not getting recognized. When I spy the menu it shows Window("Chrome_WidgetWin_2", "", 1) in the Name. Please help me identify the chrome widget.

Note: Already Web and Desktop installation are available in my Test Complete.

5 REPLIES 5
hkim5
Staff

is the dropdown as a whole getting recognized at all? 

if you are trying to interact withe that object, or the options within that object, could you try using something like on screen action or call object method (click the top level tab that produces the dropdown) and then use the same operations again (on screen action or call object method) and use the ctrl+shft+a option of the "object spy"  to select a separate GUI action on the drop down items after it appears (after you physically click the tab that produces the drop down)?

 

Best,
Justin Kim
sonya_m
SmartBear Alumni (Retired)

Thank you for the suggestion Justin!

 

Hi @jerkins , any luck with using this approach?


Sonya Mihaljova
Community and Education Specialist

jerkins
Occasional Contributor

Hi Justin/Sonya,

I did use shift+Ctrl+A to identify the drop down menu. With that I see Window("Chrome_WidgetWin_2", "", 2) in Name. The entire drop down menu is recognized this way and I cant recognize anything beyond that. The drop down menu displays few values and I am supposed to read it using Automation which I am unable to do.

There are a few workaround I can think of...

Does this application have chromium embedded content? - if so, turning on the * checkbox in the options -> current project properties -> MSAA may enable testcomplete to identify each of those dropdown panels. 

If this does not work, then I would suggest looking into OCR actions - with the TestComplete IQ add on. 

Best,
Justin Kim
jerkins
Occasional Contributor

Thanks Justin, enabling MSAA worked like a charm!

cancel
Showing results for 
Search instead for 
Did you mean: