【发布时间】:2013-12-09 12:07:08
【问题描述】:
我正在使用 driver.findelement by.classname 方法读取 Firefox 浏览器上的元素,但我收到“不支持复合类名。考虑搜索一个类名并过滤结果。”异常
这是我的代码
driver.FindElement(By.ClassName("bighead crb")).Text.Trim().ToString()
//and here is how the html of browser looks like
<form action="#" id="aspnetForm" onsubmit="return false;">
<section id="lx-home" style="margin-bottom:50px;">
<div class="bigbanner">
<div class="splash mc">
<div class="bighead crb">LEAD DELIVERY MADE EASY</div>
</div>
</div>
</section>
</form>
【问题讨论】:
标签: c# selenium webdriver selenium-webdriver