Skip to content

Selenium::Firefox ... You need to specify a browser or driver #488

@davewood

Description

@davewood

things keep changing and breaking my working setup and im trying to figure out the most recent change.

this is my selenium service, running in a container (image: selenium/standalone-firefox)

epplication-selenium | Selenium Grid Standalone configuration:
epplication-selenium | [network]
epplication-selenium | relax-checks = true
epplication-selenium |
epplication-selenium | [node]
epplication-selenium | session-timeout = "300"
epplication-selenium | override-max-sessions = false
epplication-selenium | detect-drivers = false
epplication-selenium | drain-after-session-count = 0
epplication-selenium | max-sessions = 1
epplication-selenium |
epplication-selenium | [[node.driver-configuration]]
epplication-selenium | display-name = "firefox"
epplication-selenium | stereotype = '{"browserName": "firefox", "browserVersion": "117.0", "platformName": "Linux"}'
epplication-selenium | max-sessions = 1
epplication-selenium |
epplication-selenium | Starting Selenium Grid Standalone...

...

epplication-selenium | 08:43:06.495 INFO [NodeOptions.report] - Adding firefox for {"browserName": "firefox","browserVersion": "117.0","platformName": "linux","se:noVncPort": 7900,"se:vncEnabled": true} 1 times

...

epplication-selenium | 08:43:06.873 INFO [Standalone.execute] - Started Selenium Standalone 4.12.1 (revision 8e34639b11): http://172.19.0.3:4444

when i try to connect

      my $driver = Selenium::Firefox->new(
          remote_server_addr => $conf{host},
          port => $conf{port},
      );

i see this error

epplication-selenium | 09:07:39.949 INFO [LocalDistributor.newSession] - Session request received by the Distributor:
epplication-selenium |  [Capabilities {acceptInsecureCerts: true}]
epplication-selenium | 09:07:40.077 WARN [SeleniumManager.lambda$runCommand$1] - You need to specify a browser or driver
epplication-selenium | 09:07:40.081 WARN [DriverServiceSessionFactory.apply] - Error while creating session with the driver service. Unable to obtain: Capabilities {acceptInsecureCerts: true}, error Command failed with code: 65, executed: [--browser, , --output, json]
epplication-selenium | You need to specify a browser or driver

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions