[Wtr-general] (no subject)

2007-04-23 Thread SHALINI GUPTA

[EMAIL PROTECTED]
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] command to get a future date

2007-04-23 Thread Maloy kanti debnath
hi people,
  In my application i have a calander and i need to select a that 
is 7 days from today (ie 30th April) . Now the question is . Is there any 
command by which i can directly get this future date ? .. if there is no 
direct command, then i will have to try writing a piece of code, which might be 
quite tediou, for this.

thanks in advance,
Maloy
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] How to save file via File download dialog

2007-04-23 Thread Ajitesh Srinetra

You can use

ie.fileField(:id, 'file_name').set(D:/Files/filename.txt)

Ajitesh Srinetra
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] command to get a future date

2007-04-23 Thread Charley Baker

Use ruby's date class.

d = Date.today
d = d + 7
puts d.day()

-Charley

On 4/23/07, Maloy kanti debnath [EMAIL PROTECTED] wrote:


hi people,
  In my application i have a calander and i need to select a
that is 7 days from today (ie 30th April) . Now the question is . Is
there any command by which i can directly get this future date ? .. if
there is no direct command, then i will have to try writing a piece of code,
which might be quite tediou, for this.

thanks in advance,
Maloy
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] Watir T-shirt

2007-04-23 Thread Jason
I ran this by Bret and he suggested posting it on the Wtr-General to get some 
feedback from others.  So please let me know what you think.  

I would like to have a Watir t-shirt to spread the word about Watir.  We can 
put these up on the website for people to purchase them.  Here is what I 
envision- You will have a choice of either a black or white t-shirt (both 
short-sleeve and long-sleeve).  On the front we can have the Watir logo on the 
left breast area, and on the back a block of code.  I created this class below 
as a possible example.  

require Watir

class TC_future_of_automated_test_testing

def test_Watir_is_the_test_tool_of_the_future
 ie.goto(@start_page)
 assert_equal('Watir- The Future of Automated Testing', ie.title)
end

def setup
 @start_page= 'http://wtr.rubyforge.com'
end

end

Please remember that this is a t-shirt and aimed and increasing Watir 
usage/awareness to others.  Let me know what you think and if you'd be 
interested in one.

Cheers,
Jason
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Watir T-shirt

2007-04-23 Thread Chris McMahon
On 4/23/07, Jason [EMAIL PROTECTED] wrote:
 I ran this by Bret and he suggested posting it on the Wtr-General to get some 
 feedback from others.  So please let me know what you think.


I'd wear it to next year's http://mtnwestruby.org, so no hurry.  :)
But I like the idea.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Watir T-shirt

2007-04-23 Thread Paul Rogers

I hope you try the code before making the t-shirts ;-)
- Original Message -
From: Jason [EMAIL PROTECTED]
Date: Monday, April 23, 2007 4:48 pm
Subject: [Wtr-general] Watir T-shirt

 I ran this by Bret and he suggested posting it on the Wtr-General 
 to get some feedback from others.  So please let me know what you 
 think.  
 
 I would like to have a Watir t-shirt to spread the word about 
 Watir.  We can put these up on the website for people to purchase 
 them.  Here is what I envision- You will have a choice of either a 
 black or white t-shirt (both short-sleeve and long-sleeve).  On 
 the front we can have the Watir logo on the left breast area, and 
 on the back a block of code.  I created this class below as a 
 possible example.  
 
 require Watir
 
 class TC_future_of_automated_test_testing
 
def test_Watir_is_the_test_tool_of_the_future
 ie.goto(@start_page)
 assert_equal('Watir- The Future of Automated Testing', 
 ie.title)end
 
def setup
 @start_page= 'http://wtr.rubyforge.com'
end
 
 end
 
 Please remember that this is a t-shirt and aimed and increasing 
 Watir usage/awareness to others.  Let me know what you think and 
 if you'd be interested in one.
 
 Cheers,
 Jason
 ___
 Wtr-general mailing list
 Wtr-general@rubyforge.org
 http://rubyforge.org/mailman/listinfo/wtr-general
 
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Watir T-shirt

2007-04-23 Thread Walter Kruse
I'm in.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jason
Sent: 24 April 2007 12:48 AM
To: wtr-general@rubyforge.org
Subject: [Wtr-general] Watir T-shirt

I ran this by Bret and he suggested posting it on the Wtr-General to get
some feedback from others.  So please let me know what you think.  

I would like to have a Watir t-shirt to spread the word about Watir.  We
can put these up on the website for people to purchase them.  Here is
what I envision- You will have a choice of either a black or white
t-shirt (both short-sleeve and long-sleeve).  On the front we can have
the Watir logo on the left breast area, and on the back a block of code.
I created this class below as a possible example.  

require Watir

class TC_future_of_automated_test_testing

def test_Watir_is_the_test_tool_of_the_future
 ie.goto(@start_page)
 assert_equal('Watir- The Future of Automated Testing',
ie.title)
end

def setup
 @start_page= 'http://wtr.rubyforge.com'
end

end

Please remember that this is a t-shirt and aimed and increasing Watir
usage/awareness to others.  Let me know what you think and if you'd be
interested in one.

Cheers,
Jason
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
**
Everything in this e-mail and attachments relating to the official business of 
MultiChoice Africa is proprietary to 
the company. Any view or opinion expressed in this message may be the view of 
the individual and should not automatically 
be ascribed to the company.  If you are not the intended recipient, you may not 
peruse, use, disseminate, distribute or 
copy this message. If you have received this message in error, please notify 
the sender immediately by email, facsimile 
or telephone and destroy the original message.
**
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Watir T-shirt

2007-04-23 Thread SHALINI GUPTA

i'm in

On 4/24/07, Walter Kruse [EMAIL PROTECTED] wrote:


I'm in.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jason
Sent: 24 April 2007 12:48 AM
To: wtr-general@rubyforge.org
Subject: [Wtr-general] Watir T-shirt

I ran this by Bret and he suggested posting it on the Wtr-General to get
some feedback from others.  So please let me know what you think.

I would like to have a Watir t-shirt to spread the word about Watir.  We
can put these up on the website for people to purchase them.  Here is
what I envision- You will have a choice of either a black or white
t-shirt (both short-sleeve and long-sleeve).  On the front we can have
the Watir logo on the left breast area, and on the back a block of code.
I created this class below as a possible example.

require Watir

class TC_future_of_automated_test_testing

def test_Watir_is_the_test_tool_of_the_future
 ie.goto(@start_page)
 assert_equal('Watir- The Future of Automated Testing',
ie.title)
end

def setup
 @start_page= 'http://wtr.rubyforge.com'
end

end

Please remember that this is a t-shirt and aimed and increasing Watir
usage/awareness to others.  Let me know what you think and if you'd be
interested in one.

Cheers,
Jason
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

**
Everything in this e-mail and attachments relating to the official
business of MultiChoice Africa is proprietary to
the company. Any view or opinion expressed in this message may be the view
of the individual and should not automatically
be ascribed to the company.  If you are not the intended recipient, you
may not peruse, use, disseminate, distribute or
copy this message. If you have received this message in error, please
notify the sender immediately by email, facsimile
or telephone and destroy the original message.

**
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] NoMethodError: undefined method `assert_equal'

2007-04-23 Thread SHALINI GUPTA

Hi Ajitesh,

I am Shalini gupta.Hope u'll be fine.I am also working on watir.I have
problem with java popups.i am able to handle that.but how to get text on
popup i dont know.please help me regarding this.Thanks in Advance.

Regards and Thanks
Shalini Gupta

On 4/23/07, Ajitesh Srinetra [EMAIL PROTECTED] wrote:


Adding

require 'test/unit/assertions'
include Test::Unit::Assertions

will help.A lot of examples for assertions is provided in unit tests
examples .Please follow them in your testcases

Ajitesh



___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Watir T-shirt

2007-04-23 Thread sathya shankar
+1

Sathya
--- Jason [EMAIL PROTECTED] wrote:

 I ran this by Bret and he suggested posting it on
 the Wtr-General to get some feedback from others. 
 So please let me know what you think.  
 
 I would like to have a Watir t-shirt to spread the
 word about Watir.  We can put these up on the
 website for people to purchase them.  Here is what I
 envision- You will have a choice of either a black
 or white t-shirt (both short-sleeve and
 long-sleeve).  On the front we can have the Watir
 logo on the left breast area, and on the back a
 block of code.  I created this class below as a
 possible example.  
 
 require Watir
 
 class TC_future_of_automated_test_testing
 
 def test_Watir_is_the_test_tool_of_the_future
  ie.goto(@start_page)
  assert_equal('Watir- The Future of
 Automated Testing', ie.title)
 end
 
 def setup
  @start_page= 'http://wtr.rubyforge.com'
 end
 
 end
 
 Please remember that this is a t-shirt and aimed and
 increasing Watir usage/awareness to others.  Let me
 know what you think and if you'd be interested in
 one.
 
 Cheers,
 Jason
 ___
 Wtr-general mailing list
 Wtr-general@rubyforge.org
 http://rubyforge.org/mailman/listinfo/wtr-general
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Watir and smartclient

2007-04-23 Thread Sadeesh Vinoth
Hi Angrez,

Please find the source of web page developed using smartlcient,
Please let me know weather watir can be used for this.

Source.

!
SmartClient SDK
Component Data Binding example

Copyright 2001-2007 Isomorphic Software, Inc. (www.isomorphic.com)
--


HEADTITLE
SmartClient SDK - Component Data Binding example
/TITLE/HEADSCRIPTwindow.isomorphicDir='../../isomorphic/';/SCRIPT
SCRIPT 
SRC=../../isomorphic/system/modules/ISC_Core.js?isc_version=5.6.js/SCRIPTSCRIPTisc._lastModule='Core';/SCRIPT
SCRIPT 
SRC=../../isomorphic/system/modules/ISC_Foundation.js?isc_version=5.6.js/SCRIPTSCRIPTisc._lastModule='Foundation';/SCRIPT
SCRIPT 
SRC=../../isomorphic/system/modules/ISC_Containers.js?isc_version=5.6.js/SCRIPTSCRIPTisc._lastModule='Containers';/SCRIPT
SCRIPT 
SRC=../../isomorphic/system/modules/ISC_Grids.js?isc_version=5.6.js/SCRIPTSCRIPTisc._lastModule='Grids';/SCRIPT

SCRIPT 
SRC=../../isomorphic/system/modules/ISC_Forms.js?isc_version=5.6.js/SCRIPTSCRIPTisc._lastModule='Forms';/SCRIPT
SCRIPT 
SRC=../../isomorphic/system/modules/ISC_DataBinding.js?isc_version=5.6.js/SCRIPTSCRIPTisc._lastModule='DataBinding';/SCRIPT
SCRIPT 
SRC=../../isomorphic/skins/SmartClient/load_skin.js?isc_version=5.6.js/SCRIPT

BODY BGCOLOR=#D3D3D3SCRIPT


// load datasources
isc.DataSource.create({
serverType:sql,
fields:{
itemID:{primaryKey:true, hidden:true, type:sequence, name:itemID},
itemName:{
title:Item,
required:true,
type:text,
length:128,
name:itemName
},
SKU:{
title:SKU,
required:true,
type:text,
length:10,
name:SKU
},
description:{
title:Description,
type:text,
length:2000,
name:description
},
category:{
title:Category,
required:true,
type:text,
length:128,
foreignKey:supplyCategory.itemName,
name:category
},
units:{
title:Units,
valueMap:[Roll, Ea, Pkt, Set, Tube, Pad, Ream, Tin, 
Bag, Ctn, Box],
type:enum,
length:5,
name:units
},
unitCost:{
title:Unit Cost,
required:true,
type:float,
validators:[
{
type:floatRange,
min:0,
errorMessage:Please enter a valid (positive) cost
},
{
type:floatPrecision,
errorMessage:The maximum allowed precision is 2,
precision:2
}
],
name:unitCost
},
inStock:{title:In Stock, type:boolean, name:inStock},
nextShipment:{title:Next Shipment, type:date, name:nextShipment}
},
tableName:supplyItem,
testFileName:supplyItem.data.xml,
ID:supplyItem
})

isc.DataSource.create({
serverType:sql,
fields:{
Name:{
title:Name,
type:text,
length:128,
name:Name
},
EmployeeId:{title:Employee ID, primaryKey:true, required:true, 
type:integer, 
name:EmployeeId},
ReportsTo:{title:Manager, required:true, type:integer, 
rootValue:1, 
   foreignKey:employees.EmployeeId,name:ReportsTo},
Job:{
title:Title,
type:text,
length:128,
name:Job
},
Email:{
title:Email,
type:text,
length:128,
name:Email
},
EmployeeType:{
title:Employee Type,
type:text,
length:40,
name:EmployeeType
},
EmployeeStatus:{
title:Status,
type:text,
length:40,
name:EmployeeStatus
},
Salary:{title:Salary, type:float, name:Salary},
OrgUnit:{
title:Org Unit,
type:text,
length:128,
name:OrgUnit
},
Gender:{
title:Gender,
valueMap:[male, female],
type:text,
length:7,
name:Gender
},
MaritalStatus:{
title:Marital Status,
valueMap:[married, single],
type:text,
length:10,
name:MaritalStatus
}
},
tableName:employeeTable,
testFileName:employees.data.xml,
ID:employees
})

isc.DataSource.create({
serverType:sql,
fields:{
commonName:{title:Animal, type:text, name:commonName},
scientificName:{title:Scientific Name, primaryKey:true, 
required:true, type:text,