积极答复者
如何获得内置Chorme浏览器的程序的DOM

问题
答案
-
如果你愿意的话,可以通过:
1)WebRequest+WebResponse两个类的结合获取完整的Html代码。
2)或者直接通过WebBrowser类,设置Url之后处理DocumentCompleted事件,获取DOM。
If you think one reply solves your problem, please mark it as An Answer, if you think someone's reply helps you, please mark it as a Proposed Answer
Help by clicking:
Click here to donate your rice to the poor
Click to Donate
Click to feed Dogs & Cats
Found any spamming-senders? Please report at: Spam Report- 已标记为答案 东海马 2013年9月30日 2:50
-
你要获得Chrome的DOM句柄,应该需要调用Chrome的API才可以办到,首先应该先获得打开的Chrome窗口句柄,详细内容参考:http://developer.chrome.com/extensions/windows.html
If my post is helpful,please help to vote as helpful, if my post solve your question, please help to make it as answer. My sample
- 已标记为答案 东海马 2013年9月30日 2:50
-
如果想用微软的程序来操作谷歌的浏览器的话,我想最好的办法还是自己去查看谷歌的api,请参考谷歌Chrome开发说明:
http://dev.chromium.org/developers
http://dev.chromium.org/developers/how-tos/build-instructions-windows
另外请把你自己之前操作IE的代码贴出来供大家参考,看看能不能发现问题所在,或者说能不能找到改进的地方。
Caillen
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.- 已标记为答案 东海马 2013年9月30日 2:50
全部回复
-
如果你愿意的话,可以通过:
1)WebRequest+WebResponse两个类的结合获取完整的Html代码。
2)或者直接通过WebBrowser类,设置Url之后处理DocumentCompleted事件,获取DOM。
If you think one reply solves your problem, please mark it as An Answer, if you think someone's reply helps you, please mark it as a Proposed Answer
Help by clicking:
Click here to donate your rice to the poor
Click to Donate
Click to feed Dogs & Cats
Found any spamming-senders? Please report at: Spam Report- 已标记为答案 东海马 2013年9月30日 2:50
-
你要获得Chrome的DOM句柄,应该需要调用Chrome的API才可以办到,首先应该先获得打开的Chrome窗口句柄,详细内容参考:http://developer.chrome.com/extensions/windows.html
If my post is helpful,please help to vote as helpful, if my post solve your question, please help to make it as answer. My sample
- 已标记为答案 东海马 2013年9月30日 2:50
-
如果想用微软的程序来操作谷歌的浏览器的话,我想最好的办法还是自己去查看谷歌的api,请参考谷歌Chrome开发说明:
http://dev.chromium.org/developers
http://dev.chromium.org/developers/how-tos/build-instructions-windows
另外请把你自己之前操作IE的代码贴出来供大家参考,看看能不能发现问题所在,或者说能不能找到改进的地方。
Caillen
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.- 已标记为答案 东海马 2013年9月30日 2:50