C#如何在webbrowser1的开放网页中找到href链接并单击它? [英] C# how can find href link in open webpage in webbrowser1 and click it?
本文介绍了C#如何在webbrowser1的开放网页中找到href链接并单击它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好我的朋友们!
如何在WebBrowser1的开放网页中找到href链接并点击它?
我是什么尝试过:
我尝试使用get elementID和TagName坚果不起作用...
Hello my friends!
How can find href link in open webpage in WebBrowser1 and click it?
What I have tried:
I try with get elementID and TagName nut not worked...
推荐答案
你必须解析html,找到你感兴趣的链接,然后浏览链接。
你可能没有使用正确的元素ID和/或标记名称,或者您没有正确解析html。由于我们所要做的只是坚果不行,我们只能在咨询我们的水晶球后猜测。
You have to parse the html, find the link you're interested in, and then browse to the link.
You're probably not using the correct element ID an/d or tag name, or you're not parsing the html correctly. Since all we have to go on is "nut not worked", we can only guess after consulting our crystal balls.
这篇关于C#如何在webbrowser1的开放网页中找到href链接并单击它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文