我想从“a href”属性获取链接
<a href="http://fgkzc.downloader.info/download.PHP?id=bc56585624bbaf29ebdd65d0248cb620" rel="nofollow" class="dl_link 1" style="">Download</a>
我在做什么:
ReadOnlyCollection<IWebElement> lists1 = driver.FindElements(By.ClassName("dl_link")); string s = lists1[0].GetAttribute("a href");