What is the correct format to use in the WebFormFields for a Web page?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

What is the correct format to use in the WebFormFields for a Web page?

L1 Bithead

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.

 

Field_Content_versions_oct20__068Vy00001HmDS8IAN.png 

 

How should I do it ? Using id or XPath ? And what would be the correct format to use?

Thank you

2 REPLIES 2

L5 Sessionator

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"^]

L1 Bithead

I usually prefer using full Xpath over Xpath.

  • 85 Views
  • 2 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!