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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -