verifyText to be able to verify dynamicaly created content ----------------------------------------------------------
Key: WT-508 URL: http://webtest-community.canoo.com/jira/browse/WT-508 Project: WebTest Type: New Feature Reporter: Michal Sokolowski verifyText is only allowing to test text that have been returned from the server but not by javaScript/Ajax. It would be very useful if it was possible to test text on the page that was altered by client script without need of using XPath. Example scenario: Page with dropdown box that will alter div container when selected value changes. Example test: <project default="test"> <target name="test"> <webtest name="Check if List Exist"> <config> <header name="User-Agent" value="Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12" /> <option name="ThrowExceptionOnScriptError" value="false" /> </config> <invoke url="dropdown.aspx" /> <setSelectField name="ctl00$cphAdmin$ddlIntakes" text="Test Intake 1" /> <-- Here ajax reload occurs <sleep description="it is typically wise to include a sleep" seconds="5" /> <verifyText description="Verify that text is contained in the page" text="TestGL " /> </webtest> </target> </project> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://webtest-community.canoo.com/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira _______________________________________________ WebTest mailing list WebTest@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest