cancel
Showing results for 
Search instead for 
Did you mean: 

Menu item is recognized as the whole panel and therefore I have difficulties clicking the correct po

SOLVED
Highlighted
Contributor

Menu item is recognized as the whole panel and therefore I have difficulties clicking the correct po

Hi,

We develop an app that has menu items (File,Home,Insert,Settings,View,Help) when using the object spy to identify all menu items except from the File one it'll identify them all properly marking the area where the menu item name is but, when trying to do the same with the File menu TestComplete will mark the whole panel in red and not only the area where the text (File) is, that is a problem because if i want to saelect this menu item usinf the Click() method then it'll click somewhere on the panel and not on the text, i tried using coordinates (I don't like it as it's not as reliable) but it failed when running the script on a remote machine. Is there a way to dril down this DevExp control and ask TestComplete to click on the File tab exactly and not using coordinates?

When recording a click on the control that's what Testcomplete generates - Aliases.Editor.Editor_Root_Window.MainWindowRibbonControl.Click(30, 48);

When selecting for example the Insert menu item that what I see in the code - Aliases.Editor.Editor_Root_Window.MainWindowRibbonControl.RibbonMenuControls.RibbonControlInsert.Click(35, 16);

See attached .

Thanks

17 REPLIES 17
Highlighted
Contributor

I have attached all ribbon properties and the click methods (to take a screenshot of all methods will take a long time) can you help using this information? or should I copy all methods?

 

***It is such a shame TC doesn't have an option to copy/export all object properties and fields and methods at once without creating a screenshot scroll down take another screenshot and so on....

 

Thanks,

 

Ofer

Highlighted
Community Hero

Is this an application you could package up and send to me? It might easier to see the inner workins that way.


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
Highlighted
Contributor

No sorry can't do that, unless you are part of SmartBear support team and then we can do it via the proper channels

 

Thanks,

 

Ofer

Highlighted
Community Hero

Can you try running just Aliases.Editor.Editor_Root_Window.MainWindowRibbonControl.RibbonMenuControls.ClickItem(0)

by itself, and a screen shot of the log with both the on screen picture and details tab?


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
Highlighted
Contributor

Sure, pleasew find attached

Highlighted
Community Manager

Hi @OV,

Was the issue resolved? We have just released the new learning course that teaches how to handle Object Not Found error:

https://academy.smartbear.com/store/657036-testcomplete-handling-the-object-not-found-errors

 

I think it may help you.

 

 

---------
Tanya Gorbunova
SmartBear Community Manager

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
Highlighted
Contributor

Hi @TanyaGorbunova 

 

Yes it was resolved by using this way:

  1. Open the Object Spy and try recognizing the File tab. You will get some other parent object.
  2. Take the value of the property ClrFullClassName of this object.
  3. Navigate to Tools -> Current Project Properties -> Open Applications -> WPF.
  4. Add a new row to the Composite Objects list and paste the ClrFullClassName value there. Enable this new row.
  5. Try recognizing the File tab again.
  6. Repeat the above steps until you get to the File tab.

Thanks,

 

Ofer

View solution in original post

Highlighted
Community Manager

Hi @OV,

It's great to hear that you've found the solution.

 

 
---------
Tanya Gorbunova
SmartBear Community Manager

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!


Challenge Status

Get properties of a web page element

See replies!

Compare images using the Region Checkpoint

See replies!

Compare HTML table with Excel file and correct data in Excel file

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!
Top Kudoed Authors