- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.
03-23-2026 02:28 PM
Hello,
I am trying to setup a connection component for a Web page and I am using the WebFormFields.
This it the form I am using:
//*^[@id=\"usernameField\"^]> {Username} (SearchBy=XPath)
//*^[@id=\"passwordField\"^]> {Password} (SearchBy=XPath)
//*^[@id=\"nonSamlBtn\"^]> (Button) (SearchBy=XPath)
But I keep getting an error saying field not found. Error saying Invalid command format at Cyberark.WebAutomationCommon.WebFormFieldsParser... Failed tomatch regex to command...
I also tried with ID but same thing, stull getting errors.
Please see attached picture for the web page Inspect element tools.
How should I do it ? Using id or XPath ? And what would be the correct format to use?
Thank you
03-23-2026 03:49 PM
Hey @Yassine El Talhaoui Did you add the slashes manually here? \"usernameField\ Normally when I copy as XPATH it appears as something more like: //*[@id="usernameField"]
Then after adding the carets for brackets: //*^[@id="identifierId"^]
03-23-2026 07:33 PM
I usually prefer using full Xpath over Xpath.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

