giorgiosironi / phpunit-selenium

Selenium RC integration for PHPUnit
http://www.phpunit.de/
Other
602 stars 271 forks source link

Can't connect to a Selenium Grid from tests #369

Closed djjohnjosephuk closed 8 years ago

djjohnjosephuk commented 8 years ago

How is the correct way to connect to a selenium grid hub?

my test code:

public static $browsers = array(
    array(
        'browserName'       => 'firefox',
        'host'              => 'my-jenkins-ip-or-host',
        'port'                      => 4440
    )
);

the hub and nodes are all up and connected to each other, confirmed at my-jenkins:4440/grid/console. Running that test above on any of the nodes I have set up comes back with a 'no active session' message.

Am I missing something really simple? Or does phpunit-selenium not support connecting to grids, and will only work off local selenium startups?

djjohnjosephuk commented 8 years ago

Closing - I can now connect to the hub via the Jenkins Selenium plugin, still can't connect to a standalone built hub but that appears to be more of a setup issue outside of phpunit-selenium