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

Provide a way to customise the port Selenium starts on #7

Open
umaar opened this issue Jul 31, 2013 · 6 comments
Open

Provide a way to customise the port Selenium starts on #7

umaar opened this issue Jul 31, 2013 · 6 comments

Comments

@umaar
Copy link

umaar commented Jul 31, 2013

It would be good if we could pass some custom configuration to this.

@daaku
Copy link
Owner

daaku commented Aug 2, 2013

Why not use the port it returns instead?

@umaar
Copy link
Author

umaar commented Aug 2, 2013

It's a slight limitation as there are times when customising the port can be useful, especially when running in a continuous integration environment.

@daaku
Copy link
Owner

daaku commented Aug 2, 2013

In fact I wrote this for use this with Travis CI where a fixed port causes issues since it could be in use by another process. Does your CI environment run multiple builds in parallel?

@umaar
Copy link
Author

umaar commented Aug 2, 2013

The CI environment I'm looking into will eventually run multiple builds in parallel, but the intention of this issue was just to provide a way for users who wish to customise the port Selenium gets started on to do so as there are use cases where this makes sense.

@stdavis
Copy link

stdavis commented Oct 29, 2013

I would love this as well. I'm unable to get the port number after starting it so I need to be able to specify it at the beginning.

@mbrevda
Copy link

mbrevda commented Apr 27, 2014

@stdavis while hardly a perfect solution, I'm getting the port number by passing it to ENV:

        seleniumRunner(function(err, selenium) {
            if (err) throw err

            process.env.SELENIUM_PORT = selenium.port
            //do something 
        })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants