You could create a browser session in `features/support/env.rb` and assign 
it to an instance variable
and then use that session in your feature files. Its basically a global 
hook, but you'll need to end that session properly with an `at_exit` method.

More info here: https://github.com/cucumber/cucumber/wiki/Hooks#global-hooks

Personally I don't recommend running your features that way.  Can I ask why 
you need to do it this way?

On Wednesday, December 6, 2017 at 8:32:35 AM UTC-6, 江南 wrote:
>
> Hi,
>
> I am using Watir Ruby + Cucumber for my testing. 
>
> Can you tell me how to run two feature files in one web session?
>
> Thanks
>

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to