Skip to content

Instantly share code, notes, and snippets.

@twalpole
Created May 6, 2019 23:53
Show Gist options
  • Save twalpole/2fac21cf0a10200331f6a594eae08261 to your computer and use it in GitHub Desktop.
Save twalpole/2fac21cf0a10200331f6a594eae08261 to your computer and use it in GitHub Desktop.
require 'bundler/inline'
gemfile do
source 'https://rubygems.org'
gem 'selenium-webdriver'
gem 'capybara'
end
require "capybara/dsl"
sess = Capybara::Session.new(:selenium_chrome)
sess.visit('https://react-autosuggest.js.org')
input = sess.find('#basic-example input')
input.click.send_keys('c')
sess.assert_selector('li[role="option"]')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment