Click event is not executing the href javascript code.
We are getting below error in the chrome browser:
“Refused to run the JavaScript URL because it violates the following Content Security Policy directive: “script-src ‘self’ ‘wasm-unsafe-eval’ ‘inline-speculation-rules’”. Either the ‘unsafe-inline’ keyword, a hash (‘sha256-…’), or a nonce (‘nonce-…’) is required to enable inline execution. Note that hashes do not apply to event handlers, style attributes and javascript: navigations unless the ‘unsafe-hashes’ keyword is present.”
Here is code on HTML
<a onclick="$(this).css('pointer-events','none'); $(this).attr('disabled','disabled');"
id="proceedbtn"
class="ic-button"
usesubmitbehavior="false"
href="javascript:__doPostBack('proceedbtn','')" zn_id="32">
Proceed to Payment
</a>
Here is the Get Element Selector
[
{
"Selector": "NM",
"browser": "chrome",
"frame": "-1"
},
{
"cssselector": "#proceedbtn"
}
]
Thanks in advance.