[wtr-general] Can you run Watir on an Ipad?

2011-11-21 Thread Patrick
Is it possible to take existing Watir scripts that run on a webbrowser
and have them run on an Ipad?  I guess I'm wondering if you can
install Ruby and the watir-webdriver gems on an Ipad.

If anyone has successfully done this I'd love to hear about it.

Thanks,

Patrick

-- 
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] Can you run Watir on an Ipad?

2011-11-21 Thread Željko Filipin
On Mon, Nov 21, 2011 at 3:07 PM, Patrick patrick.rawli...@gmail.com wrote:
 I guess I'm wondering if you can
 install Ruby and the watir-webdriver gems on an Ipad.

I do not think so. This is probably the closest to what you are looking for:

http://code.google.com/p/selenium/wiki/IPhoneDriver

I have never used it, so I do not know if it is any good.

Željko
--
watir.com/book - author
watir.com - community manager
watirpodcast.com - host

-- 
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] Can you run Watir on an Ipad?

2011-11-21 Thread bis
iphonedriver is not bad at all i have used it on a few projects. you
just have to use it with selenium-webdriver

On Mon, Nov 21, 2011 at 7:26 AM, Željko Filipin
zeljko.fili...@wa-research.ch wrote:
 On Mon, Nov 21, 2011 at 3:07 PM, Patrick patrick.rawli...@gmail.com wrote:
 I guess I'm wondering if you can
 install Ruby and the watir-webdriver gems on an Ipad.

 I do not think so. This is probably the closest to what you are looking for:
 http://code.google.com/p/selenium/wiki/IPhoneDriver
 I have never used it, so I do not know if it is any good.

 Željko
 --
 watir.com/book - author
 watir.com - community manager
 watirpodcast.com - host

 --
 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] how to call Function argument into another ruby script.

2011-11-21 Thread meaculpa
Consider I have a ruby file called library.rb. In which i defined a
function like this :

def Name(testcase, result)

pdf = PDF::Writer.new
testcase= $testcase
pdf.text $testcase, :font_size = 72, :justification = :center

result= $result
pdf.text $result, :font_size = 72, :justification = :center

end

now i have another ruby file named web.rb which calls thus library.rb.

My Problem is I need to pass these arguments separately.

Means , I need to call Testcase argument firstly and then after many
conditions I need to pass result as Pass or fail.

The Testcase is like I am doing a web automation and the library.rb is
the report part where From the web.rb I need to pass the testcase name
and then at the end I need to pass end result.

Please help me to do this.


-- 
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] how to call Function argument into another ruby script.

2011-11-21 Thread brett sykes
Hello, I think you've posted this question to the wrong forum. This is the
WATIR forum which deals with WATIR questions specifically.

 Have a nice day,
  Brett



On Mon, Nov 21, 2011 at 11:45 AM, meaculpa harismah...@gmail.com wrote:

 Consider I have a ruby file called library.rb. In which i defined a
 function like this :

 def Name(testcase, result)

 pdf = PDF::Writer.new
 testcase= $testcase
 pdf.text $testcase, :font_size = 72, :justification = :center

 result= $result
 pdf.text $result, :font_size = 72, :justification = :center

 end

 now i have another ruby file named web.rb which calls thus library.rb.

 My Problem is I need to pass these arguments separately.

 Means , I need to call Testcase argument firstly and then after many
 conditions I need to pass result as Pass or fail.

 The Testcase is like I am doing a web automation and the library.rb is
 the report part where From the web.rb I need to pass the testcase name
 and then at the end I need to pass end result.

 Please help me to do this.


 --
 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.comhttp://groups.google.com/group/watir-general%0awatir-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] method_missing: fireEvent WIN32OLERuntimeError

2011-11-21 Thread xeranas
Hi all,
I trying to do simple task fill 2 fields and click 'add', and so on..
~ 80 times. But currently it crashes after 20-30 times with errors
below.

I guess this must be 'synchronous' problem.. But I have no idea how I
can fix it. I use methods:
check page with ie.busy  and ie.readyState, before every action, do
check if field exist before making action with it.. nothing is useful
except sleep, but it's very slow down script.

Please note that ~20 times watir handle situation correctly, but later
somehow can't find method which was used ~20 times before in loop..

If you interested for my code: http://pastebin.com/xEKHp129

C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.7/lib/watir/
input_elements.rb:415:in
 `method_missing': fireEvent (WIN32OLERuntimeError)
OLE error code:80004005 in htmlfile
  Unspecified error.
HRESULT error code:0x80020009
  Exception occurred.
from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.7/lib/watir/
input_eleme
nts.rb:415:in `type_by_character'
from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.7/lib/watir/
input_eleme
nts.rb:427:in `characters_in'
from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.7/lib/watir/
input_eleme
nts.rb:412:in `type_by_character'
from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.7/lib/watir/
input_eleme
nts.rb:378:in `set'
from coll_items1000.rb:52
from coll_items1000.rb:42:in `times'
from coll_items1000.rb:42

-- 
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] Keyword Driven Framework

2011-11-21 Thread Deepu V nair
Good Morning,

I am Deepu, Working as a Manual tester, i decided to learn an automation
tool for my existence in the industry and i chose Ruby Watir. But i am
having a lot of doubts .

1. How good is watir compared to other Free Tools Like Selenium
,Watin,Watij.
2.Which is the best free ware tool to deal with database related testing?
3. I have taken a sample watir code from a site but i am not able to
execute as it gives me the error.
Here goes the code

require 'win32ole'
require watir
$Keyword
$Object_Prop_Name


$Object_Prop_Value
$Expected_Output
$Parm_01

excel = WIN32OLE::new(excel.Application)
workbook = excel.Workbooks.Open('H:\Watir\Framework\POC.xls')

worksheet = workbook.WorkSheets(1)
worksheet.Select
for i in 1 .. workbook.Worksheets.Count
worksheet = workbook.Worksheets(i)
 rowcount = worksheet.UsedRange.Rows.Count
for j in 2..rowcount
$Keyword =worksheet.Cells(j, 1).value
$Object_Prop_Name = worksheet.Cells(j, 2).value
$Object_Prop_Value = worksheet.Cells(j, 3).value
$Expected_Output = worksheet.Cells(j, 4).value
$Parm_01 = worksheet.Cells(j, 6).value


case $Keyword
when /^OpenURL/
 @Browser=IE.start(Parm_01)
  @Browser.maximize
when /^SetText/
@Browser.text_field(:#{Object_Prop_Name},
Object_Prop_Value).set(Parm_01)

else
  Exit
end
 workbook.Close()
excel.quit()

end
end

On Running the code using ruby fgetme.rb i am getting the following error
message
'block(2 level)in main ':uninitialized constant Object::IE (Name error)
from getme .rb17.in 'each'


*Please help me to resolve the issue.*


Thanks in advance
DeepuV

-- 
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] Re: Can you run Watir on an Ipad?

2011-11-21 Thread Chuck van der Linden
Well firstly you would need Ruby for the iPad, and I don't know if
such a beast exists, and if it does how good it is. ( Not owning an
iPad, I'm not interested enough to research this.. google is your
friend, have fun ;-) let us know if you find anything promising)

After that you'd likely need to run SafariWatir but I don't know if
the iPad safari is close enough to the Mac version to work with it.
as far as I know, nobody has tried this yet.

Watir would not work of course because it drives IE, and it will be a
pretty cold day in hell before apple  MS conspire to create an IE
browser for the iPad.

You Might (again depending on how good the ruby environment for the
iPad is) be able to use something like Watir-webdriver and run it
against Opera or Firefox, both of which I believe had iPad versions,
but I'm not sure how well that would work or if the webdriver drivers
for those browsers would work on the iPad.

(personally, given what a security sieve Safari is, if I had an iPad,
I think I'd take a hard look at Firefox or Opera as a browser on that
device anyway, so looking into at least part of that might be good for
you in terms of finding a good safe browser to surf with.)

Even presuming all that worked, I'm not sure the iPad's multitasking
capabilities (or lack thereof) are up to running all that stuff at the
same time.

As far as I understand it, people developing stuff to run on iPads
often use emulators to simulate the ipad, and most of their test tools
run on the host OS in parallel with the emulator software, I suspect
in large part due to multitasking restrictions on the iPad itself (at
least the initial generation)

On Nov 21, 6:07 am, Patrick patrick.rawli...@gmail.com wrote:
 Is it possible to take existing Watir scripts that run on a webbrowser
 and have them run on an Ipad?  I guess I'm wondering if you can
 install Ruby and the watir-webdriver gems on an Ipad.

 If anyone has successfully done this I'd love to hear about it.

 Thanks,

 Patrick

-- 
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] Re: Can you run Watir on an Ipad?

2011-11-21 Thread bis
I think he meant running them against an iphone/ipad either device or
simulator this can be done with iphonedriver. we actually messed
around with trying to actually get watir-webdriver and the
iphonedriver to work together but it seems that watir-webdriver can
launch the browser and go to the webpage but it cant interact with any
of the elements.

sorry for the hijack

On Mon, Nov 21, 2011 at 11:48 AM, Chuck van der Linden sqa...@gmail.com wrote:
 Well firstly you would need Ruby for the iPad, and I don't know if
 such a beast exists, and if it does how good it is. ( Not owning an
 iPad, I'm not interested enough to research this.. google is your
 friend, have fun ;-) let us know if you find anything promising)

 After that you'd likely need to run SafariWatir but I don't know if
 the iPad safari is close enough to the Mac version to work with it.
 as far as I know, nobody has tried this yet.

 Watir would not work of course because it drives IE, and it will be a
 pretty cold day in hell before apple  MS conspire to create an IE
 browser for the iPad.

 You Might (again depending on how good the ruby environment for the
 iPad is) be able to use something like Watir-webdriver and run it
 against Opera or Firefox, both of which I believe had iPad versions,
 but I'm not sure how well that would work or if the webdriver drivers
 for those browsers would work on the iPad.

 (personally, given what a security sieve Safari is, if I had an iPad,
 I think I'd take a hard look at Firefox or Opera as a browser on that
 device anyway, so looking into at least part of that might be good for
 you in terms of finding a good safe browser to surf with.)

 Even presuming all that worked, I'm not sure the iPad's multitasking
 capabilities (or lack thereof) are up to running all that stuff at the
 same time.

 As far as I understand it, people developing stuff to run on iPads
 often use emulators to simulate the ipad, and most of their test tools
 run on the host OS in parallel with the emulator software, I suspect
 in large part due to multitasking restrictions on the iPad itself (at
 least the initial generation)

 On Nov 21, 6:07 am, Patrick patrick.rawli...@gmail.com wrote:
 Is it possible to take existing Watir scripts that run on a webbrowser
 and have them run on an Ipad?  I guess I'm wondering if you can
 install Ruby and the watir-webdriver gems on an Ipad.

 If anyone has successfully done this I'd love to hear about it.

 Thanks,

 Patrick

 --
 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] Re: how to call Function argument into another ruby script.

2011-11-21 Thread Chuck van der Linden
I would post this on a Ruby forum, on on Stack Overflow with a Ruby
tag.

What you are asking is pretty basic stuff in terms of defining classes
and methods in ruby.  You should be able to find the answers you need
by reading any number of good books on basic ruby programming.  For
testers who will be using ruby mostly as a scripting tool I recommend
the book Everyday Scripting with Ruby by Brian Marick.

Likely you will need two methods if you want to call each on on it's
own, not a single method.

On Nov 21, 8:45 am, meaculpa harismah...@gmail.com wrote:
 Consider I have a ruby file called library.rb. In which i defined a
 function like this :

 def Name(testcase, result)

 pdf = PDF::Writer.new
 testcase= $testcase
 pdf.text $testcase, :font_size = 72, :justification = :center

 result= $result
 pdf.text $result, :font_size = 72, :justification = :center

 end

 now i have another ruby file named web.rb which calls thus library.rb.

 My Problem is I need to pass these arguments separately.

 Means , I need to call Testcase argument firstly and then after many
 conditions I need to pass result as Pass or fail.

 The Testcase is like I am doing a web automation and the library.rb is
 the report part where From the web.rb I need to pass the testcase name
 and then at the end I need to pass end result.

 Please help me to do this.

-- 
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] Re: method_missing: fireEvent WIN32OLERuntimeError

2011-11-21 Thread Chuck van der Linden
maybe I'm not reading things right, but I think your 'ready' method is
returning true when the browser is not ready

I might also recommend a more current version of Watir, v1.6.7 is a
little old  You might want to try this with 1.9.1 and see if it works
any differently for you.

On Nov 21, 9:00 am, xeranas anorku...@gmail.com wrote:
 Hi all,
 I trying to do simple task fill 2 fields and click 'add', and so on..
 ~ 80 times. But currently it crashes after 20-30 times with errors
 below.

 I guess this must be 'synchronous' problem.. But I have no idea how I
 can fix it. I use methods:
 check page with ie.busy  and ie.readyState, before every action, do
 check if field exist before making action with it.. nothing is useful
 except sleep, but it's very slow down script.

 Please note that ~20 times watir handle situation correctly, but later
 somehow can't find method which was used ~20 times before in loop..

 If you interested for my code:http://pastebin.com/xEKHp129

 C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.7/lib/watir/
 input_elements.rb:415:in
  `method_missing': fireEvent (WIN32OLERuntimeError)
     OLE error code:80004005 in htmlfile
       Unspecified error.
     HRESULT error code:0x80020009
       Exception occurred.
         from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.7/lib/watir/
 input_eleme
 nts.rb:415:in `type_by_character'
         from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.7/lib/watir/
 input_eleme
 nts.rb:427:in `characters_in'
         from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.7/lib/watir/
 input_eleme
 nts.rb:412:in `type_by_character'
         from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.7/lib/watir/
 input_eleme
 nts.rb:378:in `set'
         from coll_items1000.rb:52
         from coll_items1000.rb:42:in `times'
         from coll_items1000.rb:42

-- 
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] Re: Can you run Watir on an Ipad?

2011-11-21 Thread Patrick
Thanks for the tips.  I'll look into using an emulator and see what I
can come up with.

-- 
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] Re: method_missing: fireEvent WIN32OLERuntimeError

2011-11-21 Thread brett sykes
Yes, it looks like his ready method is returning true when the browser is
in a busy state. But, besides that point, if you take Chucks advice and
update to a more modern version (like 1.9.1), you can take advantage of the
very cool #when_present extension and simplify your current code to
something more along the lines of:
#-
999.times do
$b.text_field(:id, 'singlelineedit1').when_present.set(1)
$b.text_field(:id, 'multilineedit1').when_present.set(...)
$b.button(:id, button1).when_present.click
end
#-
 Brett



On Mon, Nov 21, 2011 at 2:07 PM, Chuck van der Linden sqa...@gmail.comwrote:

 maybe I'm not reading things right, but I think your 'ready' method is
 returning true when the browser is not ready

 I might also recommend a more current version of Watir, v1.6.7 is a
 little old  You might want to try this with 1.9.1 and see if it works
 any differently for you.

 On Nov 21, 9:00 am, xeranas anorku...@gmail.com wrote:
  Hi all,
  I trying to do simple task fill 2 fields and click 'add', and so on..
  ~ 80 times. But currently it crashes after 20-30 times with errors
  below.
 
  I guess this must be 'synchronous' problem.. But I have no idea how I
  can fix it. I use methods:
  check page with ie.busy  and ie.readyState, before every action, do
  check if field exist before making action with it.. nothing is useful
  except sleep, but it's very slow down script.
 
  Please note that ~20 times watir handle situation correctly, but later
  somehow can't find method which was used ~20 times before in loop..
 
  If you interested for my code:http://pastebin.com/xEKHp129
 
  C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.7/lib/watir/
  input_elements.rb:415:in
   `method_missing': fireEvent (WIN32OLERuntimeError)
  OLE error code:80004005 in htmlfile
Unspecified error.
  HRESULT error code:0x80020009
Exception occurred.
  from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.7/lib/watir/
  input_eleme
  nts.rb:415:in `type_by_character'
  from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.7/lib/watir/
  input_eleme
  nts.rb:427:in `characters_in'
  from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.7/lib/watir/
  input_eleme
  nts.rb:412:in `type_by_character'
  from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.7/lib/watir/
  input_eleme
  nts.rb:378:in `set'
  from coll_items1000.rb:52
  from coll_items1000.rb:42:in `times'
  from coll_items1000.rb:42

 --
 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.comhttp://groups.google.com/group/watir-general%0awatir-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] Re: Keyword Driven Framework

2011-11-21 Thread Chuck van der Linden
I'm not sure how much current work has been done on Watin or Watij, it
really all depends on what language you want to work in.  Personally I
prefer Ruby,  but if your Developers are using .net or Java it might
be easier to use something which has the same language so they can
mentor you.

Personally I feel Watir-Webdriver combines the best of the Selenium
Webdriver technology (for cross browser support) with the more
friendly and easy to use Watir API.  Selenium has a lot of fans, but
really I tend to feel it it aimed more at developers (java developers
in particular) than at testers.  Watir was created by testers who are
also developers, so I think its better for testers.  opinions vary.
I'd try Selenium RC vs Watir and see what you think.

I don't know where that sample code came from, but if you are having
issues with it, I'd start at the place you got it.

It seems a bit strange to me since I never see it initialize a new
browser object anywhere in the code, which is where your error comes
from.  Also it seems to be using uppercase names for a lot of
variables, which normally in Ruby denote constants or class names

Have you worked through any of the basic tutorials on Watir?  or had a
look at Zeljko's book?   That's probably a better place for you to
start.

http://wiki.openqa.org/display/WTR/Start+Here
http://watir.com/book/

On Nov 21, 9:16 am, Deepu V nair deepu105...@gmail.com wrote:
 Good Morning,

 I am Deepu, Working as a Manual tester, i decided to learn an automation
 tool for my existence in the industry and i chose Ruby Watir. But i am
 having a lot of doubts .

 1. How good is watir compared to other Free Tools Like Selenium
 ,Watin,Watij.
 2.Which is the best free ware tool to deal with database related testing?
 3. I have taken a sample watir code from a site but i am not able to
 execute as it gives me the error.
 Here goes the code

 require 'win32ole'
 require watir
 $Keyword
 $Object_Prop_Name

 $Object_Prop_Value
 $Expected_Output
 $Parm_01

 excel = WIN32OLE::new(excel.Application)
 workbook = excel.Workbooks.Open('H:\Watir\Framework\POC.xls')

 worksheet = workbook.WorkSheets(1)
 worksheet.Select
 for i in 1 .. workbook.Worksheets.Count
     worksheet = workbook.Worksheets(i)
      rowcount = worksheet.UsedRange.Rows.Count
         for j in 2..rowcount
             $Keyword =worksheet.Cells(j, 1).value
                 $Object_Prop_Name = worksheet.Cells(j, 2).value
                 $Object_Prop_Value = worksheet.Cells(j, 3).value
                 $Expected_Output = worksheet.Cells(j, 4).value
                 $Parm_01 = worksheet.Cells(j, 6).value

                 case $Keyword
                     when /^OpenURL/
                          @Browser=IE.start(Parm_01)
                               @Browser.maximize
                     when /^SetText/
                         @Browser.text_field(:#{Object_Prop_Name},
 Object_Prop_Value).set(Parm_01)

                     else
                           Exit
                 end
  workbook.Close()
 excel.quit()

         end
 end

 On Running the code using ruby fgetme.rb i am getting the following error
 message
 'block(2 level)in main ':uninitialized constant Object::IE (Name error)
 from getme .rb17.in 'each'

 *Please help me to resolve the issue.*

 Thanks in advance
 DeepuV

-- 
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] Re: Can you run Watir on an Ipad?

2011-11-21 Thread Chuck van der Linden
No worries for the hijack..

I was responding to I guess I'm wondering if you can
install Ruby and the watir-webdriver gems on an Ipad. 

which I didn't take to mean using an emulator.  (although I agree for
testing purposes, the emulator approach is most likely best. )

It would be interesting to figure out why the iphonedriver doesn't
work with watir-webdriver once it gets to the webpage.  (what webpage
is it going to?)

On Nov 21, 10:55 am, bis bis...@gmail.com wrote:
 I think he meant running them against an iphone/ipad either device or
 simulator this can be done with iphonedriver. we actually messed
 around with trying to actually get watir-webdriver and the
 iphonedriver to work together but it seems that watir-webdriver can
 launch the browser and go to the webpage but it cant interact with any
 of the elements.

 sorry for the hijack

 On Mon, Nov 21, 2011 at 11:48 AM, Chuck van der Linden sqa...@gmail.com 
 wrote:







  Well firstly you would need Ruby for the iPad, and I don't know if
  such a beast exists, and if it does how good it is. ( Not owning an
  iPad, I'm not interested enough to research this.. google is your
  friend, have fun ;-) let us know if you find anything promising)

  After that you'd likely need to run SafariWatir but I don't know if
  the iPad safari is close enough to the Mac version to work with it.
  as far as I know, nobody has tried this yet.

  Watir would not work of course because it drives IE, and it will be a
  pretty cold day in hell before apple  MS conspire to create an IE
  browser for the iPad.

  You Might (again depending on how good the ruby environment for the
  iPad is) be able to use something like Watir-webdriver and run it
  against Opera or Firefox, both of which I believe had iPad versions,
  but I'm not sure how well that would work or if the webdriver drivers
  for those browsers would work on the iPad.

  (personally, given what a security sieve Safari is, if I had an iPad,
  I think I'd take a hard look at Firefox or Opera as a browser on that
  device anyway, so looking into at least part of that might be good for
  you in terms of finding a good safe browser to surf with.)

  Even presuming all that worked, I'm not sure the iPad's multitasking
  capabilities (or lack thereof) are up to running all that stuff at the
  same time.

  As far as I understand it, people developing stuff to run on iPads
  often use emulators to simulate the ipad, and most of their test tools
  run on the host OS in parallel with the emulator software, I suspect
  in large part due to multitasking restrictions on the iPad itself (at
  least the initial generation)

  On Nov 21, 6:07 am, Patrick patrick.rawli...@gmail.com wrote:
  Is it possible to take existing Watir scripts that run on a webbrowser
  and have them run on an Ipad?  I guess I'm wondering if you can
  install Ruby and the watir-webdriver gems on an Ipad.

  If anyone has successfully done this I'd love to hear about it.

  Thanks,

  Patrick

  --
  Before posting, please readhttp://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] Re: Can you run Watir on an Ipad?

2011-11-21 Thread bis
I was going to www.etsy.com

On Mon, Nov 21, 2011 at 12:50 PM, Chuck van der Linden sqa...@gmail.com wrote:
 No worries for the hijack..

 I was responding to I guess I'm wondering if you can
 install Ruby and the watir-webdriver gems on an Ipad. 

 which I didn't take to mean using an emulator.  (although I agree for
 testing purposes, the emulator approach is most likely best. )

 It would be interesting to figure out why the iphonedriver doesn't
 work with watir-webdriver once it gets to the webpage.  (what webpage
 is it going to?)

 On Nov 21, 10:55 am, bis bis...@gmail.com wrote:
 I think he meant running them against an iphone/ipad either device or
 simulator this can be done with iphonedriver. we actually messed
 around with trying to actually get watir-webdriver and the
 iphonedriver to work together but it seems that watir-webdriver can
 launch the browser and go to the webpage but it cant interact with any
 of the elements.

 sorry for the hijack

 On Mon, Nov 21, 2011 at 11:48 AM, Chuck van der Linden sqa...@gmail.com 
 wrote:







  Well firstly you would need Ruby for the iPad, and I don't know if
  such a beast exists, and if it does how good it is. ( Not owning an
  iPad, I'm not interested enough to research this.. google is your
  friend, have fun ;-) let us know if you find anything promising)

  After that you'd likely need to run SafariWatir but I don't know if
  the iPad safari is close enough to the Mac version to work with it.
  as far as I know, nobody has tried this yet.

  Watir would not work of course because it drives IE, and it will be a
  pretty cold day in hell before apple  MS conspire to create an IE
  browser for the iPad.

  You Might (again depending on how good the ruby environment for the
  iPad is) be able to use something like Watir-webdriver and run it
  against Opera or Firefox, both of which I believe had iPad versions,
  but I'm not sure how well that would work or if the webdriver drivers
  for those browsers would work on the iPad.

  (personally, given what a security sieve Safari is, if I had an iPad,
  I think I'd take a hard look at Firefox or Opera as a browser on that
  device anyway, so looking into at least part of that might be good for
  you in terms of finding a good safe browser to surf with.)

  Even presuming all that worked, I'm not sure the iPad's multitasking
  capabilities (or lack thereof) are up to running all that stuff at the
  same time.

  As far as I understand it, people developing stuff to run on iPads
  often use emulators to simulate the ipad, and most of their test tools
  run on the host OS in parallel with the emulator software, I suspect
  in large part due to multitasking restrictions on the iPad itself (at
  least the initial generation)

  On Nov 21, 6:07 am, Patrick patrick.rawli...@gmail.com wrote:
  Is it possible to take existing Watir scripts that run on a webbrowser
  and have them run on an Ipad?  I guess I'm wondering if you can
  install Ruby and the watir-webdriver gems on an Ipad.

  If anyone has successfully done this I'd love to hear about it.

  Thanks,

  Patrick

  --
  Before posting, please readhttp://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] Re: Can you run Watir on an Ipad?

2011-11-21 Thread Jari Bakken
watir-webdriver won't run on the iPad/iPhone (either emulator or device)
until this bug is fixed:

  http://code.google.com/p/selenium/issues/detail?id=1371


On Mon, Nov 21, 2011 at 8:56 PM, bis bis...@gmail.com wrote:

 I was going to www.etsy.com

 On Mon, Nov 21, 2011 at 12:50 PM, Chuck van der Linden sqa...@gmail.com
 wrote:
  No worries for the hijack..
 
  I was responding to I guess I'm wondering if you can
  install Ruby and the watir-webdriver gems on an Ipad. 
 
  which I didn't take to mean using an emulator.  (although I agree for
  testing purposes, the emulator approach is most likely best. )
 
  It would be interesting to figure out why the iphonedriver doesn't
  work with watir-webdriver once it gets to the webpage.  (what webpage
  is it going to?)
 
  On Nov 21, 10:55 am, bis bis...@gmail.com wrote:
  I think he meant running them against an iphone/ipad either device or
  simulator this can be done with iphonedriver. we actually messed
  around with trying to actually get watir-webdriver and the
  iphonedriver to work together but it seems that watir-webdriver can
  launch the browser and go to the webpage but it cant interact with any
  of the elements.
 
  sorry for the hijack
 
  On Mon, Nov 21, 2011 at 11:48 AM, Chuck van der Linden 
 sqa...@gmail.com wrote:
 
 
 
 
 
 
 
   Well firstly you would need Ruby for the iPad, and I don't know if
   such a beast exists, and if it does how good it is. ( Not owning an
   iPad, I'm not interested enough to research this.. google is your
   friend, have fun ;-) let us know if you find anything promising)
 
   After that you'd likely need to run SafariWatir but I don't know if
   the iPad safari is close enough to the Mac version to work with it.
   as far as I know, nobody has tried this yet.
 
   Watir would not work of course because it drives IE, and it will be a
   pretty cold day in hell before apple  MS conspire to create an IE
   browser for the iPad.
 
   You Might (again depending on how good the ruby environment for the
   iPad is) be able to use something like Watir-webdriver and run it
   against Opera or Firefox, both of which I believe had iPad versions,
   but I'm not sure how well that would work or if the webdriver drivers
   for those browsers would work on the iPad.
 
   (personally, given what a security sieve Safari is, if I had an iPad,
   I think I'd take a hard look at Firefox or Opera as a browser on that
   device anyway, so looking into at least part of that might be good for
   you in terms of finding a good safe browser to surf with.)
 
   Even presuming all that worked, I'm not sure the iPad's multitasking
   capabilities (or lack thereof) are up to running all that stuff at the
   same time.
 
   As far as I understand it, people developing stuff to run on iPads
   often use emulators to simulate the ipad, and most of their test tools
   run on the host OS in parallel with the emulator software, I suspect
   in large part due to multitasking restrictions on the iPad itself (at
   least the initial generation)
 
   On Nov 21, 6:07 am, Patrick patrick.rawli...@gmail.com wrote:
   Is it possible to take existing Watir scripts that run on a
 webbrowser
   and have them run on an Ipad?  I guess I'm wondering if you can
   install Ruby and the watir-webdriver gems on an Ipad.
 
   If anyone has successfully done this I'd love to hear about it.
 
   Thanks,
 
   Patrick
 
   --
   Before posting, please readhttp://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