CPM Plugin for WebApps fails when the change process is initiated from PVWA, but is successful when it is undertaken from CMD with the command CANetPluginInvoker

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

CPM Plugin for WebApps fails when the change process is initiated from PVWA, but is successful when it is undertaken from CMD with the command CANetPluginInvoker

L1 Bithead

I am creating a CPM Plugin for WebApps. When I run the change process using the following command, the process is successful:

 

set pmextrapass3=ReconPassword123 && set pmnewpass=NewPassword123 && bin\CANetPluginInvoker.exe CiscoUser.xml changepass Cyberark.Extensions.Plugin.WebApp.dll True

 

However, when I use the same .ini file and initiate the change process from PVWA, it fails with the following error:

 

Execution error. Change process failed - Unable to press on button element 'dijitCheckBox'. Refer to the log for more. Error code:9304

 

Below are the debug logs when I run the command directly from CMD:

 

 

17/09/2024 11:44:10.958 | Info -> HTMLPageController :: FindElement -> Element 'dijitCheckBox' was found in page using type 'CLASS'.

17/09/2024 11:44:10.958 | Info -> HTMLPageController :: FindElement -> END

17/09/2024 11:44:10.958 | Info -> WebElementWrapper :: Click -> START

17/09/2024 11:44:10.958 | Info -> WebElementWrapper :: Click -> Clicking on element 'dijitCheckBox'

17/09/2024 11:44:11.082 | Info -> WebElementWrapper :: Click -> Clicked successfuly on element.

17/09/2024 11:44:11.082 | Info -> WebElementWrapper :: Click -> END

 

 

And here are the debug logs when I start the process from PVWA:

 

 

18/09/2024 12:09:08.370 | Info -> HTMLPageController :: FindElement -> Element 'dijitCheckBox' was found in page using type 'CLASS'.

18/09/2024 12:09:08.370 | Info -> HTMLPageController :: FindElement -> END

18/09/2024 12:09:08.370 | Info -> WebElementWrapper :: Click -> START

18/09/2024 12:09:08.370 | Info -> WebElementWrapper :: Click -> Clicking on element 'dijitCheckBox'

18/09/2024 12:09:09.458 | ERROR -> WebElementWrapper :: Click -> Failed to press on button. Exception Details: OpenQA.Selenium.ElementClickInterceptedException: element click intercepted: Element <div tabindex="0" class="dijitCheckBox">...</div> is not clickable at point (48, 273). Other element would receive the click: <div id="sidenav" class="" style="height: 633px; max-height: 633px;">...</div>

 (Session info: chrome=128.0.6613.85)

  at OpenQA.Selenium.WebDriver.UnpackAndThrowOnError(Response errorResponse, String commandToExecute)

  at OpenQA.Selenium.WebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)

  at OpenQA.Selenium.WebElement.Execute(String commandToExecute, Dictionary`2 parameters)

  at OpenQA.Selenium.WebElement.Click()

  at CyberArk.WebAutomationUtils.WebElementWrapper.Click(Int32 actionTimeout)

  

  

Does anyone have any idea why this can happen?

1 accepted solution

Accepted Solutions

L7 Applicator

There could be a pop-up (eg cookies) that is covering what you need to press. You'd have to work out if that's the case and code to close it.

 

Another possible cause is that the webpage hasn't fully loaded when you are trying to click. Try adding a wait before you try the click.

 

https://community.cyberark.com/s/article/How-to-let-the-system-sleep-for-a-few-seconds-for-CPM-Web-Application-Plug-in

View solution in original post

2 REPLIES 2

L7 Applicator

There could be a pop-up (eg cookies) that is covering what you need to press. You'd have to work out if that's the case and code to close it.

 

Another possible cause is that the webpage hasn't fully loaded when you are trying to click. Try adding a wait before you try the click.

 

https://community.cyberark.com/s/article/How-to-let-the-system-sleep-for-a-few-seconds-for-CPM-Web-Application-Plug-in

L1 Bithead

Hi Mal,

 

I believe I found the error but haven’t identified the solution yet.

 

The issue seems to stem from the screen resolution. When I test directly using the CANetPluginInvoker.exe command, my screen’s high resolution loads the entire browser window correctly.

 

To diagnose the error, I performed tests at a lower resolution (1024x768). Under this setting, executing the same command fails because a panel covers the object being clicked due to the lower resolution.

 

With this in mind, I would like to ask if there’s a way to increase the screen resolution or window size used by the Web Application CPM Plugin Framework during the password change process.

 

Regards,

 

Diego

  • 1 accepted solution
  • 519 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!