Re: [wtr-general] Re: Unable to see error message in ruby interpreter

2010-08-24 Thread Željko Filipin
On Tue, Aug 17, 2010 at 6:46 AM, goutham mandadi 
wrote:
> undefined method `element_by_xpath'

Your Watir version is?

Ž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 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


Re: [wtr-general] Jssh for Firefox 4.0 beta3

2010-08-24 Thread Željko Filipin
On Tue, Aug 17, 2010 at 10:19 AM, al3kc  wrote:
> Does any one has jssh for FF4.0?

Not yet, as far as I know. All plugins are here:

http://watir.com/installation/

Ž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 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


Re: [wtr-general] Re: click on html element

2010-08-24 Thread Željko Filipin
On Wed, Aug 18, 2010 at 1:23 PM, TCBlues  wrote:
> So it is not possible to access using something like
> brow.element(:id,"xxx") or brow.object(:id,"xxx") or something
> similar.

It is:

http://wiki.openqa.org/display/WTR/XPath

Ž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 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


Re: [wtr-general] Regression in watir

2010-08-24 Thread Željko Filipin
On Wed, Aug 18, 2010 at 5:31 PM, nix  wrote:
> Iam new to watir and would like to maintain regression tests.

After you read the tutorial, take a look at this too:

http://watir.com/

Ž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 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


Re: [wtr-general] Re: Select an element when :id and :class are not completely known

2010-08-24 Thread Željko Filipin
On Thu, Aug 19, 2010 at 12:54 AM, jasbro  wrote:
> This may just
> be a benefit of using Ruby, or it may have been intentional

Intentional. More info:

http://wiki.openqa.org/display/WTR/How+and+What
http://wiki.openqa.org/display/WTR/Summary

Ž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 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


Re: [wtr-general] [ANN]VTD-XML 2.9

2010-08-24 Thread Željko Filipin
I have approved this, but it looks like (open source) spam. :)

Ž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 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


Re: [wtr-general] unable to access element in frame

2010-08-24 Thread Željko Filipin
Did you read this?

http://wiki.openqa.org/display/WTR/Frames

Also, show us your Watir code.

Ž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 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


Re: [wtr-general] Re: Cannot access element through iframe?

2010-08-24 Thread Željko Filipin
On Sat, Aug 21, 2010 at 12:34 AM, Chan Nguyen  wrote:
> This is the
> whole HTML, it's a really long, exactly 2660 lines of code:

Pasting more than 2000 lines of code does not help. Please post link to your
site (if it is public) or smallest HTML sample that still reproduces the
problem.

Ž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 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


Re: [wtr-general] Jquery from stackoverflow

2010-08-24 Thread Željko Filipin
On Mon, Aug 23, 2010 at 9:58 AM, Marlena Compton 
wrote:
> After searching for this info in the watir list, I found it in
> stackoverflow.

You have a beer for linking to Stack Overflow. :) Just remind me if we meet
on a conference (or wherever).

Ž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 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


Re: [wtr-general] Re: WATiR Query

2010-08-24 Thread Željko Filipin
On Tue, Aug 24, 2010 at 8:01 AM, Pallavi Sharma 
wrote:
> Adding Watir group, for everyone's benefit.

Good idea.

> ruby, www.ruby.org,

Actually, it is http://www.ruby-lang.org/

Ž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 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


[wtr-general] I have a web page in html embeded java script on that i want to select Audio that is under some td tag.

2010-08-24 Thread mike_sukhi
The menu is vertical one by another .
i juss know the main span class and text which is under td tag.there
is no table and row id , name.Under several rows a td tag exists in
which i found innertext is Audio.
than i tried $ie.cell(:class =>'menuLink', :text => 'Audio').click
it doesnot gives any error but also not selecting the menu Audio.

-- 
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


Re: [wtr-general] I have a web page in html embeded java script on that i want to select Audio that is under some td tag.

2010-08-24 Thread Željko Filipin
On Tue, Aug 24, 2010 at 11:26 AM, mike_sukhi  wrote:
> than i tried $ie.cell(:class =>'menuLink', :text => 'Audio').click
> it doesnot gives any error but also not selecting the menu Audio.

Some HTML or link to site (if it is public) would help.

Ž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 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


[wtr-general] Re: How to select a item from the dropbox

2010-08-24 Thread sudhir
Hi Chuck,

I tired with ur options and found that is sometimes able to select the
level0 and its value but sometime not.
have you faced this weird behavior . Can you please guide.
the code I am using is below.
require 'watir'
 test_site = 'http://newpmr2prod.jpmorgan.com/PM/PMlogin.do'
 b = Watir::Browser.new
 username='sudhikumar'
 pwd='jpm'
 b.goto(test_site)
 b.text_field(:name, 'userID').set(username)
 b.text_field(:name, 'password').set(pwd)
 b.form(:action, '/PM/PMlogin.do').submit
 b.frame(:name, 'menuMiddle').link(:text, 'Performance').click
 bu='ABPorts'
 level='level0'
 b.frame(:name, 'rightFrame2').select_list(:name,level).select(bu)


Thanks for ur help

On Aug 23, 10:36 pm, Chuck van der Linden  wrote:
> >>b.frame(:name, 'rightFrame2').select_list(:name,level).set(bu)
>
> 1)  You might want to try using .select  instead of .set    You might
> also want to first clear any selected items using .clearSelection
>
> 2)  The value for the method is invalid, none of the 
> tags for that list have '00907' as a label (nor a value to be
> returned).  And note that select lists are normally selected by the
> visible label that the user would see, not the value that selection
> returns on form submission.   So use bu="ABPorts" or something similar
> to that.
>
> 3) it's not finding the element, and based on your code identifying it
> via :name, "level0" ought to work, so that means there's some other
> problem, are you sure you have the right frame?  that it's not say
> "rightFrame1" perhaps?
>
> 4) I notice there's an onchange event bound to that selection list
> element, so you might need to fire that event against the selection
> list after you've changed which item in the list is selected
>
> b.frame(:name,
> 'rightFrame1').select_list(:name,level).fire_event('onchange')
>
> 5)  From a code readability standpoint, it's a lot more direct to just
> use something like
>
> b.frame(:name, 'rightFrame1').select_list(:name,
> 'level0').select('ABPorts')
>
> rather than using variables which has the effect of forcing someone
> trying to read the code to go look and see where the variable was
> assigned, or else memorize those assignments.   Otherwise if you want
> to use variables like that, assign them at the last possible instant
> so it's clearer to someone reading your code what the values are.
>
> On Aug 22, 11:17 pm, sudhir  wrote:
>
> >  require 'watir'
> >  test_site = 'http://newpmr2prod.jpmorgan.com/PM/PMlogin.do'
> >  b = Watir::Browser.new
> >  username='sudhikumar'
> >  pwd='jpm'
> > level='level0'
> >  bu='00907'
> >  b.goto(test_site)
> >  b.text_field(:name, 'userID').set(username)
> >  b.text_field(:name, 'password').set(pwd)
> >  b.form(:action, '/PM/PMlogin.do').submit
> >  b.frame(:name, 'menuMiddle').link(:text, 'Performance').click
> >  b.frame(:name, 'rightFrame2').select_list(:name,level).set(bu)
> > => false
> > => "http://newpmr2prod.jpmorgan.com/PM/PMlogin.do";
> > => #
> > => "sudhikumar"
> > => "jpm"
> > => "level0"
> > => "00907"
> > => 6.37
> > => ""
> > => ""
> > => 5.137
> > => 1.468
> > Watir::Exception::UnknownObjectException: Unable to locate element,
> > using :name, "level0"
> >         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 `set'
> >         from (irb):136
> >         from :0
>
> > 
>
> > 
> >         
> >                 JPM PM system
>
> > http://newpmr2prod.jpmorgan.com:80/PM/";>
>
> > 
> >         history.go(1);
> > 
>
> >  > script>
> > 
>
> >