jasmine-headless-webkit/spec/jasmine/click_button/click_button.js

6 lines
96 B
JavaScript

function yes() {
$('body').append('<form><button /><form>')
$('button').trigger('click')
}