Created
March 12, 2018 00:31
-
-
Save asialgearoid/f46c1725e1ef88d6493ae3d660e46774 to your computer and use it in GitHub Desktop.
Testing Cordova Apps with Appium (index.html)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width"> | |
<link rel="stylesheet" type="text/css" href="css/index.css"> | |
<title>Appium Test</title> | |
</head> | |
<script> | |
document.addEventListener('DOMContentLoaded', function() { | |
document.querySelector('#showHideButton').addEventListener('click', function() { | |
document.querySelector('#textBox').classList.toggle('hidden'); | |
}); | |
}); | |
</script> | |
<style type="text/css"> | |
.hidden { display: none; } | |
</style> | |
<body> | |
<div class="app"> | |
<button id="showHideButton">Show / hide box</button> | |
<p id="textBox">Hello! This is an Appium test.</p> | |
</div> | |
<script type="text/javascript" src="cordova.js"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment