[Wtr-general] Watir is resetting one of my selectBox selections.

Cain, Mark Mark_Cain at rl.gov
Tue Mar 14 13:38:24 EST 2006


I am running into issue where during a test.  I select a value from
select box (1) and based on that value a span tag is shown with another
select box (2) and I make a selection from that select box (2).  A
little further down in my script I do a search for a checklist and when
the page refreshed the selection made from the select box (2), within
the span tag, is being reset.  Does anyone know why this is happening?
This does not happen when I run the application manually.

 

Ruby version 1.8.4_16

Watir revision  934

 

Here is my script:

 

$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..') if $0 ==
__FILE__

require 'C:\watir_bonus\unitTests\setup'

 

class TC_ARM_Start < Test::Unit::TestCase

    include Watir

    

    def gotoPopUpPage()

        $ie.goto("c:\\arm\\main.html")

    end

 

    def test_main

      $d = Time.now.strftime("%m/%d/%Y") 

      gotoPopUpPage()

      $ie.selectBox( :name, "Program").select("LMIT")

      $ie.span(:id, "TR2").selectBox( :name,
"myProjectID2").select("MARK-TEST")  #this one is being reset

      $ie.selectBox( :name, "DocumentMethod").select("by Checklist
Number")

      $ie.textField( :name, "SearchString").set("TST")

      $ie.button("Search").click  #when this happens the second
selectbox is reset

      

      $ie.radio( :id, '72', 1).set

      

      $ie.button(/Start/i).click

    end

    

end

 

The web page is attached

 

Thanks in advance,

____________________
Mark L. Cain
LMIT - E*STARS(r) ~ Lead Test Engineer 
1981 Snyder, MSIN: G3-62, Richland, WA 99354
Mark_Cain at RL.gov
509.376.5458
"640 Kilobytes of computer memory ought to be enough for anybody." -
Bill Gates, 1981 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060314/3889e698/attachment.html 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060314/3889e698/attachment-0001.html 


More information about the Wtr-general mailing list