0
我需要使用waitForAttribute()
- 但我在獲取所需屬性時遇到問題,因此需要使用PHP查找storeAttribute()
的示例用法。如何在Selenium RC中使用storeAttribute
樣品DOM
<div class="sidebar">
<a class="add"></a>
</div>
我想要得到的類<a>
// $foo is null
$foo = $this->storeAttribute('[email protected]');
// error: Element css=div.sidebar["class" not found
$foo = $this->storeAttribute('css=div.sidebar["class"]');
我目前使用CSS選擇
,但不介意使用XPath。