Below is the part of  test script code, Let me explain you clearly what was the issue here.. When I click Update after changing some quatity in one of the the text fields in the page, it does updates but it opens up another page but origianl page stays as it was earliar.. When watir testing tool try to click Next button after Update button, it will try clicking in the origianl page and it does't work.. When I  do update manually going to page, it updates the same page, it does't open up new page. To make it long story short.. how to avoid opening new browser  after clicking update button?, It should suppose to do update in the same browser and should not open up a new browser
 
 startClicker("OK" , 1)
 $ie.text_field(:index,"3").set("5")
 $ie.button(:value, "Update").click
 $ie.button(:value, "Next").click
 
Prakash
 
On 3/30/06, Cain, Mark <[EMAIL PROTECTED]> wrote:

If you could post the code from your script and the HTML page your testing that would be helpful.

 

--Mark

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Prakash Sattu
Sent: Thursday, March 30, 2006 10:09 AM
To: wtr-general@rubyforge.org
Subject: [Wtr-general] Update opens up another window with updated page butcontrol stays in the orginal window and not able to move tonext page in the flow from orginal window

 

I have been using Watir from past 1 month, it worked pretty good in automating of our application.Now , there is a problem testing in one of the page in our application. The page that I am testing uses AJAX methodalogy . I am trying to change quantity from x to y and clicking update button on that page, when it clicks update, it opens up another page with update quantiy that should not happens it should suppose stay in the same page( that is the way manually works). The problem here is, even though I get corrected update new page but control stays in the orgianl page and not able to move to the next page. Any help would be helpful regarding this.

Thanks & Regards,

Prakash R Sattu

 


_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to