Cucumber / Capybara — how to get the host and port of the current execution

0
0

I need to download a csv file from my app using Open::URI and to do that I need to give it a fully qualified URI. So whats the best way to get the HOST and more importantly PORT in my cucumber script?

Note I am using Capybara and Selenium

  • You must to post comments
0
0

You can set port that will be used to spawn an application server

Capybara.server_port = 31337
  • You must to post comments
Showing 1 result
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Website