Creating dynamic forms in Silk Performer
I am testing a web application that is having dynamic forms with text fields - that is, first form can have 2 text fields, second 6, third 6 and so on. (Always in even count, pair)
i have to to supply a value in the first field only but the recorded script will have different count for text fields and when replayed, the count of text boxes will change. Is there a way to count the text boxes on response (form) beforehand and respond with the correct form? Alternatively if I record script for minimum text boxes (2), is it possible to create the response form dynamically to add more text fields with same HTML value? In both of the options, I need to know the count of text boxes on form. Is there any other approach?
my script works fine for the same count of text boxes and as soon as the count of text boxes change, it fails with error as it is not able to find that form.
RE: Creating dynamic forms in Silk Performer
Check help for WebForm* functions e.g. WebFormValuePairInsert Function
SilkPerformer has good parsing functionality, however it may be time consuming to recreate App logic to dynamically build a form.
May be worth trying an AJAX project type which drives the browser.