Re: [wtr-general] Please help me with watir-ruby script

2010-11-20 Thread Angrez Singh
can you go through the unit tests for clicking javascript pop ups in
firefox. It should be in [watir installation directory]/firewatir/unittests
or something like this.
- Angrez

On Tue, Nov 16, 2010 at 6:26 PM, robin dsouza  wrote:

> I used this function
>
> def startClicker( button , waitTime = 3)
> w = WinClicker.new
> longName = ie.dir.gsub("/" , "\\" )
> shortName = w.getShortFileName(longName)
> c = "start rubyw #{shortName }\\watir\\clickJSDialog.rb #{button
> }#{ waitTime} "
> puts "Starting #{c}"
> w.winsystem(c )
> w=nil
> end
>
> and called the function when pop up was appeared
> startClicker("OK")
>
> which did not work.. it gave  a error as
> C:/Rubyscripts/new/RegistrationFatcowIE_priya.rb:16:in `startClicker':
> uninitialized constant WinClicker (NameError)
>
> Do i have use different require for WinClicker for FireFox?
>
>
> On Tue, Nov 16, 2010 at 6:11 PM, Basim Baassiri  wrote:
>
>> without any code that you've written or html, no one in this forum will be
>> able to help other than refer you to the documentation
>>
>> http://watir.com/documentation/
>>
>>
>> On Tue, Nov 16, 2010 at 7:28 AM, Robin D'Souza wrote:
>>
>>> Please help me with code for javascript pop up confirmation box for
>>> Fire Fox to click "OK" button
>>>
>>> --
>>> 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
>

-- 
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] Please help me with watir-ruby script

2010-11-16 Thread robin dsouza
I used this function

def startClicker( button , waitTime = 3)
w = WinClicker.new
longName = ie.dir.gsub("/" , "\\" )
shortName = w.getShortFileName(longName)
c = "start rubyw #{shortName }\\watir\\clickJSDialog.rb #{button }#{
waitTime} "
puts "Starting #{c}"
w.winsystem(c )
w=nil
end

and called the function when pop up was appeared
startClicker("OK")

which did not work.. it gave  a error as
C:/Rubyscripts/new/RegistrationFatcowIE_priya.rb:16:in `startClicker':
uninitialized constant WinClicker (NameError)

Do i have use different require for WinClicker for FireFox?


On Tue, Nov 16, 2010 at 6:11 PM, Basim Baassiri  wrote:

> without any code that you've written or html, no one in this forum will be
> able to help other than refer you to the documentation
>
> http://watir.com/documentation/
>
>
> On Tue, Nov 16, 2010 at 7:28 AM, Robin D'Souza wrote:
>
>> Please help me with code for javascript pop up confirmation box for
>> Fire Fox to click "OK" button
>>
>> --
>> 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] Please help me with watir-ruby script

2010-11-16 Thread Željko Filipin
On Tue, Nov 16, 2010 at 1:28 PM, Robin D'Souza 
wrote:
> Please help me with code for javascript pop up confirmation box for
> Fire Fox to click "OK" button

Take a look at this:

http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups

Ž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


Re: [wtr-general] Please help me with watir-ruby script

2010-11-16 Thread Basim Baassiri
without any code that you've written or html, no one in this forum will be
able to help other than refer you to the documentation

http://watir.com/documentation/

On Tue, Nov 16, 2010 at 7:28 AM, Robin D'Souza wrote:

> Please help me with code for javascript pop up confirmation box for
> Fire Fox to click "OK" button
>
> --
> 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


[wtr-general] Please help me with watir-ruby script

2010-11-16 Thread Robin D'Souza
Please help me with code for javascript pop up confirmation box for
Fire Fox to click "OK" button

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