jquery apend is not working from included javascript file
janardhan ch <[email protected]>
| Newsgroups | gmane.comp.web.canoo.webtest |
|---|---|
| Message-ID | <CAA5AdvLm98zDkj8WdCFbknqPaCTZE1Eiq+kpO+0Fa0i=JF1pWw@mail.gmail.com> |
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" />