I am evaluating Ranorex for our Flex based application.
I am facing an issue with creating xpaths which is kind of showstopper for me to move forward with ranorex.
In our flex application in many cases an object can exists multiple times with exactly same path, but only one of them will have a path where all objects along the hierarchy are visible=true. In all others atleast one object in the path will be visible=false, generally the 'element'
For example in the attached snapshot file , if you search with following xpath:
Code: Select all
/dom[@domain='jsy-memwebvt003:81']//iframe[#'_ctl0_LoadMemotech6']/body/flexobject/container[@id='moduleContainer']//element[@type~'PatentFamilyModule.*']//container[@webpartname='Actions']//text[@text='Create']
Is is somehow possible to create an xpath which can have a condition that only visible objects are searched ?
On googling I got something like
Code: Select all
//input[@name='q' and ancestor-or-self::*[@name='f']]
http://stackoverflow.com/questions/2181 ... ntains-ano
But using such values in Ranorex xpath is not working.
Please guide me as to how I can configure an xpath for such requirement.
Thanks
Akash