asp.net - C# WebBrowser DrawToBitmap returning a white picture on DOM change -
i have been attempting capture webpage automation purposes have been having issues drawtobitmap() returns white picture. seems me returns white when dom has been changed or browser navigates.
for example filling out login form programatically , submitting form, , seems once give ajax request enough time complete , browser gets redirected produce white image.
i fixed problem disposing of , recreating webbrowser instance , navigating directly post-login page. works fine if take screen shot when readystate 'complete'. if give enough time load data graphs in , other data needs white image.
i have tested , can confirm not delay in program causing white image.
any appreciated!
thanks!
Comments
Post a Comment