[wtr-general] Re: Browse an Image

2009-10-21 Thread Amit Kulkarni
Thanks a lot for the link.
Now i can upload  an image by using the following command
 Browser.file_field(:name, photo).set(path name i.e. C:\\abc\\abc.jpg)

Please dont forget to enter double slash.
:-)

On Thu, Oct 15, 2009 at 1:40 PM, Željko Filipin 
zeljko.fili...@wa-research.ch wrote:

 On Thu, Oct 15, 2009 at 10:07 AM, Amit amitkkulkarni...@gmail.com wrote:
  input id=product_photo class=file type=file size=20
  name=product[photo]/

 http://wiki.openqa.org/display/WTR/File+Uploads

 Željko
 --
 http://watirpodcast.com/


 


--~--~-~--~~~---~--~~
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] Problem with radio button

2009-10-21 Thread Amit

Hello,
I need some help regarding radio button.
In my application i created a poll named Test along with other polls
There are two radio buttons beside each poll namely Update and Delete
Now here i want to click on Delete radio button beside Test poll.
How do i access?

This is its html.
input id=act2_165_delete type=radio value=delete name=act2
[165]/

Now while testing i dont know when a new poll is created what id it
will have.
I know one thing that the title is Test and i want to click on that
delete radio having title Test.
How do i access that particular radio button?

--~--~-~--~~~---~--~~
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: Need help about startClicker

2009-10-21 Thread Željko Filipin
On Wed, Oct 21, 2009 at 6:37 AM, Bindhu udayarekha2...@gmail.com wrote:
 I need to skip the pop up when ever it appear.

And the problem is?

Have you read this?

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

Željko
--
http://watirpodcast.com/

--~--~-~--~~~---~--~~
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: Browse an Image

2009-10-21 Thread Željko Filipin
On Wed, Oct 21, 2009 at 9:06 AM, Amit Kulkarni amitkkulkarni...@gmail.com
wrote:
  Browser.file_field(:name, photo).set(path name i.e. C:\\abc\\abc.jpg)
 Please dont forget to enter double slash.

If you use single quotes, I think you do not need double slash:

browser.file_field(:name, photo).set('C:\abc.jpg')

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



[wtr-general] Re: Problem with radio button

2009-10-21 Thread Željko Filipin
On Wed, Oct 21, 2009 at 9:26 AM, Amit amitkkulkarni...@gmail.com wrote:
 Now here i want to click on Delete radio button beside Test poll.

Can you post html that includes radio button and Test text? We could help
more if we had that.

 input id=act2_165_delete type=radio value=delete name=act2
 [165]/

I think you said you do not know id, but if you know it, this should work:

browser.radio(:id, act2_165_delete).set

More information:

http://wiki.openqa.org/display/WTR/Radio+Buttons

Željko
--
http://watirpodcast.com/

--~--~-~--~~~---~--~~
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: Has anyone tried using AutoIt to handle unexpected Popup windows

2009-10-21 Thread Željko Filipin
On Wed, Oct 21, 2009 at 9:59 AM, Pallavi Sharma write2pall...@gmail.com
wrote:
 as WinWait REGEXPTITLE:.* but it doesn't work.

When I was playing with autoit, I vaguely remember that regular expressions
worked only if I had full Autoit installed on the machine. Watir installs
only subset of Autoit functionality, and I think regular expressions are not
supported there. Try installing Autoit, it should fix it.

Željko
--
http://watirpodcast.com/

--~--~-~--~~~---~--~~
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: Has anyone tried using AutoIt to handle unexpected Popup windows

2009-10-21 Thread Pallavi Sharma
I have full installed AutoIT on my system Zeljko, still this doesn't work.
Sharing the page and the script.

I have used two methods to handle unexpected popups, winclicker and autoit

I used with winclicker windowtitle as // it didn't worked

with auto it REGEXPTITLE:.* it also didn't worked.


Please let me know about it.

The script runs from command line HandlePopup.rb windowtitle Buttontext
Timeout




On Wed, Oct 21, 2009 at 1:51 PM, Željko Filipin 
zeljko.fili...@wa-research.ch wrote:

 On Wed, Oct 21, 2009 at 9:59 AM, Pallavi Sharma write2pall...@gmail.com
 wrote:
  as WinWait REGEXPTITLE:.* but it doesn't work.

 When I was playing with autoit, I vaguely remember that regular expressions
 worked only if I had full Autoit installed on the machine. Watir installs
 only subset of Autoit functionality, and I think regular expressions are not
 supported there. Try installing Autoit, it should fix it.

 Željko
 --
 http://watirpodcast.com/


 


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










HandlePopUp.rb
Description: Binary data


[wtr-general] Re: Problem with radio button

2009-10-21 Thread Amit

tr
tdTest/td
tdUnpublished/td
td class=actions
label for=Update
input id=act2_165_update type=radio value=update name=act2
[165]/
Update
/label
label for=del2
input id=act2_165_delete type=radio value=delete name=act2
[165]/
Delete
/label
/td

This is html which contains the string Test.
Yes i can access through an id.But it is not going to be same all the
time.It is always going to be changed.
But one thing i know is that my poll title i.e. Test.So i want to
access the radio button which contains the title Test.

GUI appearance is as follows:
POLLStatus   Actions
TestUnpublished Here contains 2 radio
buttons i.e. Update and Delete

On Oct 21, 1:19 pm, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
 On Wed, Oct 21, 2009 at 9:26 AM, Amit amitkkulkarni...@gmail.com wrote:
  Now here i want to click on Delete radio button beside Test poll.

 Can you post html that includes radio button and Test text? We could help
 more if we had that.

  input id=act2_165_delete type=radio value=delete name=act2
  [165]/

 I think you said you do not know id, but if you know it, this should work:

 browser.radio(:id, act2_165_delete).set

 More information:

 http://wiki.openqa.org/display/WTR/Radio+Buttons

 Željko
 --http://watirpodcast.com/
--~--~-~--~~~---~--~~
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: Has anyone tried using AutoIt to handle unexpected Popup windows

2009-10-21 Thread Željko Filipin
On Wed, Oct 21, 2009 at 10:46 AM, Pallavi Sharma write2pall...@gmail.com
wrote:
 I have full installed AutoIT on my system Zeljko, still this doesn't work.

Did you ask at Autoit forum? This sounds to me like Autoit problem, not
really Watir related.

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



[wtr-general] Re: Downloading File and FireWatir

2009-10-21 Thread Pallavi Sharma
Zeljko
Sorry i forgot to ask in the earlier mail about the steps for How to put a
post on wiki

I have never done that before.

So please do let me know.

Thanks
Pallavi.

On Wed, Oct 21, 2009 at 10:34 AM, Pallavi Sharma write2pall...@gmail.comwrote:

 Sure Zeljko
 I will do that :)


 On Tue, Oct 20, 2009 at 4:43 PM, Željko Filipin 
 zeljko.fili...@wa-research.ch wrote:

 On Tue, Oct 20, 2009 at 12:33 PM, Pallavi Sharma write2pall...@gmail.com
 wrote:
  I am done with the solution. Its also atttached with the mail.

 It will be hard for other people to find your code here. Would you please
 post it at wiki? Please let me know if you need any help with that.

 http://wiki.openqa.org/display/WTR/File+Downloads

 Željko
 --
 http://watirpodcast.com/


 



--~--~-~--~~~---~--~~
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: Downloading File and FireWatir

2009-10-21 Thread Željko Filipin
On Wed, Oct 21, 2009 at 10:53 AM, Pallavi Sharma write2pall...@gmail.com
wrote:
 Sorry i forgot to ask in the earlier mail about the steps for How to put
a post on wiki

- if you do not have openqa.org account, go to
http://openqa.org/sass/create!input.action and create it
- go to http://wiki.openqa.org/display/WTR/File+Downloads
- log in if not already logged in
- click `Edit` (top of the screen, left hand side)
- edit page
- enter comment describing the change (bottom of the page)
- click `Save` (bottom of the page, right hand side)

If you have further questions, ask.

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



[wtr-general] Re: Downloading File and FireWatir

2009-10-21 Thread Željko Filipin
On Wed, Oct 21, 2009 at 10:53 AM, Pallavi Sharma write2pall...@gmail.com
wrote:
 Sorry i forgot to ask in the earlier mail about the steps for How to put
a post on wiki

I knew we have instructions somewhere. :)

http://wiki.openqa.org/display/WTR/How+Can+I+Help

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



[wtr-general] Re: Has anyone tried using AutoIt to handle unexpected Popup windows

2009-10-21 Thread Pallavi Sharma
I know, i am going to ask there. I know its not a watir issue, just
wondering whether someone ever tried this here in this forum.
recovery scenarios are a part of any automation framework.

I will try again and if i get a solution will post it here for further help.

On Wed, Oct 21, 2009 at 2:21 PM, Željko Filipin 
zeljko.fili...@wa-research.ch wrote:

 On Wed, Oct 21, 2009 at 10:46 AM, Pallavi Sharma write2pall...@gmail.com
 wrote:
  I have full installed AutoIT on my system Zeljko, still this doesn't
 work.

 Did you ask at Autoit forum? This sounds to me like Autoit problem, not
 really Watir related.

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



[wtr-general] Re: Has anyone tried using AutoIt to handle unexpected Popup windows

2009-10-21 Thread Ankur Gera
Hi Pallavi,

Try to use the code which i provided for handling pop-up's through AutoIt.

Thanks  Regards,
Ankur Gera
TCS

--~--~-~--~~~---~--~~
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: Has anyone tried using AutoIt to handle unexpected Popup windows

2009-10-21 Thread Ankur Gera
Hi Pallavi,

Below is the respective code :-

require 'watir'
require 'win32ole'

#Supply AutoItX3 as an argument to the constructor of WIN32OLE
#for handling pop-up windows using WIN32OLE objects.WIN32OLE will act as an
interface
#for handling pop-up windows using AutoItX3 functions.
ai = WIN32OLE.new(AutoItX3.Control)

#New IE Browser window
ie=Watir::IE.new

#Go to AutoIt website
ie.goto(http://www.autoitscript.com/autoit3/downloads.shtml;)

#Click Download AutoIt image
ie.image(:src,/download_autoit/).click_no_wait


#Wait for the pop-up window with the specified title supplied to come
res=ai.WinWait(File Download - Security Warning,,30)
puts res  #Used for debugging purpose

#Always try to Activate the pop-up window before using ControlClick fn()
res=ai.WinActivate(File Download - Security Warning)
puts res  #Used for debugging purpose

#Click on the specified control on the pop-up window
res=ai.ControlClick(File Download - Security Warning,,Save)
puts res  #Used for debugging purpose


puts\n #Place the cursor on the next line
#Wait for the pop-up window with the specified title supplied to come
res=ai.WinWait(Save As,,30)
puts res  #Used for debugging purpose

#Always try to Activate the pop-up window before using ControlClick fn()
res=ai.WinActivate(Save As)
puts res  #Used for debugging purpose

#Send the path in the pop-up window where you want to store the respective
file
res=ai.ControlSend(Save As,,Edit1, C:\AutoItV3.exe)
puts res  #Used for debugging purpose

#Click on the specified control on the pop-up window
res=ai.ControlClick(Save As,,Save)
puts res  #Used for debugging purpose

#Close the IE Browser window
ie.close

Thanks  Regards,
Ankur Gera
TCS

--~--~-~--~~~---~--~~
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: Problem with radio button

2009-10-21 Thread Željko Filipin
On Wed, Oct 21, 2009 at 10:35 AM, Amit amitkkulkarni...@gmail.com wrote:
 tdTest/td
 input type=radio /

Does this work?

browser.button(:after?, browser.cell(:text, Test)).set

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



[wtr-general] Re: Downloading File and FireWatir

2009-10-21 Thread Pallavi Sharma
Zeljko
I updated it, but i guess my script is causing some error on the page its
coming in Pink color.

How do i rectify that?

Let me know

Pallavi.



On Wed, Oct 21, 2009 at 2:41 PM, Željko Filipin 
zeljko.fili...@wa-research.ch wrote:

 On Wed, Oct 21, 2009 at 10:53 AM, Pallavi Sharma write2pall...@gmail.com
 wrote:
  Sorry i forgot to ask in the earlier mail about the steps for How to put
 a post on wiki

 I knew we have instructions somewhere. :)

 http://wiki.openqa.org/display/WTR/How+Can+I+Help

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



[wtr-general] Re: Has anyone tried using AutoIt to handle unexpected Popup windows

2009-10-21 Thread Pallavi Sharma
Ankur
I already know the code to handle a popup window via autoit if you know the
window tile.

Do you have an idea about handling a popup where i dont know what is the
windowtitle?

Means handling unexpected popup window, which will like handle pop up
whatever may be the window title.

If you have that then please share else, this all code is available with
watir wiki itself.


Pallavi.

On Wed, Oct 21, 2009 at 2:59 PM, Ankur Gera ankurg...@gmail.com wrote:


 Hi Pallavi,

 Below is the respective code :-

 require 'watir'
 require 'win32ole'

 #Supply AutoItX3 as an argument to the constructor of WIN32OLE
 #for handling pop-up windows using WIN32OLE objects.WIN32OLE will act as an
 interface
 #for handling pop-up windows using AutoItX3 functions.
 ai = WIN32OLE.new(AutoItX3.Control)

 #New IE Browser window
 ie=Watir::IE.new

 #Go to AutoIt website
 ie.goto(http://www.autoitscript.com/autoit3/downloads.shtml;)

 #Click Download AutoIt image
 ie.image(:src,/download_autoit/).click_no_wait


 #Wait for the pop-up window with the specified title supplied to come
 res=ai.WinWait(File Download - Security Warning,,30)
 puts res  #Used for debugging purpose

 #Always try to Activate the pop-up window before using ControlClick fn()
 res=ai.WinActivate(File Download - Security Warning)
 puts res  #Used for debugging purpose

 #Click on the specified control on the pop-up window
 res=ai.ControlClick(File Download - Security Warning,,Save)
 puts res  #Used for debugging purpose


 puts\n #Place the cursor on the next line
 #Wait for the pop-up window with the specified title supplied to come
 res=ai.WinWait(Save As,,30)
 puts res  #Used for debugging purpose

 #Always try to Activate the pop-up window before using ControlClick fn()
 res=ai.WinActivate(Save As)
 puts res  #Used for debugging purpose

 #Send the path in the pop-up window where you want to store the respective
 file
 res=ai.ControlSend(Save As,,Edit1, C:\AutoItV3.exe)
 puts res  #Used for debugging purpose

 #Click on the specified control on the pop-up window
 res=ai.ControlClick(Save As,,Save)
 puts res  #Used for debugging purpose

 #Close the IE Browser window
 ie.close

 Thanks  Regards,
 Ankur Gera
 TCS

 


--~--~-~--~~~---~--~~
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: Has anyone tried using AutoIt to handle unexpected Popup windows

2009-10-21 Thread Ankur Gera
Hi Pallavi,

Use the AutoIt software(AutoIt Window Info) ,  you will get the info about
class of that pop-up window.What i have seen is that , this class remains
constant for almost all of the pop-up's , try to use this as an argument in
place of title.

Thanks  Regards,
Ankur Gera
TCS




--~--~-~--~~~---~--~~
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: Cannot get truncated text of a cell in a table

2009-10-21 Thread Željko Filipin
On Mon, Oct 19, 2009 at 11:48 PM, Shlomit Gazit shlomitpatr...@gmail.com
wrote:
 When I am trying to locate the cell for .link,

What are you trying to do? Click all links in the table? This will flash all
links, you can work from there:

browser.table(:class, tableLeftNav).links.each {|link| link.flash}

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



[wtr-general] Re: Has anyone tried using AutoIt to handle unexpected Popup windows

2009-10-21 Thread Pallavi Sharma
Yeah you are right about it, I know this, but was looking for something to
do with the using of regular expression in title. Would have helped my
implementation.
Anyways thanks, will try what you have suggested.

Thanks
Pallavi.



On Wed, Oct 21, 2009 at 3:36 PM, Ankur Gera ankurg...@gmail.com wrote:



 Hi Pallavi,

 Use the AutoIt software(AutoIt Window Info) ,  you will get the info about
 class of that pop-up window.What i have seen is that , this class remains
 constant for almost all of the pop-up's , try to use this as an argument in
 place of title.

 Thanks  Regards,
 Ankur Gera
 TCS




 


--~--~-~--~~~---~--~~
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: Has anyone tried using AutoIt to handle unexpected Popup windows

2009-10-21 Thread Ankur Gera
Hi Pallavi,

Welcome.

Thanks  Regards,
Ankur Gera
TCS

--~--~-~--~~~---~--~~
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: Problem with radio button

2009-10-21 Thread Željko Filipin
On Wed, Oct 21, 2009 at 10:50 AM, Željko Filipin 
zeljko.fili...@wa-research.ch wrote:
 browser.button(:after?, browser.cell(:text, Test)).set

My mistake. Try this:

browser.radio(:after?, browser.cell(:text, Test)).click

If that does not work, you can always try xpath:

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

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



[wtr-general] Re: Advanced Firewatir

2009-10-21 Thread Željko Filipin
And this looks useful (from the next post:
http://sticklebackplastic.com/post/2009/10/20/Advanced-FireWatir-e28093-cheat-sheet.aspx
)

browser.helperApps.neverAsk.saveToDisk. I didn’t even know this one
existed, but it’s great. This is a comma separated list of mime types that
will always get saved to disk, so again, I know that I won’t get stuck at
the confirm download prompt. (This is my favourite – previously, we’ve had
to set these up by hand by actually downloading an instance of the file. I’m
very happy to be automating this.)

Željko
--
http://watirpodcast.com/

--~--~-~--~~~---~--~~
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: Problem with radio button

2009-10-21 Thread Amit Kulkarni
Hi Zeljko,
I tried by using the above step but still no success :-(
It pops up a small window saying Please select an operation along with OK
button.
I still cant figure out whats is the problem.

On Wed, Oct 21, 2009 at 4:04 PM, Željko Filipin 
zeljko.fili...@wa-research.ch wrote:

 On Wed, Oct 21, 2009 at 10:50 AM, Željko Filipin 
 zeljko.fili...@wa-research.ch wrote:
  browser.button(:after?, browser.cell(:text, Test)).set

 My mistake. Try this:

 browser.radio(:after?, browser.cell(:text, Test)).click

 If that does not work, you can always try xpath:

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


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



[wtr-general] Re: Problem with radio button

2009-10-21 Thread Željko Filipin
On Wed, Oct 21, 2009 at 12:51 PM, Amit Kulkarni amitkkulkarni...@gmail.com
wrote:
 It pops up a small window saying Please select an operation along with OK
button.

Is the correct radio button flashed if you do this?

browser.radio(:after?, browser.cell(:text, Test)).flash

Maybe you have to fire some javascript event.

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



[wtr-general] Re: cannot register window class in IE8

2009-10-21 Thread Željko Filipin
On Wed, Oct 21, 2009 at 1:01 PM, aidy lewis aidy.le...@googlemail.com
wrote:
 Has anyone received 'cannot register window class' errors when running
 Watir tests in IE8?

All my tests worked just fine in IE8. What version of Windows do you have?

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



[wtr-general] Re: Problem with radio button

2009-10-21 Thread Amit Kulkarni
No it does not flashed the radio button but again it is popping the window.
I dont know why it is getting popped up.


On Wed, Oct 21, 2009 at 4:25 PM, Željko Filipin 
zeljko.fili...@wa-research.ch wrote:

 On Wed, Oct 21, 2009 at 12:51 PM, Amit Kulkarni 
 amitkkulkarni...@gmail.com wrote:
  It pops up a small window saying Please select an operation along with OK
 button.

 Is the correct radio button flashed if you do this?

 browser.radio(:after?, browser.cell(:text, Test)).flash

 Maybe you have to fire some javascript event.


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



[wtr-general] Re: Problem with Checkbox

2009-10-21 Thread Wesley Chen
You can use $ie.checkbox(:id, /rating\[\d+\]/)

Thanks.
Wesley Chen.
For life, the easier, the better.


On Wed, Oct 21, 2009 at 7:02 PM, Amit Kulkarni
amitkkulkarni...@gmail.comwrote:

 Hello,
 I have this html script.
 td width=20%
 input id=rating[65] type=checkbox value=1 name=rating[65]/
 a title=Edit Rating href=/Nikes/ratings/65/edit
 span class=boldRatingsanity1/span
 /a
 /td


 The scenario is i want to click on the checkbox which has title
 Ratingsanity1.
 Now here i can tick the checkbox by using the name method but the no. isn't
 going to be same all the time.
 I tried following code but still no success.
 Please help.
 1: Browser.checkbox(:after?, Browser.cell(:text, Ratingsanity1)).click

 


--~--~-~--~~~---~--~~
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: Problem with Checkbox

2009-10-21 Thread Željko Filipin
On Wed, Oct 21, 2009 at 1:02 PM, Amit Kulkarni amitkkulkarni...@gmail.com
wrote:
 I tried following code but still no success.
 1: Browser.checkbox(:after?, Browser.cell(:text, Ratingsanity1)).click

And what is the error message, if any?

Does this flash what you want?

Browser.cell(:text, Ratingsanity1).flash

Does this work?

Browser.checkbox(:after?, Browser.span(:text, Ratingsanity1)).click

Željko
--
http://watirpodcast.com/

--~--~-~--~~~---~--~~
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: Sai

2009-10-21 Thread Željko Filipin
On Thu, Oct 8, 2009 at 7:07 AM, Bret Pettichord bpettich...@gmail.com
wrote:
 Right now the core developers for the (IE)Watir/FireWatir team are
 - Charley Baker
 - Angrez Singh
 - Jari Bakken
 - Bret Pettichord

 I'm not sure who the members of the other teams are.

Would you say this is correct?

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

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



[wtr-general] Re: Has anyone tried using AutoIt to handle unexpected Popup windows

2009-10-21 Thread al3kc


Do you create separate thread for check_for_popup method?
--~--~-~--~~~---~--~~
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: Problem with Checkbox

2009-10-21 Thread Amit Kulkarni
I tried using command $Browser.checkbox(:id, /rating\[\d+\]/).set but i got
error which is as follows:
You have  nil object when you didn't expect it!
  The error occurred while evaluating nil.checkbox (NoMethodError)
  ./step_definitions/update_feature_steps.rb:23:in `/^i click on the
created rating$/'

I tried with the below codes
1:Browser.cell(:text, Ratingsanity1).flash
Nothing is getting flashed no error is displayed and next step is executed.

2:Browser.checkbox(:after?, Browser.span(:text, Ratingsanity1)).click
Here no check box is getting clicked but next step is executed.
I also tried using .set method but no success.

I am not getting what is wrong.Please suggest.


On Wed, Oct 21, 2009 at 4:36 PM, Željko Filipin 
zeljko.fili...@wa-research.ch wrote:

 On Wed, Oct 21, 2009 at 1:02 PM, Amit Kulkarni amitkkulkarni...@gmail.com
 wrote:
  I tried following code but still no success.
  1: Browser.checkbox(:after?, Browser.cell(:text, Ratingsanity1)).click

 And what is the error message, if any?

 Does this flash what you want?

 Browser.cell(:text, Ratingsanity1).flash

 Does this work?

 Browser.checkbox(:after?, Browser.span(:text, Ratingsanity1)).click

 Željko
 --
 http://watirpodcast.com/



 


--~--~-~--~~~---~--~~
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: Problem with Checkbox

2009-10-21 Thread Željko Filipin
Does this flash what you want?

Browser.span(:text, Ratingsanity1).flash

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



Fwd: [wtr-general] Re: Problem with radio button

2009-10-21 Thread Amit Kulkarni
-- Forwarded message --
From: Amit Kulkarni amitkkulkarni...@gmail.com
Date: Wed, Oct 21, 2009 at 4:40 PM
Subject: Re: [wtr-general] Re: Problem with radio button
To: watir-general@googlegroups.com


No it does not flashed the radio button but again it is popping the window.
I dont know why it is getting popped up.



Any suggestions??

On Wed, Oct 21, 2009 at 4:25 PM, Željko Filipin 
zeljko.fili...@wa-research.ch wrote:

 On Wed, Oct 21, 2009 at 12:51 PM, Amit Kulkarni 
 amitkkulkarni...@gmail.com wrote:
  It pops up a small window saying Please select an operation along with OK
 button.

 Is the correct radio button flashed if you do this?

 browser.radio(:after?, browser.cell(:text, Test)).flash

 Maybe you have to fire some javascript event.


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



[wtr-general] Re: Problem with Checkbox

2009-10-21 Thread Amit Kulkarni
No,it does not flash up anything.
It also does not display any error and goes to next step

On Wed, Oct 21, 2009 at 5:39 PM, Željko Filipin 
zeljko.fili...@wa-research.ch wrote:

 Does this flash what you want?

 Browser.span(:text, Ratingsanity1).flash

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



[wtr-general] Re: Has anyone tried using AutoIt to handle unexpected Popup windows

2009-10-21 Thread Pallavi Sharma
Yes, i don't do it using ruby, i do it using vb.net a framework which i have
build for automation solution using watir.


On Wed, Oct 21, 2009 at 5:15 PM, al3kc aleks.kiev...@gmail.com wrote:



 Do you create separate thread for check_for_popup method?
 


--~--~-~--~~~---~--~~
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: After upgrading to Watir 1.6.2, it is not working fine.

2009-10-21 Thread Brad

I'm having a problem too.

Even if I'm in the IRB and type
require 'watir'

I get: no such file to load -- watir

I'm using the latest release candidate of Ruby 1.8.6-27 on a PC

On Oct 20, 6:11 am, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
 On Tue, Oct 20, 2009 at 12:02 PM, meenu cutiemeenak...@gmail.com wrote:
  I am upgrading my watir version from 1.5 to 1.6.2
  odule/introspection.rb:70:in `const_get': no such file to load --
  safariwatir

 What platform are you on? SafariWatir works only on Mac.

 Please post the code that is causing the error.

 Željko
 --http://watirpodcast.com/
--~--~-~--~~~---~--~~
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] Accessing link method

2009-10-21 Thread Amit Kulkarni
Hello,

Consider this scenario:
I have list of images(which are non-clickable) and below that there is an
edit link
Now i want to click that edit link so that i can edit the description.

Html code is as follows:

div style=width: 150px; height: 150px;input id=attachment[218] type=
checkbox value=1 name=attachment[218]/
img title=Photogallerysanity src=
http://s3.amazonaws.com/staging-brandpotion-prints/images/63/large_thumb.jpg
 alt=Photogallerysanity/
a class=underline href=
/Nikes/photo_gallery/attachments/218/edit?media=printEdit/a
/div

Now i want to click on edit.I can do it by using href link but the no. i.e.
218 is not going to be same  for ever.I want to access that edit link using
the title i.e. Photogallerysanity.
Is it possible to do?
Please help...

--~--~-~--~~~---~--~~
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: After upgrading to Watir 1.6.2, it is not working fine.

2009-10-21 Thread Željko Filipin
On Wed, Oct 21, 2009 at 3:10 PM, Brad bradask...@gmail.com wrote:
 I get: no such file to load -- watir

Try adding this at the top of the file:

require rubygems

Go to command prompt and type this:

gem list watir

What does it return?

 I'm using the latest release candidate of Ruby 1.8.6-27 on a PC

I do not think that is the problem, but http://watir.com/installation/ says:
We recommend using Ruby 1.8.6-26 with Watir 1.6.

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



[wtr-general] Re: After upgrading to Watir 1.6.2, it is not working fine.

2009-10-21 Thread Brad

Thanks using: require 'rubygems' work both in my script and in the
irb.

Why the change?

On Oct 21, 8:20 am, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
 On Wed, Oct 21, 2009 at 3:10 PM, Brad bradask...@gmail.com wrote:
  I get: no such file to load -- watir

 Try adding this at the top of the file:

 require rubygems

 Go to command prompt and type this:

 gem list watir

 What does it return?

  I'm using the latest release candidate of Ruby 1.8.6-27 on a PC

 I do not think that is the problem, buthttp://watir.com/installation/says:
 We recommend using Ruby 1.8.6-26 with Watir 1.6.

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



[wtr-general] Re: Accessing link method

2009-10-21 Thread Željko Filipin
On Wed, Oct 21, 2009 at 3:15 PM, Amit Kulkarni amitkkulkarni...@gmail.com
wrote:
 img title=Photogallerysanity 
 aEdit/a
 I want to access that edit link using the title i.e. Photogallerysanity.

Try this:

browser.link(:after?, browser.image(:title, Photogallerysanity).click

Željko
--
http://watirpodcast.com/

--~--~-~--~~~---~--~~
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 access methods from Modules

2009-10-21 Thread abhisheksreepal

Hi,

I have just started learning Watir.
Please let me know what is wrong

require 'test/unit'
require watir
require 'watir/testcase'
require 'watir/watir_simple'

class Login  Watir::TestCase
def test_login
  ie=Watir::Browser.new
 s = Watir::Simple
  ie.goto(google.com)
  ie.link(:href,some_link1).click
  ie.link(:href,some_link2).click
  s.assert_text_in_body(Please enter your Username,nil)
end
  end



OUTPUT:

 1) Error:
test_login(Login):
NoMethodError: undefined method `assert_text_in_body' for
Watir::Simple:Module
test.rb:14:in `test_login'

--~--~-~--~~~---~--~~
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] Thanks for any support you can offer

2009-10-21 Thread Thomas DeWolfe


A message from Thomas DeWolfe russdewo...@gmail.com.

Dear   Friend , 

I recently accepted the challenge of participating in Ticket to Ride.
This is a motorcycling ride that benefits The Autism Society who's
mission is to improve the lives of everyone affected by autism.

I am asking you to help by supporting my fund-raising efforts with a
donation. Your tax-deductible gift will make a difference in the lives
of many! It is faster and easier than ever to support this great cause
- you can make your donation online by simply clicking on the link at
the bottom of this message. If you would prefer, you can also send your
tax-deductible contribution to the address listed below.  Any
amount, great or small, helps support this incredible foundation and
cause.  I greatly appreciate your support and will keep you posted
on my progress. Thank you!





p

a 
href=http://www.autism-society.org/site/TR/TickettoRide/TickettoRide?px=2831306pg=personalfr_id=1480et=246P-Er9FC23QRpBGDpVDQ..s_tafId=3420;Click
 here to visit my personal page./abr /

span class=SmallerIf the text above does not appear as a clickable link, 
you can visit the web address:br /
http://www.autism-society.org/site/TR/TickettoRide/TickettoRide?px=2831306pg=personalfr_id=1480et=246P-Er9FC23QRpBGDpVDQ..s_tafId=3420/span
/p



img 
src=http://www.autism-society.org/site/PixelServer?tr=2T4nIEgFFI2CKUA1hKJbwQ..;
 height=1 width=1




 will no longer receive email sent from friends on behalf of this organization. 
 If you clicked this link in error and would like to continue to receive email 
from friends, please click here
http://www.autism-society.org/site/TellFriendOpt?action=optouttoe=c0e69ec66276ae0e9d9fbd266c5dba597ad80667862ed0a3b66000b22692e5ca


--~--~-~--~~~---~--~~
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: Sai

2009-10-21 Thread Paul Rogers
until I read that I thought I was still an active member of watir, even
though I cant remember the last time I did a check in ;-(

On Wed, Oct 21, 2009 at 5:18 AM, Željko Filipin 
zeljko.fili...@wa-research.ch wrote:

 On Thu, Oct 8, 2009 at 7:07 AM, Bret Pettichord bpettich...@gmail.com
 wrote:
  Right now the core developers for the (IE)Watir/FireWatir team are
  - Charley Baker
  - Angrez Singh
  - Jari Bakken
  - Bret Pettichord
 
  I'm not sure who the members of the other teams are.

 Would you say this is correct?

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


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



[wtr-general] Re: How to access methods from Modules

2009-10-21 Thread Tiffany Fodor

Hi!

You don't need this line:
 s = Watir::Simple

Your assert should read:
ie.assert_text_in_body(Please enter your Username,nil)

(the second parameter, 'nil' is optional, so you could leave it out).

I just did some searching and found that you need to include
Watir::Simple, but the discussions I found on that date back to
2005-2006.  I gave it a shot in an irb session and found that the
watir_simple methods were only available after I did the include, but
then I got a different error when I tried to use it:

NameError: uninitialized class variable @@browser in Watir::Simple
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
watir_simple.r
b:276:in `assert_text_in_body'
from (irb):12

Is anyone else using watir_simple?  I didn't even know it existed
(guess I should have looked around more!).  Is it still supported?

In the mean time, you can do a simple check to see if the text exists
like this:

ie.text.include?('Please enter your Username')

If you need to perform assertions, you might want look into using
RSpec or Test::Unit.

Hope this helps!

-Tiffany

On Oct 21, 10:02 am, abhisheksreepal abhisheksree...@gmail.com
wrote:
 Hi,

 I have just started learning Watir.
 Please let me know what is wrong

 require 'test/unit'
 require watir
 require 'watir/testcase'
 require 'watir/watir_simple'

 class Login  Watir::TestCase
     def test_login
       ie=Watir::Browser.new
      s = Watir::Simple
       ie.goto(google.com)
       ie.link(:href,some_link1).click
       ie.link(:href,some_link2).click
       s.assert_text_in_body(Please enter your Username,nil)
 end
   end

 OUTPUT:

  1) Error:
 test_login(Login):
 NoMethodError: undefined method `assert_text_in_body' for
 Watir::Simple:Module
     test.rb:14:in `test_login'
--~--~-~--~~~---~--~~
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: How to access methods from Modules

2009-10-21 Thread Bret Pettichord

I don't know if any one is using it any more.

Bret

Tiffany Fodor wrote:
 Hi!

 You don't need this line:
  s = Watir::Simple

 Your assert should read:
 ie.assert_text_in_body(Please enter your Username,nil)

 (the second parameter, 'nil' is optional, so you could leave it out).

 I just did some searching and found that you need to include
 Watir::Simple, but the discussions I found on that date back to
 2005-2006.  I gave it a shot in an irb session and found that the
 watir_simple methods were only available after I did the include, but
 then I got a different error when I tried to use it:

 NameError: uninitialized class variable @@browser in Watir::Simple
 from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
 watir_simple.r
 b:276:in `assert_text_in_body'
 from (irb):12

 Is anyone else using watir_simple?  I didn't even know it existed
 (guess I should have looked around more!).  Is it still supported?

 In the mean time, you can do a simple check to see if the text exists
 like this:

 ie.text.include?('Please enter your Username')

 If you need to perform assertions, you might want look into using
 RSpec or Test::Unit.

 Hope this helps!

 -Tiffany

 On Oct 21, 10:02 am, abhisheksreepal abhisheksree...@gmail.com
 wrote:
   
 Hi,

 I have just started learning Watir.
 Please let me know what is wrong

 require 'test/unit'
 require watir
 require 'watir/testcase'
 require 'watir/watir_simple'

 class Login  Watir::TestCase
 def test_login
   ie=Watir::Browser.new
  s = Watir::Simple
   ie.goto(google.com)
   ie.link(:href,some_link1).click
   ie.link(:href,some_link2).click
   s.assert_text_in_body(Please enter your Username,nil)
 end
   end

 OUTPUT:

  1) Error:
 test_login(Login):
 NoMethodError: undefined method `assert_text_in_body' for
 Watir::Simple:Module
 test.rb:14:in `test_login'
 
 
   


-- 
Bret Pettichord
Lead Developer, Watir, www.watir.com
Blog, www.io.com/~wazmo/blog
Twitter, www.twitter.com/bpettichord


--~--~-~--~~~---~--~~
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: cannot register window class in IE8

2009-10-21 Thread Bret Pettichord

I haven't heard of this. Can your provide a stack trace and complete 
error message?

Bret

aidy lewis wrote:
 Hi,

 Has anyone received 'cannot register window class' errors when running
 Watir tests in IE8?

 Aidy

   


-- 
Bret Pettichord
Lead Developer, Watir, www.watir.com
Blog, www.io.com/~wazmo/blog
Twitter, www.twitter.com/bpettichord


--~--~-~--~~~---~--~~
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: After upgrading to Watir 1.6.2, it is not working fine.

2009-10-21 Thread Bret Pettichord

Željko Filipin wrote:
  I'm using the latest release candidate of Ruby 1.8.6-27 on a PC

 I do not think that is the problem, but http://watir.com/installation/ 
 says: We recommend using Ruby 1.8.6-26 with Watir 1.6.

 Željko
Zeljko,

We say this because of a click-no-wait bug in 1.8.6-27. FYI, this bug is 
fixed in watir 1.6.5 (forthcoming).

Bret

-- 
Bret Pettichord
Lead Developer, Watir, www.watir.com
Blog, www.io.com/~wazmo/blog
Twitter, www.twitter.com/bpettichord


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