Skip to content

Commit

Permalink
Testing fix marco-c#68
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuja committed Mar 23, 2018
1 parent c3af4cd commit 75cee59
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion collect.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def do_something(driver, elem_properties=None):

def screenshot(driver, file_path):
wait_loaded(driver)

file_path = "file:///home/anuja/tj/autowebcompat/test.html"
driver.get_screenshot_as_file(file_path)
image = Image.open(file_path)
image.save(file_path)
Expand Down
15 changes: 15 additions & 0 deletions test.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPEhtml>
<html>
<head>
<title>Test page</title
</head>

<body>
<input type = 'submit' onclick = "test()" />
<p id="demo"></p>
<script>
function test() {
document.getElementById("demo").innerHTML = "Submit clicked";}
</script>
</body>
</html>

0 comments on commit 75cee59

Please sign in to comment.