CPM Web plugin failing because of Cookie Prompt
131
Created On 11/10/26 10:59 AM - Last Modified 11/10/26 16:00 PM
Symptom
When launching a web based plugin, the plugin fails to verify or change the password due to a cookie prompt or other popup blocking the logon button.
The logs will show the following errors,
ERROR -> BaseAction :: HandleGeneralError -> Got exception: System.InvalidOperationException: unknown error: Element <button value="1" class="_42ft _4jy0 _6lth _4jy6 _4jy1 selected _51sy" name="login" data-testid="royal_login_button" type="submit" id="u_0_d_pz">...</button> is not clickable at point (985, 304). Other element would receive the click: <div class="_3ixn"></div> Plugin results : exit code = 9999 Message = General error occurred. Review the logs for more information
Environment
10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1 Central Policy Manager (CPM) Other
Facebook Plugin
CPM for Web Applications
Cause
This is caused by the prompt for the cookie policy blocking the clickable element (logon button).
As these sort of elements are region specific we are not able to address this in the marketplace plugin as this would break the plugin for other regions.
Resolution
We need to address and click on the cookie button before we attempt to logon to the system.
This will be completed by right clicking on the element and selecting inspect, Then addressing this the same way as any other button or clickable element in the web page.
As of August 2021 the below addresses this in the Facebook plugin;
Add the line "//button[@data-testid="cookie-policy-dialog-accept-button"]>(click)(searchby=xpath)" to the start of the verify and change scripts in the FacebookElementsData.ini
Please note the above is specific to this plugin at the time tested, Other websites will use different id values and code. Additionally if Facebook update their cookie popup they would need to be modified to suit the new code.
For further information on editing the Web Form Fields and testing the plugin prior to use please see the documentation on our website here