Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure :chrome but firefox browser launch(axe-core-capybara) #235

Closed
naoya7076 opened this issue Jun 15, 2022 · 2 comments
Closed

Configure :chrome but firefox browser launch(axe-core-capybara) #235

naoya7076 opened this issue Jun 15, 2022 · 2 comments
Assignees
Labels
in sprint Ticket is in current sprint PRIORITY: moderate Moderate priority item; should be scheduled within a few weeks QA SIGNOFF: passed This ticket has passed QA

Comments

@naoya7076
Copy link

naoya7076 commented Jun 15, 2022

I set chrome option as AxeCapybara.configure.
Then, I check driver variable.(check below code)
Options browser is :firefox, although @page.app=:chrome.

image

And axe says "Unable to find Mozilla geckodriver"

Selenium::WebDriver::Error::WebDriverError: Unable to find Mozilla geckodriver. Please download the server from https://github.com/mozilla/geckodriver/releases and place it somewhere on your PATH. More info at https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/WebDriver What's the issue here.

image

Then, download firefox and execute @axe.page.visit "https://google.com" and firefox browser is launched.

The below is all the code

require 'pry'
require "rspec"
require 'axe-capybara'

describe "axe test" do
  it "is known to be inaccessible, should fail" do
    @axe = AxeCapybara.configure(:chrome) do
    end
    binding.pry
    expect(page).not_to nil
  end
end
@dequejenn dequejenn added PRIORITY: moderate Moderate priority item; should be scheduled within a few weeks in sprint Ticket is in current sprint labels Jan 29, 2024
@michael-siek
Copy link
Member

Hi @naoya7076 it looks like this has been fixed in 4.8.0. If this is still an issue please feel free to reopen this ticket or a new ticket.

Ref: #303

@padmavemulapati
Copy link

verified with the release-branch code base, an issue is not there. It's working with the configured browser.

for chrome config:

Screen.Recording.2024-02-12.at.9.11.45.AM.mov

For Firefox config:

Screen.Recording.2024-02-12.at.9.47.30.AM.mov

Environment:

Label Value
Product axe-core-gems/rspec-cucumber
Version release-2024-02-07_codebase
OS-Details _MAC- Intel Core i7 - 11.6.8 && Windows 11 _
BrowserDetails Chrome Version 121.0.6167.139 && Firefox 122.0.1

@padmavemulapati padmavemulapati added the QA SIGNOFF: passed This ticket has passed QA label Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in sprint Ticket is in current sprint PRIORITY: moderate Moderate priority item; should be scheduled within a few weeks QA SIGNOFF: passed This ticket has passed QA
Projects
None yet
Development

No branches or pull requests

4 participants