Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. # Currently used action for the pikaday library (any feedback is welcome)
  2.  
  3. def pikaday(label, with: nil)
  4. el = find_field(label)[:id]
  5. execute_script("document.querySelector('##{el}').value = '#{with}';")
  6. assert_no_selector '.pika-lendar'
  7. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement