Replies: 1 comment 2 replies
-
You can use devtools to aid in debugging. https://github.com/cefsharp/CefSharp/wiki/Trouble-Shooting#javascript-debugging First confirm that your js is working as expected. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! I am using CefSharp.OffScreen to automate some tasks.
On a page there is a button that opens a new tab with a PDF.
I implemented ILifeSpanHandler, but when the button is clicked OnBeforePopup is not being triggered, as the breakpoint I have set is not hit. I am sure it is clicked as I create screenshots after each EvaluateJavaScriptAsync and the design of the button changes when clicked.
Have to say, that the page is very old and this is the link I am clicking:
<a id="pdflink" role="menuitem" tabindex="-1" clickhandlerattached="clickHandlerAttached" href="#" javascript="javascript:__doPostBack('FormPage_view_LazyContainer$ctl01$ObjectFormPageDataSource_Locations_ListMenu','2')"></a>
I searched a lot, but did not find anything about this. Here's my code
CustomLifeSpanHandler:
Program.cs
Beta Was this translation helpful? Give feedback.
All reactions