[wtr-general] Re: Script on select list item, clickon btn1 and Logoutfunction()

2009-10-08 Thread venkat
Hi Bill, The select element is not present as per the error message. So after troubleshooting what i understood is when i clicked on login button, the next page is opening up in a new window rather than opening in the same window, so my script is not verifying the elements in the newly opened

[wtr-general] Re: Script on select list item, clickon btn1 and Logoutfunction()

2009-10-08 Thread Bill Agee
Ah, so after you browse to the main test page, a new window is opened that contains the content you need to access? In that case you are entering the world of popups and attaching. :) See more info here: http://wiki.openqa.org/display/WTR/Pop+Ups In short, you can use Watir::Browser.attach (or

[wtr-general] Re: Script on select list item, clickon btn1 and Logoutfunction()

2009-10-08 Thread venkat
Hi Bill and all, Many many thanks, i have tried meanwhile I recieve this reply, it works fine now. Thanks very much for sparing your time. venky On Thu, Oct 8, 2009 at 10:21 PM, Bill Agee billa...@gmail.com wrote: Ah, so after you browse to the main test page, a new window is opened that

[wtr-general] Re: Script on select list item, clickon btn1 and Logoutfunction()

2009-10-07 Thread venkat
I can't figure it out, could you please help me. Following is the html for Select list item. select id=jurisdiction name=jurisdiction tabindex= option value=345 Calhoun County, MI /option option value=346

[wtr-general] Re: Script on select list item, clickon btn1 and Logoutfunction()

2009-10-06 Thread venkat
Hi, Thanks for responding back, actually my application is running fine. Exactly Error shown is the following: ruby y.rb C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5.rc1/lib/watir/element.rb:56:in `assert_exists': Unable to locate element, using :name, jurisdiction

[wtr-general] Re: Script on select list item, clickon btn1 and Logoutfunction()

2009-10-06 Thread Bill Agee
The exception from Watir indicates the problem is this line: ie.select_list( :name , jurisdiction).select(Development) As the error says, there's no select list found with the name jurisdiction. The HTML for that element should show the way to fix the problem - if you can't figure it out just

[wtr-general] Re: Script on select list item, clickon btn1 and Logoutfunction()

2009-10-05 Thread Željko Filipin
On Mon, Oct 5, 2009 at 2:16 PM, venkat greet.ven...@gmail.com wrote: I got the following error and my script fails to identify the list item Looks to me that application that you are testing crashed. Željko --~--~-~--~~~---~--~~ You received this message because

[wtr-general] Re: Script on select list item, clickon btn1 and Logoutfunction()

2009-10-05 Thread Anna Gabutero
On Mon, Oct 05, 2009 at 05:46:10PM +0530, venkat wrote: Hi, I got the following error and my script fails to identify the list item, can't click the Select button and Logout too fails. Can anyone please help me. HTTP Status 500 - This is a problem with the application you're testing,