I am working with a web-based application in which the code changes structure based on the presence or absence of data for the elements. The code created by the wizard works for the specific record displayed, but will not work for others. In the profile, the path seems to be an XPATH statement. Since I can select the required element using XPATH, this prompted the question can this path be replaced with a custom XPATH statement to locate the value of an element (attribute in this case).
As an example, I would like to change the code from:
<Attributes> <Attribute name="Condition" value="/Root[1]/Document[1]/Table[1]/Custom[2]/Custom[1]/Custom[2]/Edit[40]" /> <Attribute name="Property" value="Value" /> </Attributes>
to
<Attributes> <Attribute name="Condition" value="//input[@id='plan:sellerFirstNameField:sellerFirstName']" /> <Attribute name="Property" value="Value" /> </Attributes>
If so, is it using XPATH 1.0 or 2.0?
Thanks.