Code Search for Developers
 
 
  

actions.html from Jameleon at Krugle


Show actions.html syntax highlighted

<html>
<head>
    <title>actions page</title>
    <script language="JavaScript">
    function setFormFields(){
        var value = document.forms.formfields.username.value;
        document.forms.emptyform.new_username.value = value;
        value = document.forms.formfields.password.value;
        document.forms.emptyform.new_password.value = value;
    }

    function setLinkField(){
        document.forms.emptyform.link_value.value = 'link was clicked';
    }

    function spawnAlert(){
        var msg = document.getElementById('alerttext').value;
        alert(msg);
    }
    </script>
</head>
<body>

<form id="formfields">
    username: <input name="username"><br>
    password: <input name="password" type="password"><br>
    <input type="button" value="Go" onclick="setFormFields();">
</form>
<a href="javascript:setLinkField()">link test</a>
<form id="emptyform">
    <input name="new_username">
    <input name="new_password" type="password">
    <input name="link_value">
</form>
<form>
<input id="alerttext">
<input id="spawnalert" onclick="javascript:spawnAlert();">
</form>
</body>
</html>




See more files for this project here

Jameleon

Jameleon is a data-driven automated testing tool that is easily extensible via plug-ins. Features of applications are automated in Java and tied together independently in XML, creating self-documenting automated test cases.

Project homepage: http://sourceforge.net/projects/jameleon
Programming language(s): Java,XML
License: other

  actions.html
  basic.html
  forms.html
  onLoad.html
  sessionTag.html
  tables.html