Element Xpath

Element Xpath

129
Created On 11/10/26 10:56 AM - Last Modified 11/10/26 15:50 PM


Symptom


Unable to Parse XPaths elements in the Web From Fields for the PSM Web Application Connection Component
 


Environment


10.0;10.1;10.2;10.3;10.4;10.5;10.6;10.7;10.8;10.9;10.10;14.2 Component: PSM
Functional Area: Web Application Connection Component


Cause


It will not parse the XPath correctly when it contains brackets "[" and "]"

For example:

//*[@id="contentBody"]/div/div[2]/div[2]/h1


Resolution


Information on XPaths can be found here: https://cyberarkdocu.azurewebsites.net/Product-Doc/OnlineHelp/PAS/10.8/en/Content/PASIMP/psm_WebApplication.htm?Highlight=xpath#Syntax

Example: For XPath, when using [ ], include a caret (^) before each bracket.

For example:

//*[@id="contentBody"]/div/div[2]/div[2]/h1

Should be entered as:

//*^[@id="contentBody"^]/div/div^[2^]/div^[2^]/h1


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000jYFCAY&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail