javascript - Drop down list of products has a different ID each time page is loaded -


i using selenium ide repetitive form filling tasks web app. part of process involves selecting group of products , choosing of base products group. example: want see painting , wallpaper products under diy , hardware section. in selenium correctly identifies , selects diy , hardware section. generates new set of drop down lists appear then, should able choose 'paint' , 'wallpaper'. selenium gives error here:

[error] element id=selectgroup_rt_paint_ca9368dd-ddc0-4ade-a17f-f0e5a56e5e23_1 not found 

the problem letter , number sequence after rt_paint appears unique value each time drop down lists generated, though contain same values. there way around this?

this html of selenium task:

<tr>     <td>select</td>     <td>id=selectgroup_rt_paint_ca9368dd-ddc0-4ade-a17f-f0e5a56e5e23_1</td>     <td>label=dulux</td> </tr> 

i'm new selenium don't know try, hence no code example. there w way change id like... rather id=

thanks in advance everyone

try partial id.

id^='selectgroup_rt_paint_' 

see link more examples: http://sauceio.com/index.php/2010/01/selenium-totw-css-selectors-in-selenium-demystified/


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -