I am facing issues while handling authentication pop-up when my machine
is locked.
I have scheduled my ruby script to run at a particular time. The script
does not get executed when it encounters an authentication pop-up.
Authentication pop-up stays idle.
Below is the peace of code which I am using. The same code works fine
when the machine is not locked.

require 'watir'
require 'ci/reporter/rake/test_unit_loader.rb'
require 'test/unit'
require 'watir/close_all'
require 'test/unit/ui/console/testrunner'
require 'test/unit/ui/reporter'
require 'fileutils'
include FileUtils::Verbose
require 'stringio'
require 'watir/WindowHelper'

class TestSuite_authentication < Test::Unit::TestCase
  def setup
    @url = 'stage.remotedonationtest.networkforgood.org'
    @login_title = "Connect to #{@url}"

     @username = 'abc\test'
    @password = 'testpassword'

  end

  def test_logon
    a = Thread.new {
      system("ruby handle_logon.rb \"#{@login_title}\" \"#{@username}\"
\"#{@password}\"")
    }

   $ie = Watir::IE.start(@url)
  #~ $ie.goto('stage.remotedonationtest.networkforgood.org')

    a.join


    # continue code here...

  end

end
-- 
Posted via http://www.ruby-forum.com/.