[wtr-general] Re: ie.modal_dialog(:title, 'Tile') problem

2009-11-03 Thread david

@ie.modal_dialog.title() gives me the correct title of the modal
dialog box when I run it from IRB
I am using IE7

David

On Nov 2, 2:16 pm, Bret Pettichord b...@pettichord.com wrote:
 I did a little research on this issue. There does appear to be a bug
 using this code with IE8 -- the title changed from Web Page Dialog to
 Webpage Dialog and the Watir code has not been updated to handle this.
 However, rereading your original post makes me think you are using IE7.
 Can you confirm this?

 You said that

 @ie.modal_dialog.title()

 works. What does it say the title is?

 Bret



 david wrote:
  I run some preliminary commands in irb and pop up the modal dialog
  successfully; but when I try and exercise the dialog it won't work.

  irb(main):009:0 @modal = @ie.modal_dialog(:title, 'Batch Update')
  Watir::Exception::NoMatchingWindowFoundException: Modal Dialog with
  title Batch
  Update not found. Timeout = 2.0
          from C:/Work/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/
  watir/modal_dialog.rb:51:in `locate'
          from C:/Work/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/
  watir/modal_dialog.rb:86:in `initialize'
          from C:/Work/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/
  watir/
  container.rb:186:in `new'
          from C:/Work/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/
  watir/container
  .rb:186:in `modal_dialog'
          from (irb):9

  What also puzzles me is why I get an error as follows
  irb(main):011:0 @modal = @ie.modal_dialog(:title, /Batch/)
  ArgumentError: Title value must be String

  when I had no issue attaching to the IE instance using same syntax
  irb(main):002:0 @ie = Watir::IE.attach(:title, /Mainet/)

  And lastly when I execute

  @ie.modal_dialog.title()

  that works!

  David

  On Oct 30, 8:50 am, Bret Pettichord b...@pettichord.com wrote:

  Could you try

  @ie.modal_dialog(:title, 'Batch Update')

  david wrote:

  Have a section of code that is waiting for a modal dialog to appear
  which is visible with the title ‘'Batch Update -- Web Page Dialog’

  modal = @ie.modal_dialog(:title, 'Batch Update -- Web Page Dialog')
  modal.wait
  modal.button(:value,'Yes').click_no_wait

  However the dialog is not being found by title.

  Is there a problem with findingmodal_dialogby title? Is there
  another way to do this? I am using Ruby 1.8.6

  I tried just modal = @ie.modal_dialog
  which should work according to the API documentation but I see there
  is a problem with this approach, even though there can be only one
  modal dialog at a time on screen and this seems like an ideal way to
  attach to a modal dialog. I get the following error:

  IE#modal_dialognot supported with the current version of Ruby
  (1.8.6).
  Seehttp://jira.openqa.org/browse/WTR-2fordetails.
  undefined method `connect_unknown' for WIN32OLE:Class

  David

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

 --
 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: How to get html meta details

2009-11-03 Thread Raveendran P
Hi Marlon,

welcome ... !

On Tue, Nov 3, 2009 at 1:11 PM, Marlon marlonmoja...@gmail.com wrote:



 Hi Raveendran,

 I was able to get what I want. For now im going to use it.

 thanks lot for helping!

 marlon




 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.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: How to get html meta details

2009-11-03 Thread Wesley Chen
But I can't access the URL: http://bit.ly/4mDHoJ
How can I make it?


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


On Tue, Nov 3, 2009 at 4:42 PM, Raveendran P jazzezr...@gmail.com wrote:

 Hi Marlon,

 welcome ... !


 On Tue, Nov 3, 2009 at 1:11 PM, Marlon marlonmoja...@gmail.com wrote:



 Hi Raveendran,

 I was able to get what I want. For now im going to use it.

 thanks lot for helping!

 marlon








 --
 Regards,
 P.Raveendran
 http://raveendran.wordpress.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: How to get html meta details

2009-11-03 Thread Raveendran P
Hi Chen,


The code in my blog follows ...

code=’html
head
titletitle/title
meta content=”title” name=”keywords”/
meta content=”text/html; charset=iso-8859-1″ http-equiv=”Content-
Type”/’

puts content= code.scan(%r{content=”(.*?)”}im).flatten[0].to_s
puts name=code.scan(%r{name=”(.*?)”}im).flatten.to_s



Output:

title
keywords

Thanks





On Tue, Nov 3, 2009 at 4:31 PM, Wesley Chen cjq@gmail.com wrote:

 But I can't access the URL: http://bit.ly/4mDHoJ
 How can I make it?


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


 On Tue, Nov 3, 2009 at 4:42 PM, Raveendran P jazzezr...@gmail.com wrote:

 Hi Marlon,

 welcome ... !


 On Tue, Nov 3, 2009 at 1:11 PM, Marlon marlonmoja...@gmail.com wrote:



 Hi Raveendran,

 I was able to get what I want. For now im going to use it.

 thanks lot for helping!

 marlon








 --
 Regards,
 P.Raveendran
 http://raveendran.wordpress.com





 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.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] Play back option not working

2009-11-03 Thread muthukumaran thanaraj

Hi all, I have installed ruby ,then watir recorder++ for recording a
project.I am aple to record the application , but when I click on play
back option ,I am not getting the screen what I went across.The window
opens only the temp wordpad.I don't have any clue what is
happening ,why it is not playing back  the recorded script.

could u Please Help me ,As I Need to do a project with watir .

Regards,
Muthukumaran.T

--~--~-~--~~~---~--~~
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: Play back option not working

2009-11-03 Thread Željko Filipin
On Tue, Nov 3, 2009 at 1:38 PM, muthukumaran thanaraj muthuvi2...@gmail.com
wrote:
 why it is not playing back  the recorded script.

This is not watir recorder support group. Maybe somebody will know the
answer, but you have greater chance of getting an answer if you post your
question on watir recorder support group.

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

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



[wtr-general] Re: Watir gem tries to build against the win32 API on a mac

2009-11-03 Thread ravi pulipaka
try uninstalling watir,safariwatir and firewatir
install only firewatir and safari watir and check if you had a gem named
activerecord
install it it worked for  me so give it a shot

On Fri, Oct 9, 2009 at 4:37 AM, Željko Filipin 
zeljko.fili...@wa-research.ch wrote:

 On Fri, Oct 9, 2009 at 11:23 AM, Manish Chakravarty manishch...@gmail.com
 wrote:
  sudo gem install firewatir
  sudo gem install safari watir

 There should not be space in `safari watir`. You should do this (
 http://watir.com/installation/):

 sudo gem update --system

 sudo gem install firewatir
 sudo gem install safariwatir

  So I decided to do a gem install watir

 That does not work on Mac.

 Ž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: How to get html meta details

2009-11-03 Thread chandu.tennety

Marlon,
Your original code works for me:

{Content-Type=text/html; charset=iso-8859-1, keywords=title}

Chandu

On Nov 2, 10:51 pm, Marlon marlonmoja...@gmail.com wrote:
 I found the part of the solution 
 herehttp://groups.google.com/group/watir-general/browse_thread/thread/566...
 it still did not solve my problem.

 *sample html*

 html
 head
 titletitle/title
 meta content=title name=keywords/
 meta content=text/html; charset=iso-8859-1 http-equiv=Content-Type/

 *ruby file*

 require 'watir'
 require 'test/unit'

 class TC_MyTest  Test::Unit::TestCase

   def test_meta_get
     $ie = Watir::IE.start('url to check')
     d=meta($ie)
     puts d
   end

  def meta( browser )
     meta = {}
     bmeta =
 browser.document.body.parentElement.getElementsByTagName( META )
     bmeta.each do |i|
         k = i.name
         if k == 
             k = i.httpEquiv
         end
         meta[ k ] = i.content
     end
     return meta
 end
 end

 this produces:

 Content-Typetext/html; charset=iso-8859-1title   keywords

 I what to be able to get first meta tag name attribute which is *keywords
 *

 many thanks again!
 Marlon

--~--~-~--~~~---~--~~
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: Answering incomplete requests

2009-11-03 Thread Alan Baird
Bret/Z* - I will update the help page today.

Alan

On Nov 3, 2009 3:23 AM, Željko Filipin zeljko.fili...@wa-research.ch
wrote:

On Tue, Nov 3, 2009 at 2:00 AM, b...@pettichord.com bpettich...@gmail.com
wrote:  I guess for now...
I am afraid if we do not push it, that change will not happen. I will add
Stack Overflow to support in the next few days, and we will see if it picks
up in the following weeks and months.

 I would like to revise the tone of our support page to be more like  the
cucumber page. I haven...
I will try to update one of these days, if nobody does it before me. A few
people said they would like to help. If you have some time, please do it
instead of me. I will do my best to help you with the wiki and all that if
you are new. I would rather spend more time in helping somebody learn how to
edit wiki than it would take me to edit it myself. I see that as investment
in future contributions.

Željko

--~--~-~--~~~---~--~~ You received this
message because you are su...

--~--~-~--~~~---~--~~
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] Error when encountering SSL certificate message in IE8

2009-11-03 Thread Scott Ferguson

I've got my site running on XAMPP locally for testing and obviously
don't have a valid SSL certificate for XAMPP.  Whenever IE encounters
the There is a problem with this website's certificate screen, Watir
dumps out the message:

c:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:
447:in `method_missing': unknown property or method
`document' (WIN32OLERuntimeError)
HRESULT error code:0x800706b5
  The interface is unknown.
from c:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-
class.rb:447:in `document'
from c:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
locator.rb:31:in `each_element'
from c:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
locator.rb:38:in `locate'
from c:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
container.rb:749:in `locate_tagged_element'
from c:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
link.rb:24:in`locate'
from c:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
element.rb:49:in `assert_exists'
from c:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
element.rb:284:in `enabled?'
from c:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
element.rb:56:in `assert_enabled'
 ... 7 levels...
from tests/myTest.rb:86:in `runTests'
from tests/myTest.rb:101
from tests/myTest.rb:99:in `each'
from tests/myTest.rb:99

After this point, I can no longer control IE.  If I try to do just a
simple browser.goto('www.google.com') I get:

WIN32OLERuntimeError: unknown property or method `navigate'
HRESULT error code:0x800706b5
  The interface is unknown.
from c:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-
class.rb:358:in `method_missing'
from c:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-
class.rb:358:in `goto'
from (irb):5

This is using Vista and IE8.  Unfortunately, I can't circumvent the
problem by running in non-SSL mode since my site requires SSL.  Has
anybody encountered this before?

--~--~-~--~~~---~--~~
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] Slightly OT: using two ie objects for execScript

2009-11-03 Thread aidy lewis

Hi,

Does anyone know why I need to use two ie objects here?

http://pastie.org/681645
http://pastie.org/681647

Aidy

--~--~-~--~~~---~--~~
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: FireWatir broken on OSX 10.6.1 Snow Leopard

2009-11-03 Thread Charley Baker
Hey Chris,

  This has been fixed in the latest release candidate 1.6.5.rc2, the change
was calling firefox-bin to start it up instead of the firefox shell script.
http://github.com/bret/watir/commit/3c3a130b2e8f48a1d1e0c5ceab4f44f6bf4a146c

If you want to give 1.6.5.rc2 a try, here are the gems and some instructions
http://wiki.openqa.org/display/WTR/Development+Builds
otherwise I am planning to do an official release of 1.6.5 this week barring
any reported problems.


Charley Baker
Lead Developer, Watir, http://www.watir.com


On Tue, Nov 3, 2009 at 8:12 AM, Chris McMahon christopher.mcma...@gmail.com
 wrote:


 Hi...

 Oddly enough my problem is described exactly in a Selenium thread here:
 http://stackoverflow.com/questions/1364523/firefox-bin-quit-unexpectedly-while-running-selenium-test

 Firefox runs normally until I try to use FireWatir. The error message is as
 described in the stackoverflow page.

 When I do

 mv /Applications/Firefox.app/Contents/MacOS/libsqlite3.dylib
 /Applications/Firefox.app/Contents/MacOS/libsqlite3.dylib.orig

 Firefox won't launch normally or under FireWatir, and reports

 SQLite Version Error/The application has been updated, but your version of
 SQLite is too old and the application cannot run.

 (Interestingly, the identical issue at mozilla
 http://support.mozilla.com/en-US/forum/1/486263 is marked solved even
 though the only successful strategy was to roll back FF to an earlier
 version.  Also, more information here:
 http://jira.openqa.org/browse/SRC-743)

 I don't see any sign of an authoritative fix.  If anyone has one, please
 let me know.

 


--~--~-~--~~~---~--~~
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: FireWatir broken on OSX 10.6.1 Snow Leopard

2009-11-03 Thread Chris


awesome, thank you

On Nov 3, 8:51 am, Charley Baker charley.ba...@gmail.com wrote:
 Hey Chris,

   This has been fixed in the latest release candidate 1.6.5.rc2, the change
 was calling firefox-bin to start it up instead of the firefox shell 
 script.http://github.com/bret/watir/commit/3c3a130b2e8f48a1d1e0c5ceab4f44f6b...

 If you want to give 1.6.5.rc2 a try, here are the gems and some 
 instructionshttp://wiki.openqa.org/display/WTR/Development+Builds
 otherwise I am planning to do an official release of 1.6.5 this week barring
 any reported problems.

 Charley Baker
 Lead Developer, Watir,http://www.watir.com

 On Tue, Nov 3, 2009 at 8:12 AM, Chris McMahon christopher.mcma...@gmail.com

  wrote:

  Hi...

  Oddly enough my problem is described exactly in a Selenium thread here:
 http://stackoverflow.com/questions/1364523/firefox-bin-quit-unexpecte...

  Firefox runs normally until I try to use FireWatir. The error message is as
  described in the stackoverflow page.

  When I do

  mv /Applications/Firefox.app/Contents/MacOS/libsqlite3.dylib
  /Applications/Firefox.app/Contents/MacOS/libsqlite3.dylib.orig

  Firefox won't launch normally or under FireWatir, and reports

  SQLite Version Error/The application has been updated, but your version of
  SQLite is too old and the application cannot run.

  (Interestingly, the identical issue at mozilla
 http://support.mozilla.com/en-US/forum/1/486263is marked solved even
  though the only successful strategy was to roll back FF to an earlier
  version.  Also, more information here:
 http://jira.openqa.org/browse/SRC-743)

  I don't see any sign of an authoritative fix.  If anyone has one, please
  let me know.


--~--~-~--~~~---~--~~
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: Answering incomplete requests

2009-11-03 Thread Bret Pettichord

Željko Filipin wrote:
 On Tue, Nov 3, 2009 at 2:00 AM, b...@pettichord.com 
 mailto:b...@pettichord.com bpettich...@gmail.com 
 mailto:bpettich...@gmail.com wrote:
  I guess for now, I would say that people should be told that they can
  post questions in either location. There are very few people actually
  answering watir questions on stackoverflow right now. Basically it is
  just you Zeljko, although I did see Mark A make an appearance.

 I am afraid if we do not push it, that change will not happen. I will 
 add Stack Overflow to support in the next few days, and we will see if 
 it picks up in the following weeks and months.
We've been teaching the larger community to ask questions here for 
years. If you ask a Watir question on one of the Ruby forums, you will 
likely be sent here.

I'm still trying to understand the pros and cons of stack overflow. 
You've convinced me to spend more time there. If you personally think it 
is better and would prefer using it, you can tell people that that is 
the best way to get an answer from you.

Bret

--~--~-~--~~~---~--~~
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: Answering incomplete requests

2009-11-03 Thread Željko Filipin
On Tue, Nov 3, 2009 at 5:24 PM, Bret Pettichord b...@pettichord.com wrote:
 If you personally think it
 is better and would prefer using it, you can tell people that that is
 the best way to get an answer from you.

Stack Overflow is to this group like Git is to trying to remember what you
have changed in your code and not using version control.

I will do my best to answer any question tagged watir in Stack Overflow. I
am not sure how I would advertise that.

Ž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] Table row

2009-11-03 Thread Abhay

Hi All,

 I have a web page which contains many tables, none of the
table has any distinguishing properties, No name, No id etc. In one of
the table there are 5 text boxes each on differant row of the table
but same column number. In all these text boxes i want to enter some
text value. How do i do this? I tried to do lot many things but ended
up adding one value in the first text box and rest overriding it. I
would really appreciate if some one could throw some light on this.

Thanks in advance

Abhay

--~--~-~--~~~---~--~~
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: Answering incomplete requests

2009-11-03 Thread Bret Pettichord

Željko Filipin wrote:
 On Tue, Nov 3, 2009 at 5:24 PM, Bret Pettichord b...@pettichord.com 
 mailto:b...@pettichord.com wrote:
  If you personally think it
  is better and would prefer using it, you can tell people that that is
  the best way to get an answer from you.

 Stack Overflow is to this group like Git is to trying to remember what 
 you have changed in your code and not using version control.

 I will do my best to answer any question tagged watir in Stack 
 Overflow. I am not sure how I would advertise that.
I think we need a page called Support at http://watir.com/

It should include Watir General, IRC, Jira and Stack Overflow. Some of 
this stuff is on the community page already. Maybe the community page 
could focus a little more on how to help (rather than get help).

I also think you are getting frustrated with some of the questions here. 
I suggest that you see if maybe you can just reply less to requests that 
annoy you. That's what I'm doing.

Bret

--~--~-~--~~~---~--~~
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: Table row

2009-11-03 Thread Mark Anderson

More information would be useful.
* What is your end goal?  If you are testing a website that you are
developing, talk to your developers and get them to put distinguishing
properties in place.
* Do the text boxes have distinguishing properties?
* What are some of the things that you've tried?
* What does the html of the page look like?

 -Original Message-
 From: watir-general@googlegroups.com [mailto:watir-
 gene...@googlegroups.com] On Behalf Of Abhay
 Sent: Tuesday, November 03, 2009 10:41 AM
 To: Watir General
 Cc: abhaybas...@hotmail.com
 Subject: [wtr-general] Table row
 
 
 Hi All,
 
  I have a web page which contains many tables, none of the
 table has any distinguishing properties, No name, No id etc. In one of
 the table there are 5 text boxes each on differant row of the table
 but same column number. In all these text boxes i want to enter some
 text value. How do i do this? I tried to do lot many things but ended
 up adding one value in the first text box and rest overriding it. I
 would really appreciate if some one could throw some light on this.
 
 Thanks in advance
 
 Abhay
 
  
 
 
 __ Information from ESET NOD32 Antivirus, version of virus
 signature database 4569 (20091103) __
 
 The message was checked by ESET NOD32 Antivirus.
 
 http://www.eset.com
 
 

__ Information from ESET NOD32 Antivirus, version of virus signature
database 4569 (20091103) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.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: Table row

2009-11-03 Thread Angrez Singh
It would be best if you could post the relevant HTML code and ruby code that
you tried. No one can help you without seeing your HTML code and ruby code.
Make sure whenever you post any question here tell us what all you tried and
what is your HTML code?

Thanks,
Angrez

On Tue, Nov 3, 2009 at 10:10 PM, Abhay abhaybas...@gmail.com wrote:


 Hi All,

 I have a web page which contains many tables, none of the
 table has any distinguishing properties, No name, No id etc. In one of
 the table there are 5 text boxes each on differant row of the table
 but same column number. In all these text boxes i want to enter some
 text value. How do i do this? I tried to do lot many things but ended
 up adding one value in the first text box and rest overriding it. I
 would really appreciate if some one could throw some light on this.

 Thanks in advance

 Abhay

 


--~--~-~--~~~---~--~~
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] Revised HTML report class added to Wiki

2009-11-03 Thread George

Well, this is my first attempt at trying to contribute to the Watir
community. I took the original HTML class listed in the examples
section and snazzed it up a bit:

http://wiki.openqa.org/display/WTR/HTML+report+class+%28version+2%29

Updates include:
- Reformatted the time methods
- Changes to the overall look and format from the original report
- Added a css folder to easily change the color scheme of the report
- Added an images folder to include browser type icons
- Included a test time duration in the report (minutes, seconds)
- Included a field to indicate the environment being tested

Any input (good or bad) is more than welcome, especially any advice to
improve it!

Thanks,

George

--~--~-~--~~~---~--~~
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: Table row

2009-11-03 Thread George

If you wanted to fill out all the text fields in the 3rd table listed,
you would do something like this:

@browser.table(:index, 3).rows.each |row|
  row.text_field(:index, 1).set 'whatever'
end

Otherwise, more information will be helpful.

On Nov 3, 8:40 am, Abhay abhaybas...@gmail.com wrote:
 Hi All,

          I have a web page which contains many tables, none of the
 table has any distinguishing properties, No name, No id etc. In one of
 the table there are 5 text boxes each on differant row of the table
 but same column number. In all these text boxes i want to enter some
 text value. How do i do this? I tried to do lot many things but ended
 up adding one value in the first text box and rest overriding it. I
 would really appreciate if some one could throw some light on this.

 Thanks in advance

 Abhay
--~--~-~--~~~---~--~~
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: Revised HTML report class added to Wiki

2009-11-03 Thread George

I forgot...I also included an attachment in the Wiki that has
everything you need to test it out.

On Nov 3, 3:13 pm, George george.sand...@gmail.com wrote:
 Well, this is my first attempt at trying to contribute to the Watir
 community. I took the original HTML class listed in the examples
 section and snazzed it up a bit:

 http://wiki.openqa.org/display/WTR/HTML+report+class+%28version+2%29

 Updates include:
 - Reformatted the time methods
 - Changes to the overall look and format from the original report
 - Added a css folder to easily change the color scheme of the report
 - Added an images folder to include browser type icons
 - Included a test time duration in the report (minutes, seconds)
 - Included a field to indicate the environment being tested

 Any input (good or bad) is more than welcome, especially any advice to
 improve it!

 Thanks,

 George
--~--~-~--~~~---~--~~
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 get html meta details

2009-11-03 Thread Wesley Chen
Thank you very much.
Only this way to get the meta data? I think it is not convenient enough.

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


On Tue, Nov 3, 2009 at 10:41 PM, chandu.tennety chandu.tenn...@gmail.comwrote:


 Marlon,
 Your original code works for me:

 {Content-Type=text/html; charset=iso-8859-1, keywords=title}

 Chandu

 On Nov 2, 10:51 pm, Marlon marlonmoja...@gmail.com wrote:
  I found the part of the solution herehttp://
 groups.google.com/group/watir-general/browse_thread/thread/566...
  it still did not solve my problem.
 
  *sample html*
 
  html
  head
  titletitle/title
  meta content=title name=keywords/
  meta content=text/html; charset=iso-8859-1 http-equiv=Content-Type/
 
  *ruby file*
 
  require 'watir'
  require 'test/unit'
 
  class TC_MyTest  Test::Unit::TestCase
 
def test_meta_get
  $ie = Watir::IE.start('url to check')
  d=meta($ie)
  puts d
end
 
   def meta( browser )
  meta = {}
  bmeta =
  browser.document.body.parentElement.getElementsByTagName( META )
  bmeta.each do |i|
  k = i.name
  if k == 
  k = i.httpEquiv
  end
  meta[ k ] = i.content
  end
  return meta
  end
  end
 
  this produces:
 
  Content-Typetext/html; charset=iso-8859-1title   keywords
 
  I what to be able to get first meta tag name attribute which is
 *keywords
  *
 
  many thanks again!
  Marlon

 


--~--~-~--~~~---~--~~
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: Slightly OT: using two ie objects for execScript

2009-11-03 Thread Ethan
you are not using two Watir::IE objects there. I assume you are referring to
the ie.ie - the first ie is the local variable 'ie' which is an instance
of Watir::IE. the second is the #ie method of Watir::IE, which returns the
win32ole object representing the browser.

On Tue, Nov 3, 2009 at 10:43, aidy lewis aidy.le...@googlemail.com wrote:


 Hi,

 Does anyone know why I need to use two ie objects here?

 http://pastie.org/681645
 http://pastie.org/681647

 Aidy

 


--~--~-~--~~~---~--~~
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] Working on Chrome watir

2009-11-03 Thread shradha_Dalvi

Hi All,
 I have installed ruby 1.8.6 and install chrome_Watir 1.5.0. I
have executed the following test script :-

require chrome_watir
browser = ChromeWatir::Browser.new
browser.goto 'http://www.google.com'

After running this script I am getting following message in the O/P
windoe:-


The system cannot find the file specified.: CreateProcee() failed:
(Processerror)


Please help me out.

Regards,
Shraddha.


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



[wtr-general] Re: Click event not working in IE 7

2009-11-03 Thread Prince3105

Hi all,

I open this thread again. I am not able to find a solution. But i
tracked when this issue happens. Whenever i click submit button in my
application it creates a pop-up , that time cursor is still on the
application's text field and IE hangs for a while. If i manually click
on any part of application or pop-up it will come back. So it happens
only on pop-up comes. Has anyone faced this issue in their application
please give me a solution.

Thanks,

Prince3105

On Oct 10, 6:37 pm, Alan Baird aba...@bairdsnet.net wrote:
 Prince -
 There isn't anything that I'm aware of that would prevent this from working.
  I run IE7 at work with no problems.

 Alan

 On Sat, Oct 10, 2009 at 1:04 AM, Prince3105 prince3...@gmail.com wrote:

  Hi Experts,

  I am using below package.

  Watir version - 1.6.2
  Ruby version - 1.8.6

  Recently i updated IE from 6 to 7. My scripts worked as expected in 6.
  The same script is not working in IE 7 especially click events.

  It hangs often and if i click the application or somewhere else in the
  monitor  like task bar by manually it will work good, otherwise it
  will wait for a manual click event for ever.

  So Guys please tell me its a known issue in IE 7 ? any patches are
  available? if yes please post your valuable reply.

  Thanks,
  Prince3105.
--~--~-~--~~~---~--~~
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: Answering incomplete requests

2009-11-03 Thread Alan Baird
I made a first pass at adding some additional stuff to
http://wiki.openqa.org/display/WTR/Support.  Let me know what you think and
if you can make it better please do.

Alan

--~--~-~--~~~---~--~~
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 get html meta details

2009-11-03 Thread Marlon

yes for now this is the best solution I have.

On 11/4/09, Wesley Chen cjq@gmail.com wrote:
 Thank you very much.
 Only this way to get the meta data? I think it is not convenient enough.

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


 On Tue, Nov 3, 2009 at 10:41 PM, chandu.tennety
 chandu.tenn...@gmail.comwrote:


 Marlon,
 Your original code works for me:

 {Content-Type=text/html; charset=iso-8859-1, keywords=title}

 Chandu

 On Nov 2, 10:51 pm, Marlon marlonmoja...@gmail.com wrote:
  I found the part of the solution herehttp://
 groups.google.com/group/watir-general/browse_thread/thread/566...
  it still did not solve my problem.
 
  *sample html*
 
  html
  head
  titletitle/title
  meta content=title name=keywords/
  meta content=text/html; charset=iso-8859-1
  http-equiv=Content-Type/
 
  *ruby file*
 
  require 'watir'
  require 'test/unit'
 
  class TC_MyTest  Test::Unit::TestCase
 
def test_meta_get
  $ie = Watir::IE.start('url to check')
  d=meta($ie)
  puts d
end
 
   def meta( browser )
  meta = {}
  bmeta =
  browser.document.body.parentElement.getElementsByTagName( META )
  bmeta.each do |i|
  k = i.name
  if k == 
  k = i.httpEquiv
  end
  meta[ k ] = i.content
  end
  return meta
  end
  end
 
  this produces:
 
  Content-Typetext/html; charset=iso-8859-1title   keywords
 
  I what to be able to get first meta tag name attribute which is
 *keywords
  *
 
  many thanks again!
  Marlon

 


 



-- 
Thanks!

Marlon M. Mojares
+639291625097

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