1
0
-1

Team,

If anyone has insights for how to effectively use Selenium with Avoka Composer published forms in TM, that would be great information to share.

 

Thanks,

Kendall

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Hi Kendall,

      Here are a couple of tips I've found in my own development of Selenium scripts with Composer forms.

      How To Replace Control IDs with XPath for Selenium Testing

      When building Selenium test scripts, instead of relying on field IDs of controls like buttons which can change on publication, use these XPath statements:


      XPath for a Radio Button
      //div[text() = 'Radio Button Label Text']/../following-sibling::div//input[@data-onvalue='RadioButtonValue']

       

      XPath for a Wizard Continue button
      //button[span = 'Continue']

       

      XPath for the Apply button
      //button[span = 'Apply']

       

      How to sign a form using Selenium

      The following Selenium test script simulates mouse moves on the signature widget. 

       

      mouseDown css=canvas
      mouseMove css=canvas
      mouseUp css=canvas
        CommentAdd your comment...