Dynamic UI components in WPF is not identified

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
Aloka
Posts: 4
Joined: Fri Feb 26, 2016 12:27 pm

Dynamic UI components in WPF is not identified

Post by Aloka » Fri Feb 26, 2016 12:57 pm

Hi,

Ranorex version: 5.2.2

Problem: It is not identifying the dynamically changing buttons in WPF application.

Description of the problem:
There is a pop-up with several tabs.
Each tab contains a grid and a set of buttons.
As default there are 2 buttons displayed in the tab.
Once the user selects a grid record, it displays another set of buttons (2 buttons).

Ranorex automation works only for the default buttons.
It is not executing the ranorex automation (Pop-up opening > Tab selection > Grid record selection > button click) for the buttons which are displayed on grid record selection.

But after selecting the grid record manually, it executes the ranorex automation for button click.

According to the spy it displays only the default 2 buttons in every time.

Is there way to identify the dynamically displayed buttons?

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Dynamic UI components in WPF is not identified

Post by odklizec » Mon Feb 29, 2016 2:30 pm

Hi Aloka and welcome here,

I'm afraid, Ranorex 5.2.2 is quite old and no longer support. I would suggest you to upgrade to the latest Ranorex 5.4.5. If your current license does not cover 5.4.5, try it in trial mode. The thing is that WPF support has been significantly improved in 5.3.0 and later. So there is a chance your problem is already solved?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

Aloka
Posts: 4
Joined: Fri Feb 26, 2016 12:27 pm

Re: Dynamic UI components in WPF is not identified

Post by Aloka » Tue Mar 01, 2016 6:39 am

Than you. I'll try the solution.