SWF Application - RanoreXPath
Posted: Thu May 07, 2009 9:52 am
Hi again,
I have a question about XPath. When I try to identify elements in our SWT application, it generates a pretty long XPath. This can't be helped since SWT uses many layers of controls. However, notice below that it contains unnecessary items. @processname='Harmony' is included in every element. It should be enough to include it once. I really hope this can be resolved somehow, because we use oemized applications which use the same test code, but they have a different process name.
Thanks
I have a question about XPath. When I try to identify elements in our SWT application, it generates a pretty long XPath. This can't be helped since SWT uses many layers of controls. However, notice below that it contains unnecessary items. @processname='Harmony' is included in every element. It should be enough to include it once. I really hope this can be resolved somehow, because we use oemized applications which use the same test code, but they have a different process name.
Code: Select all
/form[@title~'^Harmony\ Eclipse\ 0\.2\.0\.336']/element[@processname='Harmony' and @class='SWT_Window0' and @instance='2']/element[@processname='Harmony' and @class='SWT_Window0' and @instance='1']/element[@processname='Harmony' and @class='SWT_Window0' and @instance='4']/*/*/*/*/element[@processname='Harmony' and @class='SWT_Window0' and @instance='1']/element[@processname='Harmony' and @class='SWT_Window0' and @instance='0']/element[@processname='Harmony' and @class='SWT_Window0' and @instance='1']/text[@processname='Harmony' and @class='Edit' and @instance='0']