1
0
-1

Hello, 


We are working on our first test case with Selenium for a Maestro form. We have 2 repeating blocks that can have 0-6 entries. I am wondering if anyone has implemented a test case with a repeating block, and if so, could they provide an example? I am also wondering if there is a best practice doc for working with repeating blocks in selenium? 


Thanks,

Charity

    CommentAdd your comment...

    2 answers

    1.  
      2
      1
      0

      You could target the field by the field id. Field is normally wrapped with a container and the container will have a class "id-<fieldID>".

      If this field is inside a repeat, then the field container would have a class "id-<fieldID>-i<seq>", where seq starts from 0.

        CommentAdd your comment...
      1.  
        1
        0
        -1

        Hi Charity,

        I don't have an existing test for this,  but more than happy to help.

        Is it possible to share the form that you are trying to automate?

        Also, Would like to know what framework are you using for automation?

        Thanks

        Siju

          CommentAdd your comment...