<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CPM Web Applications Plugin - Unable to test or rotate passwords in PAM Self-Hosted Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/cpm-web-applications-plugin-unable-to-test-or-rotate-passwords/m-p/1364882#M52940</link>
    <description>&lt;P&gt; @Bernhard Brückler​&amp;nbsp;Another thing I learned which you might also find useful is that starting with version 11.2 of the WebApp CPM plugin framework, SearchBy=CSS is actually supported. You can read the revision details &lt;A alt="https://community.cyberark.com/mplace/s/#a352J000000WU3aQAG-a392J0000013WwCQAU" href="https://community.cyberark.com/mplace/s/#a352J000000WU3aQAG-a392J0000013WwCQAU" target="_blank"&gt;here&lt;/A&gt;. Not sure why this isn't included in the support documentation.&lt;/P&gt;&lt;P&gt;I believe I narrowed my problem down to the lack of timout options in ElementsData.ini. I wrote a .NET test using the same web elements and as soon as I added some timeouts/waits here and there magic happened.&lt;/P&gt;&lt;P&gt;It looks like that the CPM plugin isn't waiting for certain web elements to load, attempts to parse their names/ids/xpaths from the .ini file and since it doesn't find them on the web page - it fails with an unrecoverable error. Implementation of an implicit wait in the ElementsData.ini may actually solve many problems people like me are facing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jan 2021 14:35:43 GMT</pubDate>
    <dc:creator>PlamenDimitrov-GCON</dc:creator>
    <dc:date>2021-01-12T14:35:43Z</dc:date>
    <item>
      <title>CPM Web Applications Plugin - Unable to test or rotate passwords</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/cpm-web-applications-plugin-unable-to-test-or-rotate-passwords/m-p/1364879#M52937</link>
      <description>&lt;P&gt;Hello Community and Happy New Year!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the start of 2021 I've been working on integrating password management for our web application. So far, session management works great with Google Chrome and chrome driver, however password management doesn't and I cannot get the plugin working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe I've met all requirements listed &lt;A alt="https://docs.cyberark.com/Product-Doc/OnlineHelp/PAS/11.5/en/Content/Plugins/CPM_WebApplication.htm" href="https://docs.cyberark.com/Product-Doc/OnlineHelp/PAS/11.5/en/Content/Plugins/CPM_WebApplication.htm" target="_blank"&gt;here&lt;/A&gt; and I also read about other community members' similar issues they are facing &lt;A alt="https://community.cyberark.com/s/question/0D52J00006ra5K3SAI/can-we-use-multiple-urls-in-selenium-driver" href="https://community.cyberark.com/s/question/0D52J00006ra5K3SAI/can-we-use-multiple-urls-in-selenium-driver" target="_blank"&gt;here&lt;/A&gt; and &lt;A alt="https://www.reddit.com/r/CyberARk/comments/eo31q3/cpm_web_application_plugin/" href="https://www.reddit.com/r/CyberARk/comments/eo31q3/cpm_web_application_plugin/" target="_blank"&gt;there&lt;/A&gt;. None of the suggested solutions or tips given helped me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's what I've done:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I have the latest Google Chrome and the latest matching chromedriver installed on our CPM server.&lt;/LI&gt;&lt;LI&gt;For the web application I've created the following files:&lt;/LI&gt;&lt;/UL&gt;&lt;OL&gt;&lt;LI&gt;&lt;B&gt;[PLATFORM]ElementsData.ini&lt;/B&gt; file in the /bin folder. It only contains Verify and Change sections, neither of which functions.&lt;/LI&gt;&lt;LI&gt;&lt;B&gt;Policy-[PLATFORM].ini&lt;/B&gt; in the Samples folder&lt;/LI&gt;&lt;LI&gt;&lt;B&gt;Policy-[PLATFORM].xml &lt;/B&gt;in the /bin folder&lt;/LI&gt;&lt;LI&gt;&lt;B&gt;user.ini&lt;/B&gt; file in the /bin folder&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The policy .ini and .xml files are from the exported platform.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The User.ini contains the following, as I've replaced the clear text wirth dummy variables.&lt;/P&gt;&lt;CODE&gt;[targetaccount]
username=[USERNAME]
newpassword=[NewPassword]
password=[PASSWORD]
safename=[SAFENAME]
foldername=Root
objectname=[OBJECTNAME]
&amp;nbsp;
[extrainfo]
VerifyURL=http://test
ChangeURL=http://test
WebFormFieldsFile=[PLATFORMID]ElementsData.ini
RunVerifyAfterChange=No
RunVerifyAfterReconcile=No
ActionTimeout=10
PageLoadTimeout=30
EnforceCertificate=No&lt;/CODE&gt;&lt;P&gt;When I attempt to run the test using CANetPluginInvoker.exe, I get error 8221.&lt;/P&gt;&lt;P&gt;This is the command line I use.&lt;/P&gt;&lt;CODE&gt;C:\Program Files (x86)\CyberArk\Password Manager\bin&amp;gt;CANetPluginInvoker.exe user.ini changepass CyberArk.Extensions.Plugin.WebApp.dll True&lt;/CODE&gt;&lt;P&gt;The result is:&lt;/P&gt;&lt;CODE&gt;The plugin ended with return code : 8221&lt;/CODE&gt;&lt;P&gt;For the record, I am able to access the web application from the CPM server, it is not behind a proxy or any weird network and firewall settings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to execute a password change via PVWA, I get error 8223:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;CODE&gt;Execution error. Change process failed - Failed to parse section Change from line 6. Error: Failed to parse web forms fields. Line number 6. Error code:8223 The CPM is trying to change this password because its status matches the following search criteria: ResetImmediately,OneTimePassword.&lt;/CODE&gt;&lt;P&gt;In my platform settings under Automatic Password Management/Additional Policy Settings/Parameters my verify and change URLs are correctly set, WebFormFieldsFile points to my &lt;B&gt;[PLATFORM]ElementsData.ini; &lt;/B&gt;BrowserPath and DriverFolder point to the correct Chrome and ChromeDriver instances.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The log file generated under /Logs/ThirdParty doesn't give any more information, as well as pm_error.log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PMTrace.log is also reading: "Execution error. Change process failed - Failed to parse section Change from line 6. Failed to parse web forms fields. Line number 6. Error code:8223"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my ElementsData.ini file, apparently CANetPluginInvoker.exe and CPM are failing to read it. Tried changing the encoding of the file, tried re-creating it, but to no avail.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;CODE&gt;[Verify]
login_user&amp;gt;{Username}(SearchBy=id)
login_pass&amp;gt;{Password}(SearchBy=id)
span.uii.uii-arrow-right&amp;gt;(Button)(SearchBy=CSS)
login-error&amp;gt;(Failure)(SearchBy=id)(Message="You must specify a valid username and password.")
main-title-module&amp;gt;(Validation) (SearchBy=id)
&amp;nbsp;
[Change]
login_user&amp;gt;{Username}(SearchBy=id)
login_pass&amp;gt;{Password}(SearchBy=id)
span.uii.uii-arrow-right&amp;gt;(Button)(SearchBy=CSS)
login-error&amp;gt;(Failure)(SearchBy=id)(Message="You must specify a valid username and password.")
(Navigate=http://URLtoChangePassword/
old_password&amp;gt;{Password}{SearchBy=name)
new_password&amp;gt;{newPassword}(SearchBy=name)
confirm_new_password&amp;gt;{newPassword}(SearchBy=name)
PwForm_save&amp;gt;(Button)(SearchBy=id)&lt;/CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone direct me to what I could be possible missing here? &lt;/P&gt;&lt;P&gt;Any suggestions and hints would be much appreciated &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: We're running Core PAS 11.5 environment.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 08:21:26 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/cpm-web-applications-plugin-unable-to-test-or-rotate-passwords/m-p/1364879#M52937</guid>
      <dc:creator>PlamenDimitrov-GCON</dc:creator>
      <dc:date>2021-01-06T08:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: CPM Web Applications Plugin - Unable to test or rotate passwords</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/cpm-web-applications-plugin-unable-to-test-or-rotate-passwords/m-p/1364880#M52938</link>
      <description>&lt;P&gt;Afaik "(SearchBy=CSS)" is not a valid statement. You can only find an element by its ID, Name, Class, Text, or Xpath... not "CSS" in general. So you would need to convert the "span.uii.uii-arrow-right" string into the appropriate Xpath (or use another method) to find the button to click.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 21:56:18 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/cpm-web-applications-plugin-unable-to-test-or-rotate-passwords/m-p/1364880#M52938</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2021-01-06T21:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: CPM Web Applications Plugin - Unable to test or rotate passwords</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/cpm-web-applications-plugin-unable-to-test-or-rotate-passwords/m-p/1364881#M52939</link>
      <description>&lt;P&gt;Hi and thanks for the reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately changing the type of SearchBy didn't help. It keeps failing with the same error. I tried with =id, =xpath (full and relative), but to no avail.&lt;/P&gt;&lt;P&gt;Funny enough, I took SearchBy=CSS from a string in the connection component generated using PGU. The PSM session works totally fine and it is able to locate the web element by this CSS tag.&lt;/P&gt;&lt;P&gt;I will keep playing some more with this, hopefully will do some brainstorming with the team to get it working and will update here if we have any success.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers &lt;span class="lia-unicode-emoji" title=":victory_hand:"&gt;✌️&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 13:56:24 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/cpm-web-applications-plugin-unable-to-test-or-rotate-passwords/m-p/1364881#M52939</guid>
      <dc:creator>PlamenDimitrov-GCON</dc:creator>
      <dc:date>2021-01-07T13:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: CPM Web Applications Plugin - Unable to test or rotate passwords</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/cpm-web-applications-plugin-unable-to-test-or-rotate-passwords/m-p/1364882#M52940</link>
      <description>&lt;P&gt; @Bernhard Brückler​&amp;nbsp;Another thing I learned which you might also find useful is that starting with version 11.2 of the WebApp CPM plugin framework, SearchBy=CSS is actually supported. You can read the revision details &lt;A alt="https://community.cyberark.com/mplace/s/#a352J000000WU3aQAG-a392J0000013WwCQAU" href="https://community.cyberark.com/mplace/s/#a352J000000WU3aQAG-a392J0000013WwCQAU" target="_blank"&gt;here&lt;/A&gt;. Not sure why this isn't included in the support documentation.&lt;/P&gt;&lt;P&gt;I believe I narrowed my problem down to the lack of timout options in ElementsData.ini. I wrote a .NET test using the same web elements and as soon as I added some timeouts/waits here and there magic happened.&lt;/P&gt;&lt;P&gt;It looks like that the CPM plugin isn't waiting for certain web elements to load, attempts to parse their names/ids/xpaths from the .ini file and since it doesn't find them on the web page - it fails with an unrecoverable error. Implementation of an implicit wait in the ElementsData.ini may actually solve many problems people like me are facing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2021 14:35:43 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/cpm-web-applications-plugin-unable-to-test-or-rotate-passwords/m-p/1364882#M52940</guid>
      <dc:creator>PlamenDimitrov-GCON</dc:creator>
      <dc:date>2021-01-12T14:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: CPM Web Applications Plugin - Unable to test or rotate passwords</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/cpm-web-applications-plugin-unable-to-test-or-rotate-passwords/m-p/1364883#M52941</link>
      <description>&lt;P&gt;Good to know, thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 08:15:36 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/cpm-web-applications-plugin-unable-to-test-or-rotate-passwords/m-p/1364883#M52941</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2021-01-13T08:15:36Z</dc:date>
    </item>
  </channel>
</rss>

