HTML 代码:
<a ng-repeat="group in groups()" ng-href="phones/Apple/iPhone%203G%20or%203GS/" class="ng-scope" href="phones/Apple/iPhone%203G%20or%203GS/">
<div class="card-box device-box">
<span class="card-text ng-binding">iPhone 3G or 3GS</span>
<i class="fa fa-chevron-right visible-xs"></i>
<div class="clearfix"></div>
</div>
</a>
C#代码:
driver.FindElement(By.LinkText("IPHONE 3G 16GB")).Click();