>>"Watir revision 934"

Is the latest Watir from trunk

.

>>“$ie.selectBox( :name, "myProjectID2").select("MARK-TEST")  # I took out the Span tag - it seems unnecessary”

Sometimes it can’t find the object without the span tag, and sometime it does.

 

>>“$ie.radio( :id, '72').set     # I don't know why you had an extra ", 1" in there.”

I think that was some legacy radio button code, you use to have to put a 1 to indicate you wanted it selected.

 

The value in the select box >>“$ie.selectBox( :name, "myProjectID2").select("MARK-TEST") << still gets reset.  I have never had this happen before.  I have written many, many test cases for applications that have similar behavior and have never had a selected value get reset, but this one is.  When I run the test case manually the value persists, but when I run it via my Watir script it gets reset.  Don’t know what the problem is I was hoping someone else had seen this before give me a fix/workaround. 

 

FYI I get the same behavior in 1.4.1 too.

 

--Mark

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Carvalho
Sent: Tuesday, March 14, 2006 11:25 AM
To: [email protected]
Subject: Re: [Wtr-general] Watir is resetting one of my selectBox selections.

 

Hi Mark, I don't know what "Watir revision 934" is.  I'm using 1.4.1 and I don't _seem_ to have a problem with the script.

I did modify some of the lines, but perhaps the problem has something to do with the actual Search feature?  Here are the lines I modified:

      $ie.selectBox( :name, "myProjectID2").select("MARK-TEST")  # I took out the Span tag - it seems unnecessary

      $ie.radio( :id, '72').set     # I don't know why you had an extra ", 1" in there.

Instead of 'clicking' the buttons, I just flashed them.  The first time I ran the script, it opened up a million windows all trying to connect to some server.  If the page refresh after clicking the [Search] button is resetting a drop-down value, I can't imagine how Watir is doing that.

I don't know if this helps, but it did _seem_ to work for me.  Would it help if you tried inserting a 'sleep' delay after performing the Search?

Paul.

On 14/03/06, Cain, Mark <[EMAIL PROTECTED]> wrote:

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:

[snip]

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to