Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/vim/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何从WebBrowser访问IFrame元素_C#_Iframe_Browser_Recaptcha - Fatal编程技术网

C# 如何从WebBrowser访问IFrame元素

C# 如何从WebBrowser访问IFrame元素,c#,iframe,browser,recaptcha,C#,Iframe,Browser,Recaptcha,我有一个WebBrowser控件,它有一个没有ID的iFrame。该iFrame在每次导航时都会改变自身。因此,我需要访问iFrame元素,这些元素的值出现在我的WebBrowser上。iFrame是从GoogleRecaptchaAPI加载的。以下是iFrame的外观: <iframe frameborder="0" height="300" src="https://www.google.com/recaptcha/api/noscript?k=aKeyIsWrittenHere" w

我有一个WebBrowser控件,它有一个没有ID的iFrame。该iFrame在每次导航时都会改变自身。因此,我需要访问iFrame元素,这些元素的值出现在我的WebBrowser上。iFrame是从GoogleRecaptchaAPI加载的。以下是iFrame的外观:

<iframe frameborder="0" height="300" src="https://www.google.com/recaptcha/api/noscript?k=aKeyIsWrittenHere" width="500"></iframe>
感谢您的帮助


谢谢。

在文档完成后的某个时间尝试检查。@死锁您找到解决方案了吗?在文档完成后的某个时间尝试检查。@死锁您找到解决方案了吗?
webBrowser1.Document.Window.Frames.Count //returns 0 (I am checking it in DocumentCompleted)