Open
Description
Describe the bug
I tried to use axe-core-rspec
in pair with capybara-playwright-driver
.
After reading the code, I could not figure out from which part method manage
should come and there are no visible traces if it ever was in WebDriverScriptAdapter::QuerySelectorAdapter
.
Any suggestions on how to fix this error?
To Reproduce
Gemfile
gem "axe-core-rspec"
gem "capybara", require: false
gem "capybara-playwright-driver", require: false
rspec test case
require "capybara"
require "capybara-playwright-driver"
require "playwright"
Capybara.register_driver(:playwright) do |app|
Capybara::Playwright::Driver.new(
app,
timeout: Capybara.default_max_wait_time,
browser_type: ENV.fetch("BROWSER", "chromium").to_sym, # :chromium (default) or :firefox, :webkit
headless: ENV["HEADFUL"].nil? || !ENV["CI"].nil?, # true for headless mode (default), false for headful mode.
playwright_cli_executable_path: "npx playwright"
)
end
Capybara.default_driver = Capybara.javascript_driver = :playwright
it "has no accessibility errors" do
expect(page).to be_axe_clean
end
Expected behavior
It runs the validations.
Actual behavior
Returns
NoMethodError:
undefined method `manage' for an instance of WebDriverScriptAdapter::QuerySelectorAdapter
Metadata
Metadata
Assignees
Labels
No labels