Skip to content

Instantly share code, notes, and snippets.

@asialgearoid
Created March 12, 2018 00:31
Show Gist options
  • Save asialgearoid/f46c1725e1ef88d6493ae3d660e46774 to your computer and use it in GitHub Desktop.
Save asialgearoid/f46c1725e1ef88d6493ae3d660e46774 to your computer and use it in GitHub Desktop.
Testing Cordova Apps with Appium (index.html)
<!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