Re: [wtr-general] Output is displayed two times

2010-02-08 Thread Wesley Chen
require 'D:\Waltair scripts\My wokings in waltair\script1.rb'
will execute *MyClass.some_method*
Wesley.
For life, the easier, the better.


On Tue, Feb 9, 2010 at 12:14 AM, Charley Baker wrote:

> You seem to be calling MyClass.some_method from both scripts. Delete the
> call from the first script.
>
> -c
>
>
>
> On Mon, Feb 8, 2010 at 5:37 AM, ayyappa  wrote:
>
>> Hi guys  I am new to watir . I am just working on basic concepts(Using
>> Class ). when i run  the script 2 , i got the output displaying two
>> times. Can you please any one tell me any fault in my script
>>
>> Script 1
>> 
>>
>> require 'rubygems'
>> require 'win32ole'
>> require 'watir'
>>
>> class MyClass
>>def self.some_method
>>  puts 'something'
>>end
>>  end
>>
>> MyClass.some_method
>>
>>
>> Script 2
>> 
>> require 'rubygems'
>> require 'win32ole'
>> require 'watir'
>> require 'D:\Waltair scripts\My wokings in waltair\script1.rb'
>>
>> MyClass.some_method
>>
>> Output of script 2 is
>> =
>> something
>> something
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Watir General" group.
>> To post to this group, send email to watir-general@googlegroups.com
>> Before posting, please read the following guidelines:
>> http://wiki.openqa.org/display/WTR/Support
>> To unsubscribe from this group, send email to
>> watir-general+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/watir-general
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Watir General" group.
> To post to this group, send email to watir-general@googlegroups.com
> Before posting, please read the following guidelines:
> http://wiki.openqa.org/display/WTR/Support
> To unsubscribe from this group, send email to
> watir-general+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/watir-general
>

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


Re: [wtr-general] How to export results into an excel sheet on linux

2010-02-08 Thread Wesley Chen
Please search in the group about how to read and write in openoffice in
ruby.

Wesley.
For life, the easier, the better.


On Tue, Feb 9, 2010 at 6:24 AM, Naga  wrote:

> Hello,
>
> I am new to Ruby - Watir. I am trying to export results in to an excel
> sheet. I am running watir on linux and not windows. I have seen
> information on Windows but not linux. Please let me know.
>
> Thanks,
> Naga
>
> --
> You received this message because you are subscribed to the Google Groups
> "Watir General" group.
> To post to this group, send email to watir-general@googlegroups.com
> Before posting, please read the following guidelines:
> http://wiki.openqa.org/display/WTR/Support
> To unsubscribe from this group, send email to
> watir-general+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/watir-general
>

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


Re: [wtr-general] How much time does Watir waits for the page to load?

2010-02-08 Thread Wesley Chen
Of course not.
It will wait no more than 300s.
Please search in the group, I think you can get what you want.


Wesley.
For life, the easier, the better.


On Tue, Feb 9, 2010 at 11:39 AM, Logic Bomb  wrote:

> Hi,
>
> I would like to ask how many seconds does Watir waits for the page to
> load? Does Watir waits forever until the page is loaded?
>
> Thanks,
> Januwatri
>
> --
> You received this message because you are subscribed to the Google Groups
> "Watir General" group.
> To post to this group, send email to watir-general@googlegroups.com
> Before posting, please read the following guidelines:
> http://wiki.openqa.org/display/WTR/Support
> To unsubscribe from this group, send email to
> watir-general+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/watir-general
>

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


[wtr-general] How much time does Watir waits for the page to load?

2010-02-08 Thread Logic Bomb
Hi,

I would like to ask how many seconds does Watir waits for the page to
load? Does Watir waits forever until the page is loaded?

Thanks,
Januwatri

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


[wtr-general] Re: Help required to access src element in the following code.

2010-02-08 Thread ashwin mahesh
Any idea how to overcome this problem.

Thanks,
Ashwin.

On Feb 6, 2:56 pm, ashwin mahesh  wrote:
> When I click on a button, src="/bf/Charts/Pie2D.swf" will change to
> src="/bf/Charts/Pie3D.swf". So to verify this change I need to access
> the the element whose attribute is src="/bf/Charts/Pie2D.swf". But
> from the above HTML code I am not able to identify the element.
>
> Thanks,
> Ashwin
> On Feb 5, 3:32 pm, Željko Filipin 
> wrote:
>
> > On Fri, Feb 5, 2010 at 10:47 AM, ashwin mahesh  wrote:
> > > I need to access the src="/bf/Charts/
> > > Pie2D.swf" present in the last line of the following HTML code, for
> > > verification.
>
> > What do you mean by "access"? Do you need to click it, play flash file, just
> > check if it is in the source code...? What have you tried? What is the
> > problem?
>
> > Željko
> > --
> > watir.com - community manager
> > watirpodcast.com - host

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


[wtr-general] How to export results into an excel sheet on linux

2010-02-08 Thread Naga
Hello,

I am new to Ruby - Watir. I am trying to export results in to an excel
sheet. I am running watir on linux and not windows. I have seen
information on Windows but not linux. Please let me know.

Thanks,
Naga

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


[wtr-general] Re: div values in table

2010-02-08 Thread tester86
Yep, I was using to_i but it was rounding up the numbers. I will try
to_f.

Thanks orde

On Feb 8, 3:02 pm, orde  wrote:
> The .html method is returning a string value.   So, you're adding
> "14.56" and "85.00" to create "14.5685.00"
>
> You need to convert the a and b variables to a numeric class.  In this
> case, you want to use .to_f:
>
> total = a.to_f +  b.to_f
>
> Hope that helps.
>
> orde
>
> On Feb 8, 12:45 pm, tester86  wrote:
>
>
>
> > Sorry but in IRB when I do
>
> > a= $b.table(:index, 1)[2][11].html
> > print 14.56
>
> > b=$b.table(:index, 1)[2][11].html
> > print 85.00
>
> > total = a +  b
>
> > in IRB it returns 14.5685.00
>
> > when it should return 99.56

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


[wtr-general] Re: div values in table

2010-02-08 Thread orde
The .html method is returning a string value.   So, you're adding
"14.56" and "85.00" to create "14.5685.00"

You need to convert the a and b variables to a numeric class.  In this
case, you want to use .to_f:

total = a.to_f +  b.to_f

Hope that helps.

orde

On Feb 8, 12:45 pm, tester86  wrote:
> Sorry but in IRB when I do
>
> a= $b.table(:index, 1)[2][11].html
> print 14.56
>
> b=$b.table(:index, 1)[2][11].html
> print 85.00
>
> total = a +  b
>
> in IRB it returns 14.5685.00
>
> when it should return 99.56

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


[wtr-general] Re: div values in table

2010-02-08 Thread tester86
please diregard this post I have found the solution.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


[wtr-general] Re: div values in table

2010-02-08 Thread tester86
Sorry but in IRB when I do

a= $b.table(:index, 1)[2][11].html
print 14.56

b=$b.table(:index, 1)[2][11].html
print 85.00

total = a +  b

in IRB it returns 14.5685.00

when it should return 99.56

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


[wtr-general] Re: div values in table

2010-02-08 Thread tester86
Please disregard this post...I have got it working.

Thanks

On Feb 8, 2:33 pm, tester86  wrote:
> hi
>
> I am printing out the value in a column in irb and then I want to
> store that value in a variable and  calculate the two values. If I do
>
> $b.table(:index, 1)[2][11].html
> print $90
>
> $b.table(:index, 1)[3][11].html
> print $80
>
> Then if I do:
>
> def test_total(a,y)
>
> a= $b.table(:index, 1)[2][11].html
> y=$b.table(:index, 1)[3][11].html
>
> total = a + y
>
> return total
>
> end
>
> In IRB it returns Nil
>
> Does anyone have any ideas on why this is not working and returning
> nil. If not can someone point me in the correct direction.
>
> Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


[wtr-general] div values in table

2010-02-08 Thread tester86
hi

I am printing out the value in a column in irb and then I want to
store that value in a variable and  calculate the two values. If I do

$b.table(:index, 1)[2][11].html
print $90

$b.table(:index, 1)[3][11].html
print $80

Then if I do:

def test_total(a,y)

a= $b.table(:index, 1)[2][11].html
y=$b.table(:index, 1)[3][11].html

total = a + y

return total

end

In IRB it returns Nil

Does anyone have any ideas on why this is not working and returning
nil. If not can someone point me in the correct direction.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


Re: [wtr-general] fix funky command line behavior in watir-console

2010-02-08 Thread marekj
so I see that TABTAB and CTRL+R don't work without readline.
and conf.io is now StdioInputMethod instead of ReadlineInputMethod
So far I don't know what other implications may be for --noreadline option

marekj

Watirloo: Semantic Page Objects in UseCases
http://github.com/marekj/watirloo/
Support Watir Project http://pledgie.com/campaigns/2982



On Mon, Feb 8, 2010 at 10:30 AM, Željko Filipin
 wrote:
> On Mon, Feb 8, 2010 at 5:12 PM, marekj  wrote:
>> Support Watir Project http://pledgie.com/campaigns/2982
>
> This is a great idea! :) I will use it in my signature too.
>
> Željko
>
> --
> You received this message because you are subscribed to the Google Groups
> "Watir General" group.
> To post to this group, send email to watir-general@googlegroups.com
> Before posting, please read the following guidelines:
> http://wiki.openqa.org/display/WTR/Support
> To unsubscribe from this group, send email to
> watir-general+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/watir-general
>

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


[wtr-general] Re: Watir ads at stackoverflow.com

2010-02-08 Thread Željko Filipin
Thanks to everybody that voted (or tried to vote) for Watir ad on
stackoverflow.com! Current status: 5/5 = 100% :)

http://bit.ly/djPPfj

Željko
--
watir.com - community manager
watirpodcast.com - host
pledgie.com/campaigns/2982 - donate to Watir

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


Re: [wtr-general] fix funky command line behavior in watir-console

2010-02-08 Thread Željko Filipin
On Mon, Feb 8, 2010 at 5:12 PM, marekj  wrote:
> Support Watir Project http://pledgie.com/campaigns/2982

This is a great idea! :) I will use it in my signature too.

Željko

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


Re: [wtr-general] Output is displayed two times

2010-02-08 Thread Charley Baker
You seem to be calling MyClass.some_method from both scripts. Delete the
call from the first script.

-c


On Mon, Feb 8, 2010 at 5:37 AM, ayyappa  wrote:

> Hi guys  I am new to watir . I am just working on basic concepts(Using
> Class ). when i run  the script 2 , i got the output displaying two
> times. Can you please any one tell me any fault in my script
>
> Script 1
> 
>
> require 'rubygems'
> require 'win32ole'
> require 'watir'
>
> class MyClass
>def self.some_method
>  puts 'something'
>end
>  end
>
> MyClass.some_method
>
>
> Script 2
> 
> require 'rubygems'
> require 'win32ole'
> require 'watir'
> require 'D:\Waltair scripts\My wokings in waltair\script1.rb'
>
> MyClass.some_method
>
> Output of script 2 is
> =
> something
> something
>
> --
> You received this message because you are subscribed to the Google Groups
> "Watir General" group.
> To post to this group, send email to watir-general@googlegroups.com
> Before posting, please read the following guidelines:
> http://wiki.openqa.org/display/WTR/Support
> To unsubscribe from this group, send email to
> watir-general+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/watir-general
>

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


Re: [wtr-general] fix funky command line behavior in watir-console

2010-02-08 Thread marekj
I always have had USE_READLINE=true in my .irbrc and I am not sure
what turning this off really does.
I thought you need it for things like lookup up history of commands,
up arrow navigation and CTR+R for searching the buffer, alos TabTab
for completion lookup?
I'll try to turn off readline and see if there are any unexpected consequences.
any ideas about that?

marekj

Watirloo: Semantic Page Objects in UseCases
http://github.com/marekj/watirloo/
Support Watir Project http://pledgie.com/campaigns/2982



On Fri, Feb 5, 2010 at 1:02 PM, Alan Baird  wrote:
> Here is another cool trick I learned today.
>
> I remember how cool it was when I found out about watir-console.  You know, 
> that tiny program that's in the /watir/bin folder that automagically requires 
> watir for you when you want to perform some cool irb-style command line stuff 
> with watir?
>
> However, I soon learned that watir-console has the same problem in the 
> windows command line that irb does; whenever you go over a certain command 
> line limit (somewhere around 80-100 characters) the command line just freaks 
> out and skips around a bunch of lines.  It makes irb completely unusable and 
> you have to CTRL-C a bunch to get it back to sanity.  Well, there is a way to 
> fix this.  All you need to do is type "irb --noreadline" and command line 
> sanity will be restored.
>
> So, I was a little sad that I couldn't do the same thing to 
> watir-console...until today.  Since watir console is so simple, you just need 
> to do the same thing to it that you did on the irb command line.
>
> Specifically, change:
> exec "irb.bat #{$libs} -r rubygems -r irb/completion -r watir/irb-history -r 
> watir --simple-prompt --readline"
>
> to
>
> exec "irb.bat #{$libs} -r rubygems -r irb/completion -r watir/irb-history -r 
> watir --simple-prompt --noreadline"
>
> I don't know why I didn't think about this earlier but oh well.  I have 
> restored command line sanity to my environment and all is well.
>
> Enjoy,
> Alan
>
>
>
> This email message and any attachments are for the sole use of the intended 
> recipients and may contain proprietary and/or confidential information which 
> may be privileged or otherwise protected from disclosure. Any unauthorized 
> review, use, disclosure or distribution is prohibited. If you are not an 
> intended recipient, please contact the sender by reply email and destroy the 
> original message and any copies of the message as well as any attachments to 
> the original message.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Watir General" group.
> To post to this group, send email to watir-general@googlegroups.com
> Before posting, please read the following guidelines: 
> http://wiki.openqa.org/display/WTR/Support
> To unsubscribe from this group, send email to 
> watir-general+unsubscr...@googlegroups.com
> For more options, visit this group at 
> http://groups.google.com/group/watir-general
>

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


Re: [wtr-general] Re: Questiona about Watir in Mac with Firefox 3.6

2010-02-08 Thread Moises Siles
Thanks, I'm using the administrator user, but how can I be sure that I have
already installed the jssh plugin, I just downloaded and added in firefox.

Thanks

On Mon, Feb 8, 2010 at 12:43 AM, Angrez Singh  wrote:

> I think you need to install the JSSh plugin in Firefox 3.5 as
> Administrator. Can you make sure you have installed the plugin with
> administrator privileges.
>
> - Angrez
>
>
> On Sat, Feb 6, 2010 at 1:22 PM, Alister Scott wrote:
>
>> Hi,
>>
>> You can use Firefox 3.5 until someone compiles the JSSH add-on for
>> OSX.
>> Alternatively you can take a look at SafariWatir:
>> http://github.com/redsquirrel/safariwatir
>>
>> Cheers,
>>
>> Alister Scott
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Watir General" group.
>> To post to this group, send email to watir-general@googlegroups.com
>> Before posting, please read the following guidelines:
>> http://wiki.openqa.org/display/WTR/Support
>> To unsubscribe from this group, send email to
>> watir-general+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/watir-general
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Watir General" group.
> To post to this group, send email to watir-general@googlegroups.com
> Before posting, please read the following guidelines:
> http://wiki.openqa.org/display/WTR/Support
> To unsubscribe from this group, send email to
> watir-general+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/watir-general
>

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


[wtr-general] Output is displayed two times

2010-02-08 Thread ayyappa
Hi guys  I am new to watir . I am just working on basic concepts(Using
Class ). when i run  the script 2 , i got the output displaying two
times. Can you please any one tell me any fault in my script

Script 1


require 'rubygems'
require 'win32ole'
require 'watir'

class MyClass
def self.some_method
  puts 'something'
end
  end

MyClass.some_method


Script 2

require 'rubygems'
require 'win32ole'
require 'watir'
require 'D:\Waltair scripts\My wokings in waltair\script1.rb'

MyClass.some_method

Output of script 2 is
=
something
something

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


Re: [wtr-general] Help with Modal Dialog boxes !!!!

2010-02-08 Thread Željko Filipin
On Mon, Feb 8, 2010 at 7:03 AM, Rohan Ojha  wrote:
> Has anybody come across some method with which we can work on a modal
dialog window.

Thanks for the screen shot, it always helps.

Did you read this?

http://wiki.openqa.org/display/WTR/Pop+Ups
http://wiki.openqa.org/display/WTR/Modal+Dialogs
http://wiki.openqa.org/display/WTR/New+Browser+Windows

Željko

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


Re: [wtr-general] Fetch Automatic Web Page Attributes

2010-02-08 Thread Željko Filipin
On Sat, Feb 6, 2010 at 10:46 AM, Nishant  wrote:
> Is there any trick or tool that fetch these attributes and save
> in a file.

I am not sure how you would save attributes in a file with this tools (and
would that be more useful than raw html), but take a look:

- Firebug for Firefox: http://getfirebug.com/
- IE developer toolbar for IE (
http://www.microsoft.com/downloads/details.aspx?FamilyID=E59C3964-672D-4511-BB3E-2D5E1DB91038&displaylang=en
)

Other browsers have similar tools.

Željko
--
watir.com - community manager
watirpodcast.com - host

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


Re: [wtr-general] fix funky command line behavior in watir-console

2010-02-08 Thread Željko Filipin
On Fri, Feb 5, 2010 at 8:02 PM, Alan Baird 
wrote:
>  All you need to do is type "irb --noreadline" and command line sanity
will be restored.

Alan,

thanks a lot. This is really helpful.

Željko
--
watir.com - community manager
watirpodcast.com - host

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


Re: [wtr-general] Re: Watir ads at stackoverflow.com

2010-02-08 Thread Željko Filipin
On Mon, Feb 8, 2010 at 12:50 PM, Angrez Singh  wrote:
> Same 15 reputation required. I created stackoverflow account and then
associated it with meta.stackoverflow account but didn't get 100 reputation.
Željko, Any ideas?

No. :)

Maybe you need some reputation at stackoverflow to get some reputation at
meta.stackoverflow, to prevent scams.

Thanks for trying.

Željko

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


Re: [wtr-general] Re: Watir ads at stackoverflow.com

2010-02-08 Thread Angrez Singh
Same 15 reputation required. I created stackoverflow account and then
associated it with meta.stackoverflow account but didn't get 100 reputation.
Željko, Any ideas?

On Mon, Feb 8, 2010 at 3:02 PM, Željko Filipin <
zeljko.fili...@wa-research.ch> wrote:

> On Fri, Feb 5, 2010 at 1:13 PM, Željko Filipin <
> zeljko.fili...@wa-research.ch> wrote:
> > Want to see Watir ads on stackoverflow.com? This answer needs five
> upvotes. Current status: 0/5. http://bit.ly/djPPfj
>
> Current status: 3/5 (60%). Two more votes.
>
>
> Željko
>
> --
> You received this message because you are subscribed to the Google Groups
> "Watir General" group.
> To post to this group, send email to watir-general@googlegroups.com
> Before posting, please read the following guidelines:
> http://wiki.openqa.org/display/WTR/Support
> To unsubscribe from this group, send email to
> watir-general+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/watir-general
>

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


[wtr-general] Re: Help with Modal Dialog boxes !!!!

2010-02-08 Thread GJHmf
Hi,

I had this issue, and was partially what got me to migrate to Watir
from Selenium.  Assuming yours is the same setup as mine, I merely
attached to the open window like any other browser window using the
title.

e.g:  browser = Watir::IE.attach(:title, "Google")

I could then access any elements as normal as I would in the main
browser.

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


[wtr-general] Re: click_no_wait fails when multiple tabs are open in IE7

2010-02-08 Thread Jarmo Pertman
Hello.

unique_number is an method for Watir::Element and it's declaration is
(for Watir 1.6.2) at element.rb on line 88 - in short, it is just a
wrapper for ole_object.invoke('uniqueNumber').

For debugging the reason of the failing of click_no_wait, I'd suggest
you to modify method called eval_in_spawned_process which is declared
in page_container.rb on line 50. Instead of line:
exec_string = "start rubyw -e #{(load_path_code + '; ' +
ruby_code).inspect}"

try:
exec_string = "ruby -e #{(load_path_code + '; ' + ruby_code).inspect}"

Then you should see the error message (if any) on your console.

If that doesn't help, then you could also add this line just before
system(exec_string):
File.open("c:/click_no_wait.txt", "w") {|f| f.puts exec_string}

Now open the text file and execute this long command from your command
line directly to see if you get any error messages or if anything
happens. You could modify this command to output some additional debug
information like browser url, browser title or html or whatsoever so
you know that it can attach to correct window (and not to that other
tab for example).

Hopefully it helps.

Jarmo


On Feb 5, 8:50 pm, Alan Baird  wrote:
> Yeah...I know, you all probably are rolling your eyes already about another 
> click_no_wait problem, but this isn't a problem, it's a statement.  I don't 
> know how to fix it but my co-worker James and I just spent a while trying to 
> figure out why click_no_wait wasn't working in his script.  To make a long 
> story short, the problem was that he had another tab open in the window he 
> was trying to perform click_no_wait on.  Closing that tab caused the script 
> to work perfectly.
>
> I did a little search first and couldn't find anyone else that had run across 
> this so I'm sending it to the list as a sort of public service announcement.  
> I would try and troubleshoot this further but I am mystified by the following 
> in click_no_wait:
>
>   object = "#{self.class}.new(self, :unique_number, #{self.unique_number})"
>   @page_container.eval_in_spawned_process(object + ".click!")
>
> Where does unique_number come from anyway?  It doesn't appear to be a Watir 
> method and I couldn't find it in Kernel, Class or Object classes in Ruby.  
> Anyway, I imagine it has something to do with the fact that IE can't find the 
> object to click on in the spawned process because it can't choose between the 
> two pages...but, that's just a guess.  It could be specific to my webpage as 
> well.
>
> The moral of the story is, if click_no_wait isn't working for you in IE7, it 
> may be because you have another tab open.
>
> Alan
>
> This email message and any attachments are for the sole use of the intended 
> recipients and may contain proprietary and/or confidential information which 
> may be privileged or otherwise protected from disclosure. Any unauthorized 
> review, use, disclosure or distribution is prohibited. If you are not an 
> intended recipient, please contact the sender by reply email and destroy the 
> original message and any copies of the message as well as any attachments to 
> the original message.

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


[wtr-general] Re: Watir ads at stackoverflow.com

2010-02-08 Thread Željko Filipin
On Fri, Feb 5, 2010 at 1:13 PM, Željko Filipin <
zeljko.fili...@wa-research.ch> wrote:
> Want to see Watir ads on stackoverflow.com? This answer needs five
upvotes. Current status: 0/5. http://bit.ly/djPPfj

Current status: 3/5 (60%). Two more votes.

Željko

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general