CPM Plugin for WebApps fails due to window size when the CPM invokes the plugin

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 due to window size when the CPM invokes the plugin

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

 

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

 

Given this, 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 when invoking the CANetPluginInvoker command.

 

Here are the debug logs when I start the process from PVWA or invoke the command in a window with a low screen resolution:

  

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)

1 accepted solution

Accepted Solutions

L1 Bithead

There is an ER for this issue:

https://community.cyberark.com/s/article/CPM-Web-Application-CPM-Plugin-Framework-WebApp--D-7ff1-b42

View solution in original post

5 REPLIES 5

L7 Applicator

Hi @Diego Torres​ 

 

As I understand, there isn’t a direct configuration setting in CPM Plugin to set the screen resolution.

 

If there was a possible at the plugin level, I would think that would in Selenium WebDriver.

 

Can you try to set the browser resolution at the system (CPM)level through registry ?

L4 Transporter

Hi @Diego Torres​ 

 

As it seems Malhar answered your question, could you kindly share if this solution resolved your issue?

If so, please mark the answer as "Select as Best" to help other community members.

 

If the issue is still relevant, I would advise raising a ticket with our Support team for further assistance.

 

Thank you, Liad

L1 Bithead

There is an ER for this issue:

https://community.cyberark.com/s/article/CPM-Web-Application-CPM-Plugin-Framework-WebApp--D-7ff1-b42

L3 Networker

Hello, I am having the same issue. Do you have a resolution for this topic?

 

Thanks,

José Ángel

@Jose Angel Rodriguez​ 

do you solve this issue, if yes please tell me how

 

  • 1 accepted solution
  • 393 Views
  • 5 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!