On 22/05/07, Koteswara Annavarapu <[EMAIL PROTECTED]> wrote:
> but the ie.goto is not stepping further until you clear the certificate.


You need to use threads. I will put it on the faqs.

<code>
class Browser
  def initialize
    $ie = Watir::IE.new
  end

  def goto(url)
    @url = url
    t = Thread.new(){
    puts "winclicker thread started"
    wc = WinClicker.new
    wc.clearSecurityAlertBox
    }
    m = Thread.new($ie) {
    $ie.goto(@url)
    }
    m.join
    t.join

    $ie.bring_to_front
    $ie.maximize
  end

  def close
    $ie.close
  end
end
</code>
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to