IHTMLDocument2 - click button inside iframe

前端 未结 2 1292
离开以前
离开以前 2021-01-28 07:05

I\'m creating a DCOM extension for some really old application. Main application has IE control inside of it.

Using C# I was able to get handler for that IE Control as b

相关标签:
2条回答
  • 2021-01-28 07:22

    Try accessing the frames collection using single threaded architecture (STA Thread). That worked for me, in a functional nunit test that confirmed frame contents. I had the same cast error until I switched thread models.

    0 讨论(0)
  • 2021-01-28 07:23

    This should be possible via contentWindow or contentDocument property of iframe element depending on what IE version you have according to http://www.w3schools.com/jsref/prop_frame_contentwindow.asp However I haven't been able to get it working, contentWindow seems to return some element but it has empty document property (in my case with IE9).

    Since this question has been posted a while ago, I'm wondering if you managed to make some progress with this?

    0 讨论(0)
提交回复
热议问题