Skip to content

Instantly share code, notes, and snippets.

@Robdel12
Created February 13, 2015 18:30
Show Gist options
  • Save Robdel12/98ea0b9991cc6bae4e38 to your computer and use it in GitHub Desktop.
Save Robdel12/98ea0b9991cc6bae4e38 to your computer and use it in GitHub Desktop.
def dk_select(value, options={})
from = options.delete(:from)
page.execute_script("$('select').css({display: 'block', visibility: 'visible'})")
select("#{value}", from: "#{from}")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment