Skip to content

Instantly share code, notes, and snippets.

@thisduck
Created September 28, 2018 15:25
Show Gist options
  • Save thisduck/5c41de00119035f65484c396fe8e7dfc to your computer and use it in GitHub Desktop.
Save thisduck/5c41de00119035f65484c396fe8e7dfc to your computer and use it in GitHub Desktop.
# assert that the signature field is empty, with no image
page.should_not have_css(".signature_input_field img")
page.should_not have_css(".popover")
# click the "Click here to sign" link button
page.execute_script("$('##{signature_field_id} a').click()");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment