开发者

How to get all element tags <a> from current page

开发者 https://www.devze.com 2023-01-10 09:59 出处:网络
I need to get all element tagsfrom current page into a list by using WatiN codes. I have used t开发者_如何学JAVAhis:

I need to get all element tags from current page into a list by using WatiN codes.

I have used t开发者_如何学JAVAhis:

var listItmes=ie.Links;  [not getting all links]

Please tell me the solution to this.


That should get you all the links on the current page. The one exception I've found is if you have a frame on the page (in which case you need to look for links in the frame).

0

精彩评论

暂无评论...
验证码 换一张
取 消