Get element with jquery and selenium IDE 1.0.8 -


i'm trying element jquery , selenium ide 1.0.8.

<td>storevalue</td> <td>$('#result').find('img').filter('[alt=&quot;nameofphoto&quot;]').eq(0)</td> <td></td> 

and in log get

[error] element $('#result').find('img').filter('[alt="nameofphoto"]').eq(0) not found  

when put command in firebug element :/

why doesn't work ?

edit: alternatively example can give me code how id of first object whith java tag @ main page of stackoverflow.

tag:

<a rel="tag" title="show questions tagged 'java'" class="post-tag" href="/questions/tagged/java">java</a> 

and example result :

<div id="question-summary-4303985" class="question-summary narrow"> 

is:

question-summary-4303985 

based on other posts tried following , worked.

add code below user-extensions.js:

function jquery (selector) {     return selenium.browserbot.getuserwindow().jquery(selector); } 

you can access jquery function using keyword jquery instead of $. make sure page testing referencing jquery js file.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

c# - How to execute a particular part of code asynchronously in a class -

c# - Asterisk click to call -