Auto checking HTML output?
bburd (1)

I want to auto-check what appears on the HTML page after the student has clicked a button. For example, if the JavaScript function contains the following code:

document.body.innerHTML += "Hello"

I want to check to make sure that they've added "Hello" to the HTML page. Is there a way to do that with auto-marking?

You are viewing a single comment. View All
rm2fpt (0)

I have a similar question and I'm waiting someone help. I want also to use window.prompt() and the I/O matching cases to automaticallly grading.