class Wco::ScrapeTest

def initialize

def initialize
  visit 'https://www.wsj.com/'
  # all('h6').each_with_index do |h6, idx|
  (1...2).each do |idx|
    headline = find(:xpath, "(//h3)[#{idx}]").text
    # puts "+++ Title: #{title}"
    Wco::Headline.create!({
      name: headline,
      site: wsj,
      date: Time.now.to_date,
    })
    print '.'
  end
  # byebug
end