i have this web source

<div id="Family">
   <div class="Male">
      <div id="m-1234" class="boy">
      <div id="m-5678" class="boy">
      <div id="m-9012" class="boy">

I want to save id starts with 'm-' in array and want to click on these elements in loop using selenium IDE. Much appreciated.


Try this using while to address 'm-' part

enter image description here

should work :)

| improve this answer | |

I haven't address the m part but the following will store the id's and may help:

storeAttribute //div[@id='Family']/div[@class='Male']/div[@class='boy'][1]@id var1

As in:

enter image description here

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.