I have some Excel plugin and Windows Forms dialog for configuration. Problem is that when I run excel and click on my configuration, group boxes in configuration form sometimes have RXpath
/element[@controlname='groupBoxServerSettings'] and sometimes /container[@controlname='groupBoxServerSettings'] so my RXpath cannot find them always.
Also all my controls in groupBox change path. For example. My textBox change paths into this two values:
text[@controlname='textBoxBaseUrl']/text and
element[@controlname='textBoxBaseUrl']/text
Is there a way to have Rxpath written in that way so it can detect any of those elements like:
(text | element)[@controlname='textBoxBaseUrl']/text and for groupBox
(element | container)[@controlname='groupBoxServerSettings']
Or to use some type that is more generic that both of these types so it will fit RXpath always.
Or can I specify somehow in my GUI part that to create always only container and text elements.
How to solve this?
Regards,
Vladimir Vajda