[webtest][JIRA] Created: (WT-586) jquery apend is not working from included javascript file

"janardhan (JIRA)" <[email protected]>
Newsgroups gmane.comp.web.canoo.webtest
Message-ID <30627636.1359565575716.JavaMail.nobody@dell1>
jquery apend is not working from included javascript file
---------------------------------------------------------

         Key: WT-586
         URL: http://webtest-community.canoo.com/jira/browse/WT-586
     Project: WebTest
        Type: Bug

    Versions: 3.0    
 Environment: canoo webtest version  R_1822 
    Reporter: janardhan


I am surprised the behavior of  the canoo webtest jquery  append(""). I am having page which is having ready function which updates div with append(""). This is working fine with both the htmlunit(2.10) and canoo  webtest(R_1822). If am moved the ready funtion to the .js file, it was not working in the canoo webtestt(R_1822) and working with the  htmlunit(2.10).

As I know if it is working with canoo means it should work with canoo also. Please suggest me what am missing.I struck here from more than 4 days, please help me....below  


below code is working in both htmlunit and in canoo webtest

page.html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script type="text/javascript" src="jquery-1.7.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
    alert("ready called");
    $("#page").append("test123");
});
</script >
</head>
<body>
<div id="page">
</div>
</body>
</html>

below code is working with html unit and not working with canoo webtest

page.html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script type="text/javascript" src="jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="test.js"></script>
</head>
<body>
<div id="page">
</div>
</body>
</html>

test.js
$(document).ready(function() {
    alert("ready called");
    $("#page").append("test123");
});

(canoo webtest script xml)
   <invoke url="file:///H:/java/sample/page.html" description="testing sample"/>
              <verifyText text="test123" />
 

-- 
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.