That's not really what I need. 

I'd like every test within the spec to be run within the same browser 
instance. Therefore I don't want it to open and close the browser before an 
after each example. So I need taza to open up a browser at the beginning of 
the spec and then have the examples attach to that browser instance before 
running. 

 So something like this 

  before(:all) do
    @insight  = Insight.new
  end

   let(:i) { @insight.attach }

  it "should login", :poc do
    i.login_flow(:userid => $support, :password => $password)
  end

  it "should flash the page", :poc do
    i.manage.printer_friendly.flash
  end

 I was thinking of defining attach as a method in the insight class, like 
this: 
       def attach
          browser = Taza::Browser(:attach => "p1")
        end

  based on this definition in the browser class. 
    def self.watir_ie(params)
      require 'watir'
      if params[:attach]
        browser = Watir::IE.find(:title, //)
      end
      browser || Watir::IE.new
    end



On Friday, June 8, 2012 3:35:55 PM UTC-7, hillary wrote:
>
> Is there a setting to keep the browser session open when running specs 
> through taza? So start the browser and then have the examples each attach 
> to the already running browser session?
>
>

-- 
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

Reply via email to