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 post the HTML for that one
element.
Thanks
Bill
On Tue, Oct 6, 2009 at 2:53 AM, venkat <[email protected]> wrote:
> 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"
> (Watir::Exception::UnknownObjectException)
>
>
> from
> C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5.rc1/lib/watir/input_elements.rb:62:in
> `select_item_in_select_list'
>
>
> from
> C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5.rc1/lib/watir/input_elements.rb:46:in
> `select'
>
> from y.rb:23
>
> >Exit code: 1
>
>
>
> My watir script y.rb is the following:
>
>
>
> require 'rubygems'
>
> require "watir"
>
> require 'test/unit'
>
> require 'win32ole'
>
> require 'watir/contrib/ie-new-process'
>
> test_site = "http://xyz/home.do"
>
> ie = Watir::IE.new_process
>
> ie.set_fast_speed
>
> ie.goto test_site
>
> ie.text_field(:name, 'userName').set('darin')
>
> ie.text_field(:name, 'password').set('Tester123')
>
> ie.button(:value, 'Log in').click
>
> sleep (20)
>
> ie.goto('http://xyz/ManageJurisdictions.do')
>
> sleep (20)
>
> ie.select_list( :name , "jurisdiction").select("Development")
>
> sleep (20)
>
> ie.button(:value, 'btn1').click
>
> sleep (20)
>
> ie.link(:text,"LogOut").click
>
> ie.close()
>
>
>
> I want to perform 3 actions in the page.
>
> Select item from the drop down list box --> development
>
> Click on SELECT button
>
> Click on Logout
>
> (FYI: Logout has the following properties:
>
> Name - Value
>
> Href - xyz.
>
> OnClick - logOutFunction()
>
> OnClick - gotoActionUrl('Login.do?dispatchto=logout')
>
>
>
> Please help me....
>
>
>
> thanks,
>
> venky
>
>
> On Mon, Oct 5, 2009 at 6:04 PM, Anna Gabutero <[email protected]> wrote:
>
>>
>> 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, not a problem
>> with Watir. Read this for more information:
>> http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
>>
>>
>> - Anna
>>
>>
>>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines:
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---