No Sudhir

You are getting this exception for all objects in your application. remove
all code and just try the setting user id,

Does your application has frames...?


Regards
Pallavi.

On Mon, Aug 16, 2010 at 2:42 PM, sudhir <prem...@gmail.com> wrote:

> require 'watir'
>  test_site = '.............'
>
> b = Watir::Browser.new
>
>  b.goto(test_site)
>  b.text_field(:name, "userID").set("sudhikumar")
>  b.text_field(:name, "password").set("jpm")
>  b.form(:action, "/PM/PMlogin.do").submit
>  b.frame(:name, "menuMiddle").link(:text, "Performance").click
>  b.select_list(:name, 'level0').select ("00990")
>
>
> b.select_list(:name,'selectedReportDetailsString').select("SecurityPerformance##4##
> ## || ##RPTTYP##PERF|| ||")
> => false
> => "http://newpmr2prod.jpmorgan.com/PM/PMlogin.do";
> => #<Watir::IE:0xdc87230 url="about:blank" title="">
> => 5.391
> Watir::Exception::UnknownObjectException: Unable to locate element,
> using :name, "userID"
>        from
> C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:
> 56:in `assert_exists'
>        from
> C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:
> 288:in `enabled?'
>        from
> C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:
> 60:in `assert_enabled'
>        from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/
> input_elements.rb:327:in `set'
>        from (irb):27
>        from :0
> Watir::Exception::UnknownObjectException: Unable to locate element,
> using :name, "password"
>        from
> C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:
> 56:in `assert_exists'
>        from
> C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:
> 288:in `enabled?'
>        from
> C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:
> 60:in `assert_enabled'
>        from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/
> input_elements.rb:327:in `set'
>        from (irb):28
>        from :0
> Watir::Exception::UnknownFormException: Unable to locate a form using
> action and /PM/PMlogin.do
>        from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/form.rb:
> 79:in `assert_exists'
>        from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/form.rb:
> 86:in `submit'
>        from (irb):29
>        from :0
> => 1.734
> Errno::EBADF: Bad file descriptor
>        from (irb):31:in `write'
> Watir::Exception::UnknownObjectException: Unable to locate element,
> using :name, "selectedReportDetailsString"
>        from
> C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:
> 56:in `assert_exists'
>        from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/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/lib/watir/
> input_elements.rb:46:in `select'
>        from (irb):32
>        from :0
>
>
> I am getting the above error while selecting from the
> dropbox...........
> Let me know if you require more deatils.
> The website I want to automate is not public.......
>
> On Aug 16, 11:18 am, Pallavi Sharma <write2pall...@gmail.com> wrote:
> > Sudhir
> >
> > ie.select_list(:name, 'level0').select ("ITEM you want to select")
> >
> > Regards
> >
> > Pallavi
> >
> > 2010/8/16 sudhir <prem...@gmail.com>
> >
> > > Pallavi,
> > > The select list for ABPorts is given below:
> > > <select name="level0" width="300"
> >
> > >
> onchange="javascript:selectcombo_Report('0','ReportTemplate_Buselect',this.form)"
> > > class="select-menut"><option value="-1" selected="selected">- Select
> > > One -</option>
> > > <option value="DEMO-00908">ABC Company</option>
> > > <option value="00901">ABPorts</option>
> > > <option value="05245">Washington State Investment Board</option>
> > > <option value="00990">Wellcome Trust</option>
> >
> > > Thanks for your help
> >
> > > On Aug 14, 4:19 pm, Pallavi Sharma <write2pall...@gmail.com> wrote:
> > > > Sudhir
> >
> > > > For ABPorts, give the complete select list html code, for the other
> one:
> >
> > > > <select name="selectedReportDetailsString" size="1"
> > > > onchange="javascript:submitReportTypes('<
> > > > %=WebOperation.REPORTTEMPLATE_REPORT_SELECT%>');" class="select-
> > > > menu180"><option value="- Select One -##-1## ## || || || "
> > > > selected="selected">- Select One -</option>
> > > > <option value="Performance by Dimension##1## ## || ##RPTTYP##PERF||
> ||
> > > > ">Performance by Dimension</option>
> > > > <option value="Historical Summary##2## ## || ##RPTTYP##PERF|| ||
> > > > ">Historical Summary</option>
> > > > <option value="Index Performance##3## ## || ##RPTTYP##PERF|| ||
> > > > ">Index Performance</option>
> > > > <option value="Security Performance##4## ## || ##RPTTYP##PERF|| ||
> > > > ">Security Performance</option></select>
> >
> > > >
> browser.select_list(:name,'selectedReportDetailsString').select("Security
> > > > Performance##4## ## || ##RPTTYP##PERF|| ||") to select this element
> in
> > > the
> > > > list.
> >
> > > > I hope this helps, if it doesn't let us know, whether the page on
> which
> > > you
> > > > are working is available publicly or no...
> >
> > > > Regards
> > > > Pallavi.
> >
> > > > 2010/8/14 sudhir <prem...@gmail.com>
> >
> > > > > Hi All,
> > > > > Here is another select list from which I have to select
> "Performance
> > > > > by Dimension" Can you Guide about it.....
> >
> > > > > <select name="selectedReportDetailsString" size="1"
> > > > > onchange="javascript:submitReportTypes('<
> > > > > %=WebOperation.REPORTTEMPLATE_REPORT_SELECT%>');" class="select-
> > > > > menu180"><option value="- Select One -##-1## ## || || || "
> > > > > selected="selected">- Select One -</option>
> > > > > <option value="Performance by Dimension##1## ## || ##RPTTYP##PERF||
> ||
> > > > > ">Performance by Dimension</option>
> > > > > <option value="Historical Summary##2## ## || ##RPTTYP##PERF|| ||
> > > > > ">Historical Summary</option>
> > > > > <option value="Index Performance##3## ## || ##RPTTYP##PERF|| ||
> > > > > ">Index Performance</option>
> > > > > <option value="Security Performance##4## ## || ##RPTTYP##PERF|| ||
> > > > > ">Security Performance</option></select>
> >
> > > > > Thanks A Lot for your help........
> >
> > > > > On Aug 14, 9:38 am, sudhir <prem...@gmail.com> wrote:
> >
> > >
> onchange="javascript:selectcombo_Report('0','ReportTemplate_Buselect',this.form)"
> > > > > > class="select-menut"><option value="-1" selected="selected">-
> Select
> > > > > > One -</option>
> > > > > > <option value="DEMO-00908">ABC Company</option>
> > > > > > <option value="DEMO-UK016">ABC-GBP</option>
> > > > > > <option value="00901">ABPorts</option>
> > > > > > <option value="ABSCOMBINED">ABS Combined</option>
> >
> > > > > > I want to select from the drop box like ABPorts. can you please
> Guide
> > > > > > Thanks Lot for your help
> >
> > > > > > On Aug 9, 10:06 pm, Chuck van der Linden <sqa...@gmail.com>
> wrote:
> >
> > > > > > > If the below does not work, then use the IE Developer Toolbar,
> or
> > > > > > > Firebug, to have a look at the element to see if it is really
> an
> > > HTML
> > > > > > > select list, or if it is some other kind of control.
> >
> > > > > > > There are often Javascript powered 'section lists' which are
> > > enabled
> > > > > > > using other types of objects (often an ordered list) and a lot
> of
> > > > > > > javascript eventing.   In that case you typically have to use
> click
> > > > > > > methods on the elements the control is created from, or
> sometimes
> > > fire
> > > > > > > specfic events like 'onmouseover' followed by clicks, in order
> to
> > > > > > > activate the control.
> >
> > > > > > > There are several existing threads on dealing with those kind
> of
> > > > > > > controls, which would bear searching for and reading if you
> find
> > > > > > > yourself in that situation
> >
> > > > > > > On Aug 9, 1:45 am, Željko Filipin <
> zeljko.fili...@wa-research.ch>
> > > > > > > wrote:
> >
> > > > > > > > On Sun, Aug 8, 2010 at 5:15 PM, sudhir <prem...@gmail.com>
> > > wrote:
> > > > > > > > > I am trying to select an item from dropbox but could not.
> >
> > > > > > > > Take a look:
> >
> > > > > > > >http://wiki.openqa.org/display/WTR/Selection+Boxes
> >
> > > > > > > > Željko
> > > > > > > > --
> > > > > > > > watir.com - community manager
> > > > > > > > watirpodcast.com - host
> > > > > > > > testingpodcast.com - audio podcasts on software testing. all
> of
> > > them
> > > > > > > > vidipodkast.com - pričamo o hardveru, softveru i časopisu
> Vidi
> >
> > > > > --
> > > > > Before posting, please readhttp://watir.com/support. In short:
> search
> > > > > before you ask, be nice.
> >
> > > > > You received this message because you are subscribed to
> > > > >http://groups.google.com/group/watir-general
> > > > > To post: watir-general@googlegroups.com
> > > > > To unsubscribe: 
> > > > > watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com>
> <watir-general%2bunsubscr...@googlegroups.com<watir-general%252bunsubscr...@googlegroups.com>
> >
> > > <watir-general%2bunsubscr...@googlegroups.com<watir-general%252bunsubscr...@googlegroups.com>
> <watir-general%252bunsubscr...@googlegroups.com<watir-general%25252bunsubscr...@googlegroups.com>
> >
> >
> > > --
> > > Before posting, please readhttp://watir.com/support. In short: search
> > > before you ask, be nice.
> >
> > > You received this message because you are subscribed to
> > >http://groups.google.com/group/watir-general
> > > To post: watir-general@googlegroups.com
> > > To unsubscribe: 
> > > watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com>
> <watir-general%2bunsubscr...@googlegroups.com<watir-general%252bunsubscr...@googlegroups.com>
> >
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> You received this message because you are subscribed to
> http://groups.google.com/group/watir-general
> To post: watir-general@googlegroups.com
> To unsubscribe: 
> watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com>
>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com

Reply via email to