nruth / show_me_the_cookies

Cookie manipulation for Capybara (view, delete, …)
161 stars 44 forks source link

no method "set cookie" when using create_cookie() (webkit) #40

Closed ChrisCPO closed 6 years ago

ChrisCPO commented 8 years ago
 NoMethodError:
   undefined method `set_cookie' for #<Capybara::Webkit::Driver:0x007f2387ae8678>

code in question

        user = create(:user)
        login_as user
        create_plans_set(:plans_table)
        plan = Plan.find_by(name: "Classic One Year")
        create_cookie(:subscription, plan_id: plan.id)
        visit new_subscription_path

Am I doing something wrong here? what version of capydoes this gem require? using capybara 2.4.4

nruth commented 6 years ago

Sorry for not looking at this. I'm closing it as stale. The tests pass currently so I'm going to assume it was an old capybara-webkit version that didn't implement that method.