- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
04-27-2026 12:39 AM
Need help in creating webform element
X-path :-/html/body/div/div[2]/div/div/div[2]/form/button
<button data-slot="button" class="inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive bg-primary text-primary-foreground shadow-xs hover:bg-primary/90 h-9 px-4 py-2 has-[>svg]:px-3 w-full" type="submit">Sign In</button>
04-27-2026 05:19 AM
Hello,
Here are a couple of references - The first one is for self-hosted but should be adequate
https://docs.cyberark.com/pam-self-hosted/latest/en/content/pasimp/psm_webapplication.htm
https://community.cyberark.com/s/article/WebFormFields-Commands-Guide
Your xpath example would be turned into /html/body/div/div^[2^]/div/div/div^[2^]/form/button with the carets entered before the brackets.
04-27-2026 08:22 AM
Hi @Dandla Praveen Kumar ,
Use the below syntax for your example.
/html/body/div/div^[2^]/div/div/div^[2^]/form/button>(button)(SearchBy=xpath)
Further, refer to the below article to get an idea about web form field creation
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!

