- 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.
09-23-2021 10:30 PM
I am setting up a PSM web component for OVM (oracle virtualization). I'm trying to configure the Webformfields by copying the xptath and I can't get it to work.
If these are the user's xpaths, password and login button, how should they be with xpath?
//*[@id="pt1:loginUsername::content"]
//*[@id="pt1:loginPassword::content"]
For the login button, I couldn't get the xpath and so I tried the generator plugin and This is what I got from the xml generated by the simulation with the plugin generator:
WebFormFields="pt1:loginUsername::content>{Username}(SearchBy=id)
pt1:loginPassword::content>{Password}(SearchBy=id)
span.xgi>(Button)(SearchBy=css)
"
10-07-2021 08:52 PM
using the xpath fields it got working. The only way to get the login button information was using PGU.
--------------------------------------below-------------------
//*^[@id="pt1:loginUsername::content"^] > {Username}(SearchBy=xpath)
//*^[@id="pt1:loginPassword::content"^] > {Password}(SearchBy=xpath)
span.xgi > (Button)(SearchBy=css)
//*^[@id="pt11:pt_psl2"^] >(Validation)(SearchBy=xpath)
pt11:pt_psl2 > (Validation)
09-23-2021 11:35 PM
The code based on PGU doesn' work?
pt1:loginUsername::content > {Username}(SearchBy=id)
pt1:loginPassword::content > {Password}(SearchBy=id)
According to the docs, the xpath select should be exactly what you posted, just with a caret (^) in front of every square bracket([]).
//*^[@id="pt1:loginUsername::content"^] > {Username}(SearchBy=xpath)
//*^[@id="pt1:loginPassword::content"^] > {Password}(SearchBy=xpath)
09-24-2021 05:30 AM
PGU ends with error:
the connector validation failed. Timeout error. Failed to find element pt1: loginUsername :: content in page.
I click on "generate anyway" and what I get is a zip with xml file.
The XML contains:
<ConnectionComponent Id="PSM-OVM4" Type="CyberArk.PasswordVault.TransparentConnection.PSM.PSMConnectionComponent, CyberArk.PasswordVault.TransparentConnection.PSM" DisplayName="OVM4">
<ComponentParameters />
<UserParameters>
<Parameter Name = "AllowMappingLocalDrives" Type="CyberArk.TransparentConnection.BooleanUserParameter, CyberArk.PasswordVault.TransparentConnection" Value="No" Visible="No" Required="Yes" EnforceInDualControlRequest="No" />
</UserParameters>
<TargetSettings Protocol = "HTTP" ClientApp="Chrome" ClientDispatcher=""{PSMComponentsFolder}CyberArk.PSM.WebAppDispatcher.exe" "{PSMComponentsFolder}"" ClientInvokeType="WebForm">
<ClientSpecific>
<Parameter Name = "ActionTimeout" Value="10" />
<Parameter Name = "PageLoadTimeout" Value="30" />
<Parameter Name = "RunValidations" Value="No" />
</ClientSpecific>
<LockAppWindow Enable = "Yes" MainWindowClass="Chrome_WidgetWin_1" Timeout="2000" SearchWindowWaitTimeout="30" />
<WebFormSettings LogonURL = "https://10.10.10.210:7002/ovm/console/faces/login.jspx" FormName="login" SubmitButton="" WebFormFields="pt1:loginUsername::content>{Username}(SearchBy=id)
pt1:loginPassword::content>{Password}(SearchBy=id)
span.xgi>(Button)(SearchBy=css)
" EnforceCertificateValidation="Yes" />
<Capabilities>
<Capability Id = "KeystrokesAudit" />
<Capability Id="KeystrokesTextRecorder" />
</Capabilities>
</TargetSettings>
</ConnectionComponent>
10-07-2021 08:52 PM
using the xpath fields it got working. The only way to get the login button information was using PGU.
--------------------------------------below-------------------
//*^[@id="pt1:loginUsername::content"^] > {Username}(SearchBy=xpath)
//*^[@id="pt1:loginPassword::content"^] > {Password}(SearchBy=xpath)
span.xgi > (Button)(SearchBy=css)
//*^[@id="pt11:pt_psl2"^] >(Validation)(SearchBy=xpath)
pt11:pt_psl2 > (Validation)
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!

