How to use storeAttribute in Selenium RC -
i need use waitforattribute()
- having issues getting attribute need, looking example usage of storeattribute()
using php.
sample dom
<div class="sidebar"> <a class="add"></a> </div>
i want class of <a>
// $foo null $foo = $this->storeattribute('css=div.sidebar@class'); // error: element css=div.sidebar["class" not found $foo = $this->storeattribute('css=div.sidebar["class"]');
i'm using css selectors, don't mind using xpath.
i changed strategy - else running issues moved in order waitforattribute()
work:
$this->waitforcondition("selenium.browserbot.getcurrentwindow().$('div.sidebar a').hasclass('remove')");
Comments
Post a Comment