Capture Popup url trigger by Button click, not anchor tag

I'm trying to scrape LinkedIn external url for the jobs. I want to get that new window url. Currently it is all driven through Javascript to open new window from a Button click. I see that we have a Popup Link but that if the click element is an anchor. But it does not work with a Button element. Webscraper would give an error message:
"SCRIPT_SELECTOR_ERROR: EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'report-sample' 'sha256-6gLjSWp3GRKZCUFvRX5aGHtECD1wVRgJOJp7r0ZQjV0=' 'unsafe-inline' s.c.lnkd.licdn.com static-fstl.licdn.com static-src.linkedin.com..."

How would I capture that popup url?

Thanks in advance

@leemeng any chance you have any experience at this?