I am trying to test an application where one of the pages contains an iframe. I use followFrame and then set various text fields, radio buttons, and checkboxes. This seems to all work fine. The page is submitted in steps. There is a button on the main page whose onclick handler submits the iframe. The result of the iframe submission then invokes a submit on the form for the main page.

 

To get to the submit button after setting the iframe fields, I use <followFrame name=”_top” />. I set a select and then use <clickButton .. ./> on the appropriate button. All is fine; however what is submitted from the iframe is a series of input items that contain no content. In particular they do not contain the data that was set after the <followFrame … /> to the iframe.

 

I am assuming that I am doing something wrong but I haven’t a clue what. Can anybody shed any light? I am using R_1353.

 

In a similar vein, I have seen mention that the combination of webtest and htmlunit I am using supports ajax interaction. Are there any examples of how this is done?

 

Thanks

 

Richard Berens

Reply via email to