How to catch alert box showing on web page and getting the text inside it by using chromedp
I have noticed that when alert is showing up, I can see that Page.javascriptDialogOpening is showing
I am using
cdp.EvaluateAsDevTools("Page.javascriptDialogOpening", res)
to get the text inside it, but it doesn't work How to handle it in chromedp??