Re: [wtr-general] Re: Unable to identify the object error

2010-12-09 Thread sudeep pattnaik
Hi Darryl,

Thanks for the feedback.
I have checked but found that the application contains no frames.

irb(main):012:0> browser.goto'1.2.3.4'
=> 21.233967
irb(main):013:0> browser.show_frames
there are 0 frames
=> 0..-1


Sudeep



On Fri, Dec 10, 2010 at 6:25 AM, Darryl Brown wrote:

> Hi Sudeep,
>
> Does the page you are testing have frame sets?
> Start an irb session and go to your web page.
>
>
> Example:
>
> C:\>irb
> irb(main):001:0> require 'watir'
> => true
> irb(main):002:0> ie = Watir::IE.new
> => #
> irb(main):003:0> ie.goto '1.2.3.4'
> => 5.343
> irb(main):004:0> ie.show_frames
> there are 3 frames
> frame  index: 1 name: companyArea
> frame  index: 2 name: tabArea
> frame  index: 3 name: infoArea
> => 0..2
> irb(main):005:0>
>
>
> You can also search this site for WebMetrics. It's supposed to be a
> recorder but recorders are bad. It is a nice helper tool for beginners
> because it will show you what a nested expression looks like for
> Watir. Don't expect to record and play back scripts. It ain't gonna
> happen.
>
>
>
> Regards,
> Darryl
>
>
>
> On Dec 8, 1:35 am, sudeep pattnaik  wrote:
> > Hi,
> >
> > The page I am testing, gets loaded after the login page. I have written
> > Watir script for logging in also which works fine.
> > The problem is Watir scxript is not able to locate any of the elements on
> > the page even if I have tried to access them using different parameters
> like
> > :name,:id,:text etc.
> >
> > Is there any specific reasons for this?
> >
> > Initially I thought my Ruby installation got corrupted, but surprsingly
> it
> > works fine for other applications.
> >
> > Please advise.
> >
> > Thanks in advance.
> >
> > Regards,
> > Sudeep
> >
> > On Mon, Dec 6, 2010 at 7:38 PM, sudeep pattnaik <
> sudeeppattn...@gmail.com>wrote:
> >
> > > Hi Željko,
> >
> > > You are right. when the page is loaded, the select is there and the
> value
> > > in it is "none" and by default it gets set to "Operational Control" in
> a
> > > span of 2 secs.
> >
> > > So I think I have to make the control wait for the time till the value
> gets
> > > changed to "Operational Control" and then set it to "Audits".
> >
> > > Sudeep.
> >
> > > On Mon, Dec 6, 2010 at 7:22 PM, Željko Filipin <
> > > zeljko.fili...@wa-research.ch> wrote:
> >
> > >> On Mon, Dec 6, 2010 at 2:42 PM, Sudeep 
> wrote:
> > >> > browser.select_list(:name,"ModuleID").set("Audits")
> > >> >    Audits
> >
> > >> Maybe one of these would work:
> >
> > >> browser.select_list(:name,"ModuleID").set("   Audits")
> > >> browser.select_list(:name,"ModuleID").set(/Audits/)
> >
> > >> Does this flash the select list?
> >
> > >> browser.select_list(:name,"ModuleID").flash
> >
> > >> Is the select list on the page? Maybe it appears later, or it is
> hidden.
> >
> > >> Željko
> >
> > >>  --
> > >> Before posting, please readhttp://watir.com/support. In short: search
> > >> before you ask, be nice.
> >
> > >> watir-general@googlegroups.com
> > >>http://groups.google.com/group/watir-general
> > >> watir-general+unsubscr...@googlegroups.com
> 
> >
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> watir-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com<http://groups.google.com/group/watir-general%0awatir-general+unsubscr...@googlegroups.com>
>

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Unable to identify the object error

2010-12-07 Thread sudeep pattnaik
Hi,

The page I am testing, gets loaded after the login page. I have written
Watir script for logging in also which works fine.
The problem is Watir scxript is not able to locate any of the elements on
the page even if I have tried to access them using different parameters like
:name,:id,:text etc.

Is there any specific reasons for this?

Initially I thought my Ruby installation got corrupted, but surprsingly it
works fine for other applications.

Please advise.

Thanks in advance.

Regards,
Sudeep

On Mon, Dec 6, 2010 at 7:38 PM, sudeep pattnaik wrote:

> Hi Željko,
>
> You are right. when the page is loaded, the select is there and the value
> in it is "none" and by default it gets set to "Operational Control" in a
> span of 2 secs.
>
> So I think I have to make the control wait for the time till the value gets
> changed to "Operational Control" and then set it to "Audits".
>
> Sudeep.
>
>
> On Mon, Dec 6, 2010 at 7:22 PM, Željko Filipin <
> zeljko.fili...@wa-research.ch> wrote:
>
>> On Mon, Dec 6, 2010 at 2:42 PM, Sudeep  wrote:
>> > browser.select_list(:name,"ModuleID").set("Audits")
>> >    Audits
>>
>> Maybe one of these would work:
>>
>>
>> browser.select_list(:name,"ModuleID").set("   Audits")
>> browser.select_list(:name,"ModuleID").set(/Audits/)
>>
>> Does this flash the select list?
>>
>> browser.select_list(:name,"ModuleID").flash
>>
>> Is the select list on the page? Maybe it appears later, or it is hidden.
>>
>> Željko
>>
>>  --
>> Before posting, please read http://watir.com/support. In short: search
>> before you ask, be nice.
>>
>> watir-general@googlegroups.com
>> http://groups.google.com/group/watir-general
>> watir-general+unsubscr...@googlegroups.com
>>
>
>

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Unable to identify the object error

2010-12-06 Thread sudeep pattnaik
Hi Željko,

You are right. when the page is loaded, the select is there and the value in
it is "none" and by default it gets set to "Operational Control" in a span
of 2 secs.

So I think I have to make the control wait for the time till the value gets
changed to "Operational Control" and then set it to "Audits".

Sudeep.

On Mon, Dec 6, 2010 at 7:22 PM, Željko Filipin <
zeljko.fili...@wa-research.ch> wrote:

> On Mon, Dec 6, 2010 at 2:42 PM, Sudeep  wrote:
> > browser.select_list(:name,"ModuleID").set("Audits")
> >    Audits
>
> Maybe one of these would work:
>
>
> browser.select_list(:name,"ModuleID").set("   Audits")
> browser.select_list(:name,"ModuleID").set(/Audits/)
>
> Does this flash the select list?
>
> browser.select_list(:name,"ModuleID").flash
>
> Is the select list on the page? Maybe it appears later, or it is hidden.
>
> Željko
>
>  --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> watir-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com
>

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Unable to identify the object error

2010-12-06 Thread sudeep pattnaik
Hi Prajakta,

It did not work out :( :( .

Sudeep

On Mon, Dec 6, 2010 at 7:16 PM, Prajakta Jadhav
wrote:

> Try using value of the option instead of label.
> E.g: browser.select_list(:name,"ModuleID").set("13")
>
> -Prajakta
>
>
> On Mon, Dec 6, 2010 at 7:12 PM, Sudeep  wrote:
>
>> Hi,
>>
>> I am getting the following error while setting a value to the drop
>> down list.
>>
>> Watir Script :
>> browser.select_list(:name,"ModuleID").set("Audits")
>>
>>
>> HTML Code:
>>
>> > onchange="populateDIV(this); ModuleID_onChange();"
>>
>>
>> onmouseout="hidePathOnPop();this.style.textDecoration='none';this.style.color
>> ='#00';"
>>
>> onmouseover="this.style.textDecoration='underline';this.style.color
>> ='#0033CC';"
>>  id="ModuleID" name="ModuleID"  class="sysNavbarActiveSearch" size="1"
>> >
>>
>> 
>> < Module >
>>
>>    Audits
>>    Document Control
>>    Master Incident
>>    mdole
>>    Module12
>>    Module123
>>    Operational Control
>>    play8
>>    Quality Nonconformance
>>    Standard Nonconformance
>> 
>>
>>
>> Error in the console :
>>
>> C:/Ruby186/lib/ruby/gems/1.8/gems/watir-1.6.7/lib/watir/element.rb:
>> 58:in `assert_exists': Unable to locate element, using :name,
>> "ModuleID" Watir::Exception::UnknownObjectException)
>>from C:/Ruby186/lib/ruby/gems/1.8/gems/watir-1.6.7/lib/watir/
>> input_eleme
>> nts.rb:64:in `select_item_in_select_list'
>>from C:/Ruby186/lib/ruby/gems/1.8/gems/watir-1.6.7/lib/watir/
>> input_eleme
>> nts.rb:48:in `set'
>>from Intelex_Audit_1.txt:11
>>
>>
>> I am not able to find the reason why is it not able to find the Object
>> with name "ModuleId" whereas in the HTML it is clearly mentioned as
>> the name.
>>
>> Please can you help me out?
>>
>> Regards,
>> Sudeep
>>
>> --
>> Before posting, please read http://watir.com/support. In short: search
>> before you ask, be nice.
>>
>> watir-general@googlegroups.com
>> http://groups.google.com/group/watir-general
>> watir-general+unsubscr...@googlegroups.com
>>
>
>  --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> watir-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com
>

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Re: How to select a value from a drop down list

2010-12-05 Thread sudeep pattnaik
Thanks Darryl.

In fact I am very new to WATIR.
Will try to get my answers from the tutorials sent by you.

Sudeep.

On Sat, Dec 4, 2010 at 10:29 PM, Darryl Brown wrote:

> Hi Sudeep,
>
> The best way to get help here is to try first. What did you try?
>
> You seem to be very eager to learn about Waitr. A suggestion for you
> would be to read the Watir tutorial located here:http://
> wiki.openqa.org/display/WTR/Tutorial. The answer to your particular
> question can be found within: http://wiki.openqa.org/display/WTR/Simple.
>
>
> Best regards,
> Darryl
>
>
> On Dec 4, 6:00 am, Sudeep  wrote:
> > Hi,
> >
> > Please can you let me know how to select a value from the drop down
> > list through WATIR script?
> >
> > The HTML is as follows.
> >
> > 
> >   Gender
> >   
> >
> > > name="gender">
> > - Select One -
> > Male
> > Female
> >
> >   
> >
> >
> >
> >
> >
> >
> > Regards,
> > Sudeep
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> watir-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com
>

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Error message while typing the command "require 'Watir' "

2010-11-29 Thread sudeep pattnaik
Hi,

Yes.Everything is working fine now :)
Thanks a lot.

Sudeep.

On Mon, Nov 29, 2010 at 4:02 PM, Željko Filipin <
zeljko.fili...@wa-research.ch> wrote:

> On Fri, Nov 26, 2010 at 12:34 PM, sudeep pattnaik <
> sudeeppattn...@gmail.com> wrote:
> > after writing " require "rubygems" " it is returning the value as true.
>
> Are you saying everything works now?
>
> Željko
>
>  --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> watir-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com
>

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Error message while typing the command "require 'Watir' "

2010-11-26 Thread sudeep pattnaik
Hi Željko,

Thanks for the guidance. If i write only the command " require "watir"  "
then it is giving the result as false. but after writing " require
"rubygems" " it is returning the value as true.

The following is the result:

C:\Documents and Settings\sudeepp>irb
irb(main):001:0> require "watir"
LoadError: no such file to load -- watir
from (irb):1:in `require'
from (irb):1
irb(main):002:0> require "rubygems"
=> true
irb(main):003:0> require "watir"
=> true


FYI,  I have installed Ruby 1.8.6 and installed WATIR using the command
" gem install watir ".


Regards,
Sudeep







On Fri, Nov 26, 2010 at 4:50 PM, Željko Filipin <
zeljko.fili...@wa-research.ch> wrote:

> On Fri, Nov 26, 2010 at 12:10 PM, Sudeep  wrote:
> > require 'Watir' or
> > require 'watir'
>
> You should only use require 'watir'
>
>
> > irb(main):002:0> require 'watir'
> > LoadError: no such file to load -- watir
>
> Do you have Watir installed?
>
> Try this from command line: gem list watir
>
> Also, maybe you have to require rubygems first. Try this in IRB:
>
> require "rubygems"
> require "watir"
>
> Željko
> --
> watir.com - community manager
> watirpodcast.com - host
> testingpodcast.com - audio podcasts on software testing. all of them
>
>
>
>  --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> watir-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com
>

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com