[wtr-general] watir supports rad editor of Telerik

2009-09-08 Thread khaja shaik
Hi ,

In our project, we need to enter the data in Rad editor of Telerik controls.
I am automating this process.
  $ie.text_field(:id,rad_Editor).set(test)  i have used this code after
executing my script i got below  mentioned error

IN32OLERuntimeError: unknown property or method `readOnly'
HRESULT error code:0x80020006
  Unknown name.
(eval):3:in `invoke'
(eval):3:in `readonly?'

c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/input_elements.rb:238:in
`assert_not_readonly'

c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/input_elements.rb:324:in
`set'
publicpolicy.rb:26:in `test_gmaildemo'

can anybody give me  help on this

Thanks,
Khaja shariff

--~--~-~--~~~---~--~~
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 i will check if the directory already exists or not using watir

2009-09-08 Thread Željko Filipin
On Mon, Sep 7, 2009 at 10:25 PM, Maumita maumita.majum...@gmail.com wrote:
 But when the script will run for the second ime, how i will check if
 the directory already exists or not?

I found the answer here:

http://www.ruby-forum.com/topic/135748

Ž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: Is there anyway to log watir results output in a directory that has been created from the script.

2009-09-08 Thread Rocky

Yes,
You can use:

path=/some/path
if File.exists?(path)  File.directory?(path)
puts Dir Exists
else
puts Inserting Logs.
end


Regards
D G

On Sep 8, 12:53 am, Maumita maumita.majum...@gmail.com wrote:
 Hi,

 Is there anyway to log watir results output in a directory that has
 been created from the script. Befor logging the result, the script
 will check whether the directory exists in the particular folder or
 not. If it doesn't exist, then it will create the directory and log
 the results.

 When the same scripr run second time, if it founds the directory is
 there then it will log the results in the same file.

 Please help how can I do this in watir script.

 Thanks
 Maumita

--~--~-~--~~~---~--~~
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 i will check if the directory already exists or not using watir

2009-09-08 Thread Rocky

Hi Maumita   ,
You can use:

path=/some/path
if File.exists?(path)  File.directory?(path)
puts Dir Exists
else
puts Inserting...
end

Regards
D G

On Sep 8, 1:38 pm, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
 On Mon, Sep 7, 2009 at 10:25 PM, Maumita maumita.majum...@gmail.com wrote:
  But when the script will run for the second ime, how i will check if
  the directory already exists or not?

 I found the answer here:

 http://www.ruby-forum.com/topic/135748

 Ž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: Need a sample code to import test data from Excel sheet

2009-09-08 Thread Rocky

You can use:

   $folder_path='C:\\script\\qa'
   excel = WIN32OLE::new(excel.Application) # Create an instance of
the Excel application object
   $workbook = excel.Workbooks.Open($folder_path+\\TestData.xls)
   $worksheet = $workbook.WorkSheets(1) # get first workbook
   $test_site = $worksheet.Range(C4).Value # Pick Test URL form
TestData sheet

   $ie = Watir::IE.new
   $ie.goto($test_site)


Thanks
D G


On Sep 7, 6:05 pm, Ari arindraj...@googlemail.com wrote:
 MS Excel file can be read using parseexcel. See details 
 inhttp://ari-techno.blogspot.com/2009/09/reading-microsoft-office-excel...

 On Aug 11, 8:37 am, Naveen devadass naveeenku...@gmail.com wrote:

  Hi all,
  Can you please help on this

--~--~-~--~~~---~--~~
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: o store watir output results in a directory,how I will create the directory from the script without creating the directory manually

2009-09-08 Thread Rocky

You can use:

path=/some/path
if File.exists?(path)  File.directory?(path)
puts Dir Exists
else
puts Inserting Logs.
end


Regards
D G

On Sep 7, 6:54 pm, Ari arindraj...@googlemail.com wrote:
 hi Maumita,
 You can use following code to create the directory. This will create
 the directory if it's not there.:

  Dir.mkdir(directory_path) if !File.exist( directory_path )

 Also check ruby documentation (http://www.ruby-doc.org/core/classes/
 Dir.html#M002318) if default permission doesnot work.
 cheers

 On Sep 7, 11:26 am, Maumita maumita.majum...@gmail.com wrote:

  Hi,

  To store watir output results in a directory,how I will create the
  directory whenre I want to store the results from watir script. Also
  the script will run in every hour and daily basis. So all results
  should get stored in the same directory.

  How can i do this.

  Below is my script -
  #Load the library and create reference to Library object
  require 'watir' #watir Controller
  require 'logger'

  # Ruby Logger
  # Logger is configured to write
  class Logger
    # hack format of logger
    class Formatter
      #original: Format = %s, [%s#%d] %5s -- %s: %s\n
      Formato = [%s] [%5s] : %s\n

      def call(severity, time, progname, msg)
        #add logging to stdout
        puts output_message = msg2str(msg)
        STDOUT.flush
        #original: Format % [severity[0..0], format_datetime(time), $$,
  severity, progname, msg2str(msg)]
        Formato % [format_datetime(time),severity, output_message]
      end
    end
  end

  #Create a log file
  time = Time.now.strftime(%Y-%m-%d)
  logfile = File.join('d:/ruby/log', DportalMonitor_#{time}.csv)
  $log = Logger.new(logfile,'daily')
  $log.level = Logger::INFO
  $log.datetime_format = %Y-%m-%d %H:%M:%S
  $log.info(Started.)

  In the script I have mentioned the directory path. I want to create it
  automatically on others machine.

  Its urgent.Please reply as soon as possible.

  Thanks
  Maumita

--~--~-~--~~~---~--~~
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 a sample code to import test data from Excel sheet

2009-09-08 Thread Alister Scott

You can always check out Roo: http://roo.rubyforge.org/
This library makes it easy to read Excel, OpenOffice and Google Docs,
without needing these programs installed (reads file directly).

Cheers,
Alister Scott

On Sep 8, 6:58 pm, Rocky dheerajgamb...@gmail.com wrote:
 You can use:

    $folder_path='C:\\script\\qa'
    excel = WIN32OLE::new(excel.Application) # Create an instance of
 the Excel application object
    $workbook = excel.Workbooks.Open($folder_path+\\TestData.xls)
    $worksheet = $workbook.WorkSheets(1) # get first workbook
    $test_site = $worksheet.Range(C4).Value     # Pick Test URL form
 TestData sheet

    $ie = Watir::IE.new
    $ie.goto($test_site)

 Thanks
 D G

 On Sep 7, 6:05 pm, Ari arindraj...@googlemail.com wrote:

  MS Excel file can be read using parseexcel. See details 
  inhttp://ari-techno.blogspot.com/2009/09/reading-microsoft-office-excel...

  On Aug 11, 8:37 am, Naveen devadass naveeenku...@gmail.com wrote:

   Hi all,
   Can you please help on this
--~--~-~--~~~---~--~~
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] Need to print information in back to .ods file after script execution

2009-09-08 Thread Bindhu

I am using open office (.ods) for the test data.
I would like to print some information on .ods after sucessfull
execution of the ruby script.
Please provide me the solution if any one has...
--~--~-~--~~~---~--~~
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 to print information in back to .ods file after script execution

2009-09-08 Thread Željko Filipin
On Tue, Sep 8, 2009 at 11:53 AM, Bindhu udayarekha2...@gmail.com wrote:
 I would like to print some information on .ods after sucessfull
 execution of the ruby script.

This could help:

http://roo.rubyforge.org/

Ž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: trying to access onclick property in a td using xpath

2009-09-08 Thread rs77

The errror is
'NoMethodError: undefined method `element' for #Watir::IE:0x2e65760
D:/Installers/watir/experimenting/JMP_CreateBranch.rb:52:in
`test_TCrecorded'

On Sep 8, 3:43 pm, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
 On Tue, Sep 8, 2009 at 12:34 PM, rs77 rishaind...@gmail.com wrote:
  I am trying to click element Areas and Branches from the code below
  using xpath...but keep getting errors.

 And the error is?

 Ž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: trying to access onclick property in a td using xpath

2009-09-08 Thread rs77

thanks for your help...
I'd read the site you mentioned before as well. I am pretty new to
watir.

I tried using browser.cell(:xpath, //td[contains(@onclick ,
'MainMenu.jmp?pid=97pName=Areas And Branches')]).click  and
following is the output.

i even tried giving the complete path i.e.
ie.cell(:xpath,//t...@onclick =
'parent.content.location.href='MainMenu.jmp?pid=97pName=Areas And
Branches')]).click
but stilll the same.

is xpath supported in frames ...i read somewhere it does not

here is the output

Started
there are 3 frames
frame  index: 1 name: top
frame  index: 2 name: toc
frame  index: 3 name: content
E
Finished in 1.687 seconds.

  1) Error:
test_TCrecorded(TCrecorded):
Watir::Exception::UnknownObjectException: Unable to locate element,
using :xpath
, //td[contains(@onclick ,'MainMenu.jmp?pid=97pName=Areas And
Branches')]
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
52:in `asser
t_exists'
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
284:in `enab
led?'
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
56:in `asser
t_enabled'
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
229:in `clic
k!'
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
215:in `clic
k'
D:/Installers/watir/experimenting/JMP_CreateBranch.rb:53:in
`test_TCrecorded
'

1 tests, 0 assertions, 0 failures, 1 errors

On Sep 8, 4:01 pm, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
 On Tue, Sep 8, 2009 at 12:48 PM, rs77 rishaind...@gmail.com wrote:
  'NoMethodError: undefined method `element'

 You have this code:

 ie.element

 And the error says `undefined method `element'`. That means method `element`
 is not defined for object that variable `ie` points to. Where did you get
 that code?

 Did you read this?

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

 This should work:

 browser.cell(:xpath, //td[contains(@onclick ,
 'MainMenu.jmp?pid=97pName=Areas And Branches')]).click

 Ž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: trying to access onclick property in a td using xpath

2009-09-08 Thread Željko Filipin
http://wiki.openqa.org/display/WTR/XPath says:

you can access frames using the attributes that Watir provides but you
can't use xpath attribute for accessing frames

Try this:

browser.frame(:index, 3).cell(:xpath, //td[contains(@onclick ,
'MainMenu.jmp?pid=97pName=Areas And Branches')]).click

Ž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: Need to print information in back to .ods file after script execution

2009-09-08 Thread Bindhu

Thanks Željko for your information,

According to the  http://roo.rubyforge.org/, we can only read the data
from .ods file, we can NOT written back to .ods file.
Is there any other way to do this.
Please help me out.


On Sep 8, 3:06 pm, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
 On Tue, Sep 8, 2009 at 11:53 AM, Bindhu udayarekha2...@gmail.com wrote:
  I would like to print some information on .ods after sucessfull
  execution of the ruby script.

 This could help:

 http://roo.rubyforge.org/

 Ž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: Need a sample code to import test data from Excel sheet

2009-09-08 Thread Alister Scott

I have also just written a blog post on how to use Roo to specify test
cases in Excel/Open Office: http://wp.me/p98zF-56

--~--~-~--~~~---~--~~
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: trying to access onclick property in a td using xpath

2009-09-08 Thread rs77

still no luck :(


  1) Error:
test_TCrecorded(TCrecorded):
NoMethodError: undefined method `element_by_xpath' for #Watir::Frame:
0x2e55054

C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/table.rb:
324:in `locate'
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
49:in `assert_exists'
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
284:in `enabled?'
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
56:in `assert_enabled'
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
229:in `click!'
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
215:in `click!'

Am i missing something basic, do i need to require anything else for
using xpath?


On Sep 8, 4:24 pm, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
 http://wiki.openqa.org/display/WTR/XPathsays:

 you can access frames using the attributes that Watir provides but you
 can't use xpath attribute for accessing frames

 Try this:

 browser.frame(:index, 3).cell(:xpath, //td[contains(@onclick ,
 'MainMenu.jmp?pid=97pName=Areas And Branches')]).click

 Ž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: trying to access onclick property in a td using xpath

2009-09-08 Thread Angrez Singh
does this works:
ie.cell(:text, /Areas And Branches/).click

or this:
ie.element_by_xpath(//td[contains(., Areas And Branches)]).click

- Angrez

On Tue, Sep 8, 2009 at 5:03 PM, rs77 rishaind...@gmail.com wrote:


 still no luck :(


  1) Error:
 test_TCrecorded(TCrecorded):
 NoMethodError: undefined method `element_by_xpath' for #Watir::Frame:
 0x2e55054

C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/table.rb:
 324:in `locate'
 C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
 49:in `assert_exists'
 C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
 284:in `enabled?'
 C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
 56:in `assert_enabled'
 C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
 229:in `click!'
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
 215:in `click!'

 Am i missing something basic, do i need to require anything else for
 using xpath?


 On Sep 8, 4:24 pm, Željko Filipin zeljko.fili...@wa-research.ch
 wrote:
  http://wiki.openqa.org/display/WTR/XPathsays:
 
  you can access frames using the attributes that Watir provides but you
  can't use xpath attribute for accessing frames
 
  Try this:
 
  browser.frame(:index, 3).cell(:xpath, //td[contains(@onclick ,
  'MainMenu.jmp?pid=97pName=Areas And Branches')]).click
 
  Ž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: trying to access onclick property in a td using xpath

2009-09-08 Thread rs77

these dont seem to work either
**
 Using ie.cell(:text, /Areas And Branches/).click
**
E
Finished in 1.734 seconds.

  1) Error:
test_TCrecorded(TCrecorded):
Watir::Exception::UnknownObjectException: Unable to locate element,
using :text,
 /Areas And Branches/
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
52:in `asser
t_exists'
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
284:in `enab
led?'
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
56:in `asser
t_enabled'
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
229:in `clic
k!'
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
215:in `clic
k'
D:/Installers/watir/experimenting/JMP_CreateBranch.rb:54:in
`test_TCrecorded

-

and when used (changed the double quotes to single around areas and
branches as it was giving a syntax error)
ie.element_by_xpath(//td[contains(.,'Areas And Branches')]).click
  1) Error:
test_TCrecorded(TCrecorded):
NoMethodError: undefined method `click' for nil:NilClass
D:/Installers/watir/experimenting/JMP_CreateBranch.rb:50:in
`test_TCrecorded
'

1 tests, 0 assertions, 0 failures, 1 errors


On Sep 8, 5:10 pm, Angrez Singh ang...@gmail.com wrote:
 does this works:
 ie.cell(:text, /Areas And Branches/).click

 or this:
 ie.element_by_xpath(//td[contains(., Areas And Branches)]).click

 - Angrez



 On Tue, Sep 8, 2009 at 5:03 PM, rs77 rishaind...@gmail.com wrote:

  still no luck :(

   1) Error:
  test_TCrecorded(TCrecorded):
  NoMethodError: undefined method `element_by_xpath' for #Watir::Frame:
  0x2e55054

     C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/table.rb:
  324:in `locate'
      C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
  49:in `assert_exists'
      C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
  284:in `enabled?'
      C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
  56:in `assert_enabled'
      C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
  229:in `click!'
     C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
  215:in `click!'

  Am i missing something basic, do i need to require anything else for
  using xpath?

  On Sep 8, 4:24 pm, Željko Filipin zeljko.fili...@wa-research.ch
  wrote:
  http://wiki.openqa.org/display/WTR/XPathsays:

   you can access frames using the attributes that Watir provides but you
   can't use xpath attribute for accessing frames

   Try this:

   browser.frame(:index, 3).cell(:xpath, //td[contains(@onclick ,
   'MainMenu.jmp?pid=97pName=Areas And Branches')]).click

   Željko- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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: trying to access onclick property in a td using xpath

2009-09-08 Thread Angrez Singh
can you post the full html over here? Is this cell inside the frame?

On Tue, Sep 8, 2009 at 5:55 PM, rs77 rishaind...@gmail.com wrote:


 these dont seem to work either
 **
  Using ie.cell(:text, /Areas And Branches/).click
 **
 E
 Finished in 1.734 seconds.

  1) Error:
 test_TCrecorded(TCrecorded):
 Watir::Exception::UnknownObjectException: Unable to locate element,
 using :text,
  /Areas And Branches/
 C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
 52:in `asser
 t_exists'
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
 284:in `enab
 led?'
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
 56:in `asser
 t_enabled'
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
 229:in `clic
 k!'
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
 215:in `clic
 k'
D:/Installers/watir/experimenting/JMP_CreateBranch.rb:54:in
 `test_TCrecorded

 -

 and when used (changed the double quotes to single around areas and
 branches as it was giving a syntax error)
 ie.element_by_xpath(//td[contains(.,'Areas And Branches')]).click
   1) Error:
 test_TCrecorded(TCrecorded):
 NoMethodError: undefined method `click' for nil:NilClass
D:/Installers/watir/experimenting/JMP_CreateBranch.rb:50:in
 `test_TCrecorded
 '

 1 tests, 0 assertions, 0 failures, 1 errors


 On Sep 8, 5:10 pm, Angrez Singh ang...@gmail.com wrote:
  does this works:
  ie.cell(:text, /Areas And Branches/).click
 
  or this:
  ie.element_by_xpath(//td[contains(., Areas And Branches)]).click
 
  - Angrez
 
 
 
  On Tue, Sep 8, 2009 at 5:03 PM, rs77 rishaind...@gmail.com wrote:
 
   still no luck :(
 
1) Error:
   test_TCrecorded(TCrecorded):
   NoMethodError: undefined method `element_by_xpath' for #Watir::Frame:
   0x2e55054
 
  C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/table.rb:
   324:in `locate'
   C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
   49:in `assert_exists'
   C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
   284:in `enabled?'
   C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
   56:in `assert_enabled'
   C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
   229:in `click!'
  C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
   215:in `click!'
 
   Am i missing something basic, do i need to require anything else for
   using xpath?
 
   On Sep 8, 4:24 pm, Željko Filipin zeljko.fili...@wa-research.ch
   wrote:
   http://wiki.openqa.org/display/WTR/XPathsays:
 
you can access frames using the attributes that Watir provides but
 you
can't use xpath attribute for accessing frames
 
Try this:
 
browser.frame(:index, 3).cell(:xpath, //td[contains(@onclick ,
'MainMenu.jmp?pid=97pName=Areas And Branches')]).click
 
Željko- Hide quoted text -
 
  - Show quoted text -
 


--~--~-~--~~~---~--~~
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 a sample code to import test data from Excel sheet

2009-09-08 Thread Richard Wijdenes

I´ve learned a lot from this example:

http://wiki.openqa.org/display/WTR/Excel+Data+Driven+Harness+with+Database+Verifications
--~--~-~--~~~---~--~~
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: trying to access onclick property in a td using xpath

2009-09-08 Thread rs77

here is the html code

body topmargin=5 leftmargin=3 onLoad=loadDefaultMenu();
onkeydown=keydowncheck();
  !-- Main Menu --
  table width=100%  border=0 cellpadding=0
cellspacing=0!-- Originally there was no height --
  !--DWLayoutTable--
  !-- Tabs --
  tr

td width=25 height=32 colspan=2  valign=topa
href=# onClick=img id=Pic1 src=./images/menuWindow/tabs/
1.jpg_selected.jpg width=30 height=32 title=Self Drive/a/
td
td  width=25 valign=topa href=#
onClick=img id=Pic2 src=./images/menuWindow/tabs/2.jpg
width=30 height=32 title=Chauffeur/a/td
td  width=25 valign=topa href=#
onClick=img id=Pic3 src=./images/menuWindow/tabs/3.jpg
width=30 height=32 title=Cashier/a/td
td  width=25 valign=topa href=#
onClick=img id=Pic4 src=./images/menuWindow/tabs/4.jpg
width=30 height=32 title=Foreign/a/td
td width=25 
valign=topa href=# onClick=img
id=Pic5   src=./images/menuWindow/tabs/4.jpg width=30
height=32 title=SetUp/a/td
  /tr
  !-- End Tabs --
  !-- User Info Section --
  tr
  td width=9 valign=top background=./images/
menuWindow/main_menu_left_border.jpg style=background-repeat:repeat-
y !--DWLayoutEmptyCell--nbsp;/td
  td height=25 colspan=5 valign=top
class=menuDividerSUPERVISOR Supervisor/td
  td width=9 background=./images/menuWindow/
main_menu_rigth_border.jpg style=background-repeat:repeat-y
nbsp;/td
  /tr
  !-- End User Info --
  tr
  td valign=top background=./images/menuWindow/
main_menu_left_border.jpg style=background-repeat:repeat-y !--
DWLayoutEmptyCell--nbsp;/td
  td colspan=5 height=569 valign=top
background=./images/menuWindow/menu_layer_bg.jpg
  !-- Originally Height=410 --
  !-- Tab1 Menu --
div id=Menu1 style=visibility:hidden;
position:absolute; top:64px 
table width=100% border=0 cellpadding=0
cellspacing=0 style=behavior:url(./styles/tablehl.htc);background-
color:#dededc;  slcolor=#8297C4  hlcolor=#8297c4 
  !--DWLayoutTable--
  !-- Menu Table 2 --
  !-- Menu Header--
thead
tr class=menuHeader
td width=15 height=18 valign=topnbsp;
img src=./images/general/white_on_light_blue_bullet.jpg/td
td width=118 valign=top nbsp; SetUp/td
td width=10 background=./images/menuWindow/
menu_top_shadow.jpg style=background-repeat:repeat-y /td
/tr
/thead
  !-- End Menu Header--
  !-- Menu Entries--
tr class=menuEntry1 !-- Enter here
class=menuEntry ONMOUSEOVER=this.runtimeStyle.background =
'8297c4'; onmouseout=this.runtimeStyle.background= 'dededc';--
td valign=top!--DWLayoutEmptyCell--nbsp;/
td
td height=18 valign=top
onclick=parent.content.location.href='MainMenu.jmp?pid=97pName=Areas
And Branches' style=cursor:hand  nbsp; Areas And Branches/td
td background=./images/menuWindow/
menu_side_shadow.jpg style=background-repeat:repeat-y /td
/tr


On Sep 8, 5:53 pm, Angrez Singh ang...@gmail.com wrote:
 can you post the full html over here? Is this cell inside the frame?



 On Tue, Sep 8, 2009 at 5:55 PM, rs77 rishaind...@gmail.com wrote:

  these dont seem to work either
  **
   Using ie.cell(:text, /Areas And Branches/).click
  **
  E
  Finished in 1.734 seconds.

   1) Error:
  test_TCrecorded(TCrecorded):
  Watir::Exception::UnknownObjectException: Unable to locate element,
  using :text,
   /Areas And Branches/
      C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
  52:in `asser
  t_exists'
     C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
  284:in `enab
  led?'
     C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
  56:in `asser
  t_enabled'
     C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
  229:in `clic
  k!'
     C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
  215:in `clic
  k'
     D:/Installers/watir/experimenting/JMP_CreateBranch.rb:54:in
  `test_TCrecorded

  -

  and when used (changed the double quotes to single around areas and
  branches as it was giving a syntax error)
  ie.element_by_xpath(//td[contains(.,'Areas And Branches')]).click
    1) Error:
  test_TCrecorded(TCrecorded):
  NoMethodError: undefined method `click' for 

[wtr-general] Re: trying to access onclick property in a td using xpath

2009-09-08 Thread Angrez Singh
Is this cell is inside a frame?

2009/9/8 rs77 rishaind...@gmail.com


 here is the html code

 body topmargin=5 leftmargin=3 onLoad=loadDefaultMenu();
 onkeydown=keydowncheck();
  !-- Main Menu --
  table width=100%  border=0 cellpadding=0
 cellspacing=0!-- Originally there was no height --
  !--DWLayoutTable--
  !-- Tabs --
  tr

td width=25 height=32 colspan=2  valign=topa
 href=# onClick=img id=Pic1 src=./images/menuWindow/tabs/
 1.jpg_selected.jpg width=30 height=32 title=Self Drive/a/
 td
td  width=25 valign=topa href=#
 onClick=img id=Pic2 src=./images/menuWindow/tabs/2.jpg
 width=30 height=32 title=Chauffeur/a/td
td  width=25 valign=topa href=#
 onClick=img id=Pic3 src=./images/menuWindow/tabs/3.jpg
 width=30 height=32 title=Cashier/a/td
td  width=25 valign=topa href=#
 onClick=img id=Pic4 src=./images/menuWindow/tabs/4.jpg
 width=30 height=32 title=Foreign/a/td
td
 width=25 valign=topa href=# onClick=img
 id=Pic5   src=./images/menuWindow/tabs/4.jpg width=30
 height=32 title=SetUp/a/td
  /tr
  !-- End Tabs --
  !-- User Info Section --
  tr
  td width=9 valign=top background=./images/
 menuWindow/main_menu_left_border.jpg style=background-repeat:repeat-
 y !--DWLayoutEmptyCell--nbsp;/td
  td height=25 colspan=5 valign=top
 class=menuDividerSUPERVISOR Supervisor/td
  td width=9 background=./images/menuWindow/
 main_menu_rigth_border.jpg style=background-repeat:repeat-y
 nbsp;/td
  /tr
  !-- End User Info --
  tr
  td valign=top background=./images/menuWindow/
 main_menu_left_border.jpg style=background-repeat:repeat-y !--
 DWLayoutEmptyCell--nbsp;/td
  td colspan=5 height=569 valign=top
 background=./images/menuWindow/menu_layer_bg.jpg
  !-- Originally Height=410 --
  !-- Tab1 Menu --
div id=Menu1 style=visibility:hidden;
 position:absolute; top:64px 
table width=100% border=0 cellpadding=0
 cellspacing=0 style=behavior:url(./styles/tablehl.htc);background-
 color:#dededc;  slcolor=#8297C4  hlcolor=#8297c4 
  !--DWLayoutTable--
  !-- Menu Table 2 --
  !-- Menu Header--
thead
tr class=menuHeader
td width=15 height=18 valign=topnbsp;
 img src=./images/general/white_on_light_blue_bullet.jpg/td
td width=118 valign=top nbsp; SetUp/td
td width=10 background=./images/menuWindow/
 menu_top_shadow.jpg style=background-repeat:repeat-y /td
/tr
/thead
  !-- End Menu Header--
  !-- Menu Entries--
tr class=menuEntry1 !-- Enter here
 class=menuEntry ONMOUSEOVER=this.runtimeStyle.background =
 '8297c4'; onmouseout=this.runtimeStyle.background= 'dededc';--
td valign=top!--DWLayoutEmptyCell--nbsp;/
 td
 td height=18 valign=top
 onclick=parent.content.location.href='MainMenu.jmp?pid=97pName=Areas
 And Branches' style=cursor:hand  nbsp; Areas And Branches/td
 td background=./images/menuWindow/
 menu_side_shadow.jpg style=background-repeat:repeat-y /td
/tr


 On Sep 8, 5:53 pm, Angrez Singh ang...@gmail.com wrote:
  can you post the full html over here? Is this cell inside the frame?
 
 
 
  On Tue, Sep 8, 2009 at 5:55 PM, rs77 rishaind...@gmail.com wrote:
 
   these dont seem to work either
   **
Using ie.cell(:text, /Areas And Branches/).click
   **
   E
   Finished in 1.734 seconds.
 
1) Error:
   test_TCrecorded(TCrecorded):
   Watir::Exception::UnknownObjectException: Unable to locate element,
   using :text,
/Areas And Branches/
   C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
   52:in `asser
   t_exists'
  C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
   284:in `enab
   led?'
  C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
   56:in `asser
   t_enabled'
  C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
   229:in `clic
   k!'
  C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
   215:in `clic
   k'
  D:/Installers/watir/experimenting/JMP_CreateBranch.rb:54:in
   `test_TCrecorded
 
   -
 
   and when used (changed the double quotes to single around areas and
   branches as it was giving a syntax error)
   ie.element_by_xpath(//td[contains(.,'Areas And Branches')]).click
 1) Error:
   

[wtr-general] Re: trying to access onclick property in a td using xpath

2009-09-08 Thread rs77

yes , its in a frame toc
the whole page has 3 frames
top frame
toc frame - sidemenu.htm (where Areas and Branches is a cell) and
content frame...which has further htm pages.

On Sep 8, 6:38 pm, Angrez Singh ang...@gmail.com wrote:
 Is this cell is inside a frame?

 2009/9/8 rs77 rishaind...@gmail.com





  here is the html code

  body topmargin=5 leftmargin=3 onLoad=loadDefaultMenu();
  onkeydown=keydowncheck();
                   !-- Main Menu --
                   table width=100%  border=0 cellpadding=0
  cellspacing=0!-- Originally there was no height --
           !--DWLayoutTable--
                       !-- Tabs --
               tr

     td width=25 height=32 colspan=2  valign=topa
  href=# onClick=img id=Pic1 src=./images/menuWindow/tabs/
  1.jpg_selected.jpg width=30 height=32 title=Self Drive/a/
  td
                     td  width=25 valign=topa href=#
  onClick=img id=Pic2 src=./images/menuWindow/tabs/2.jpg
  width=30 height=32 title=Chauffeur/a/td
                     td  width=25 valign=topa href=#
  onClick=img id=Pic3 src=./images/menuWindow/tabs/3.jpg
  width=30 height=32 title=Cashier/a/td
                     td  width=25 valign=topa href=#
  onClick=img id=Pic4 src=./images/menuWindow/tabs/4.jpg
  width=30 height=32 title=Foreign/a/td
                                                                 td
  width=25 valign=topa href=# onClick=img
  id=Pic5   src=./images/menuWindow/tabs/4.jpg width=30
  height=32 title=SetUp/a/td
               /tr
                       !-- End Tabs --
                       !-- User Info Section --
               tr
                   td width=9 valign=top background=./images/
  menuWindow/main_menu_left_border.jpg style=background-repeat:repeat-
  y !--DWLayoutEmptyCell--nbsp;/td
                   td height=25 colspan=5 valign=top
  class=menuDivider    SUPERVISOR Supervisor/td
                   td width=9 background=./images/menuWindow/
  main_menu_rigth_border.jpg style=background-repeat:repeat-y
  nbsp;/td
               /tr
                       !-- End User Info --
               tr
                   td valign=top background=./images/menuWindow/
  main_menu_left_border.jpg style=background-repeat:repeat-y !--
  DWLayoutEmptyCell--nbsp;/td
                   td colspan=5 height=569 valign=top
  background=./images/menuWindow/menu_layer_bg.jpg
           !-- Originally Height=410 --
           !-- Tab1 Menu --
                 div id=Menu1 style=visibility:hidden;
  position:absolute; top:64px 
                 table width=100% border=0 cellpadding=0
  cellspacing=0 style=behavior:url(./styles/tablehl.htc);background-
  color:#dededc;  slcolor=#8297C4  hlcolor=#8297c4 
           !--DWLayoutTable--
           !-- Menu Table 2 --
           !-- Menu Header--
                                                                 thead
                 tr class=menuHeader
                     td width=15 height=18 valign=topnbsp;
  img src=./images/general/white_on_light_blue_bullet.jpg/td
                     td width=118 valign=top nbsp; SetUp/td
                     td width=10 background=./images/menuWindow/
  menu_top_shadow.jpg style=background-repeat:repeat-y /td
                 /tr
                                                                 /thead
           !-- End Menu Header--
           !-- Menu Entries--
                 tr class=menuEntry1 !-- Enter here
  class=menuEntry ONMOUSEOVER=this.runtimeStyle.background =
  '8297c4'; onmouseout=this.runtimeStyle.background= 'dededc';--
                     td valign=top!--DWLayoutEmptyCell--nbsp;/
  td
                      td height=18 valign=top
  onclick=parent.content.location.href='MainMenu.jmp?pid=97pName=Areas
  And Branches' style=cursor:hand  nbsp; Areas And Branches/td
                      td background=./images/menuWindow/
  menu_side_shadow.jpg style=background-repeat:repeat-y /td
                 /tr

  On Sep 8, 5:53 pm, Angrez Singh ang...@gmail.com wrote:
   can you post the full html over here? Is this cell inside the frame?

   On Tue, Sep 8, 2009 at 5:55 PM, rs77 rishaind...@gmail.com wrote:

these dont seem to work either
**
 Using ie.cell(:text, /Areas And Branches/).click
**
E
Finished in 1.734 seconds.

 1) Error:
test_TCrecorded(TCrecorded):
Watir::Exception::UnknownObjectException: Unable to locate element,
using :text,
 /Areas And Branches/
    C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
52:in `asser
t_exists'
   C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
284:in `enab
led?'
   C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
56:in `asser
t_enabled'
   C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
229:in `clic
k!'
   C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
215:in `clic
k'

[wtr-general] Re: trying to access onclick property in a td using xpath

2009-09-08 Thread Angrez Singh
try ie.frame(:name, [frame name]).cell(:text, /Areas/).click

- Angrez

On Tue, Sep 8, 2009 at 7:17 PM, rs77 rishaind...@gmail.com wrote:


 yes , its in a frame toc
 the whole page has 3 frames
 top frame
 toc frame - sidemenu.htm (where Areas and Branches is a cell) and
 content frame...which has further htm pages.

 On Sep 8, 6:38 pm, Angrez Singh ang...@gmail.com wrote:
  Is this cell is inside a frame?
 
  2009/9/8 rs77 rishaind...@gmail.com
 
 
 
 
 
   here is the html code
 
   body topmargin=5 leftmargin=3 onLoad=loadDefaultMenu();
   onkeydown=keydowncheck();
!-- Main Menu --
table width=100%  border=0 cellpadding=0
   cellspacing=0!-- Originally there was no height --
!--DWLayoutTable--
!-- Tabs --
tr
 
  td width=25 height=32 colspan=2  valign=topa
   href=# onClick=img id=Pic1 src=./images/menuWindow/tabs/
   1.jpg_selected.jpg width=30 height=32 title=Self Drive/a/
   td
  td  width=25 valign=topa href=#
   onClick=img id=Pic2 src=./images/menuWindow/tabs/2.jpg
   width=30 height=32 title=Chauffeur/a/td
  td  width=25 valign=topa href=#
   onClick=img id=Pic3 src=./images/menuWindow/tabs/3.jpg
   width=30 height=32 title=Cashier/a/td
  td  width=25 valign=topa href=#
   onClick=img id=Pic4 src=./images/menuWindow/tabs/4.jpg
   width=30 height=32 title=Foreign/a/td
  td
   width=25 valign=topa href=# onClick=img
   id=Pic5   src=./images/menuWindow/tabs/4.jpg width=30
   height=32 title=SetUp/a/td
/tr
!-- End Tabs --
!-- User Info Section --
tr
td width=9 valign=top background=./images/
   menuWindow/main_menu_left_border.jpg style=background-repeat:repeat-
   y !--DWLayoutEmptyCell--nbsp;/td
td height=25 colspan=5 valign=top
   class=menuDividerSUPERVISOR Supervisor/td
td width=9 background=./images/menuWindow/
   main_menu_rigth_border.jpg style=background-repeat:repeat-y
   nbsp;/td
/tr
!-- End User Info --
tr
td valign=top background=./images/menuWindow/
   main_menu_left_border.jpg style=background-repeat:repeat-y !--
   DWLayoutEmptyCell--nbsp;/td
td colspan=5 height=569 valign=top
   background=./images/menuWindow/menu_layer_bg.jpg
!-- Originally Height=410 --
!-- Tab1 Menu --
  div id=Menu1 style=visibility:hidden;
   position:absolute; top:64px 
  table width=100% border=0 cellpadding=0
   cellspacing=0 style=behavior:url(./styles/tablehl.htc);background-
   color:#dededc;  slcolor=#8297C4  hlcolor=#8297c4 
!--DWLayoutTable--
!-- Menu Table 2 --
!-- Menu Header--
  thead
  tr class=menuHeader
  td width=15 height=18 valign=topnbsp;
   img src=./images/general/white_on_light_blue_bullet.jpg/td
  td width=118 valign=top nbsp; SetUp/td
  td width=10 background=./images/menuWindow/
   menu_top_shadow.jpg style=background-repeat:repeat-y /td
  /tr
  /thead
!-- End Menu Header--
!-- Menu Entries--
  tr class=menuEntry1 !-- Enter here
   class=menuEntry ONMOUSEOVER=this.runtimeStyle.background =
   '8297c4'; onmouseout=this.runtimeStyle.background= 'dededc';--
  td valign=top!--DWLayoutEmptyCell--nbsp;/
   td
   td height=18 valign=top
   onclick=parent.content.location.href='MainMenu.jmp?pid=97pName=Areas
   And Branches' style=cursor:hand  nbsp; Areas And Branches/td
   td background=./images/menuWindow/
   menu_side_shadow.jpg style=background-repeat:repeat-y /td
  /tr
 
   On Sep 8, 5:53 pm, Angrez Singh ang...@gmail.com wrote:
can you post the full html over here? Is this cell inside the frame?
 
On Tue, Sep 8, 2009 at 5:55 PM, rs77 rishaind...@gmail.com wrote:
 
 these dont seem to work either
 **
  Using ie.cell(:text, /Areas And Branches/).click
 **
 E
 Finished in 1.734 seconds.
 
  1) Error:
 test_TCrecorded(TCrecorded):
 Watir::Exception::UnknownObjectException: Unable to locate element,
 using :text,
  /Areas And Branches/

 C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
 52:in `asser
 t_exists'
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
 284:in `enab
 led?'

[wtr-general] Re: Watir Logo Refresh Competition

2009-09-08 Thread Richard Wijdenes

I've done a posting in a creative forum (for sigs in a game forum).
Perhaps this will lead to some more logo's to choose from.
--~--~-~--~~~---~--~~
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 massive watir crawl..

2009-09-08 Thread AR

I've had the same issue while doing a little sanity checking on some
marketing websites that we control.  Using IE.new_process helped a
little, but Ruby would always die before the script completed.

On Aug 30, 6:33 pm, Chris McMahon christopher.mcma...@gmail.com
wrote:
  looks to me that something must be stuck somewhere, and I need to
  clear that away, but I don't know what I need to clear away.. I
  restarted the computer, but the problem does not go away.

  Could anyone tell me what I need to clear away in order to have smooth
  internet access??

 I seem to recall that Ruby under some circumstances will hog memory
 until Bad Things Happen.

 If you're crawling all these pages and saving bits of information, be
 sure you're writing out to a file along the way and flushing the write
 buffer when you do it.

 -Chris
--~--~-~--~~~---~--~~
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 Logo Refresh Competition

2009-09-08 Thread Željko Filipin
On Tue, Sep 8, 2009 at 6:27 PM, Richard Wijdenes richard.wijde...@gmail.com
wrote:
 I've done a posting in a creative forum (for sigs in a game forum).

Can you post a link?

Ž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] Ci_reporter on watircraft

2009-09-08 Thread pallavi shashidhar
Hi there,
I am looking at using Ci_reporter in watircraft framework. Has anyone tried
to use it. ?
We use cucumber on watircraft and has a set of features that needs to be run
and publish results.
Basically i have to publish the watircraft results on CI server which
understands the xml format which is given out by Ci_reporter.

Regards,
Pallavi

--~--~-~--~~~---~--~~
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: trying to access onclick property in a td using xpath

2009-09-08 Thread rs77


now this is getting really weird.

I do a show_frames and it gives me names of 3 frames.
when i used the comman you suggested.
ie.frame(:name, ['toc']).cell(:text, /Areas/).click ..
it simply denies that the frame exists?

In the code the frames are defined in the main menu as
frameset  rows=50px,* cols=* frameborder=NO border=0
framespacing=0 
 frame scrolling=NO noresize  src=TopLogo.html   
name=top
id=top 

frameset  cols=152px,* frameborder=NO border=0
framespacing=0 id=mainframeset
frame scrolling=NO noresize 
src=SideMenu.htm  name=toc

 frame src= WelcomeMsg.html 
name=content scrolling=NO
/frameset
/frameset

i am trying to access cell 'Areas And Branches' from SideMenu.htm
which is in frameset named 'toc'

here is the error
Started
there are 3 frames
frame  index: 1 name: top
frame  index: 2 name: toc
frame  index: 3 name: content
E
Finished in 1.734 seconds.

  1) Error:
test_TCrecorded(TCrecorded):
Watir::Exception::UnknownFrameException: Unable to locate a frame with
name toc
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/frame.rb:
40:in `locate'

C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/frame.rb:
47:in `initial
ize'
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/container.rb:
102:in `ne
w'
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/container.rb:
102:in `fr
ame'


On Sep 8, 8:25 pm, Angrez Singh ang...@gmail.com wrote:
 try ie.frame(:name, [frame name]).cell(:text, /Areas/).click

 - Angrez



 On Tue, Sep 8, 2009 at 7:17 PM, rs77 rishaind...@gmail.com wrote:

  yes , its in a frame toc
  the whole page has 3 frames
  top frame
  toc frame - sidemenu.htm (where Areas and Branches is a cell) and
  content frame...which has further htm pages.

  On Sep 8, 6:38 pm, Angrez Singh ang...@gmail.com wrote:
   Is this cell is inside a frame?

   2009/9/8 rs77 rishaind...@gmail.com

here is the html code

body topmargin=5 leftmargin=3 onLoad=loadDefaultMenu();
onkeydown=keydowncheck();
                 !-- Main Menu --
                 table width=100%  border=0 cellpadding=0
cellspacing=0!-- Originally there was no height --
         !--DWLayoutTable--
                     !-- Tabs --
             tr

   td width=25 height=32 colspan=2  valign=topa
href=# onClick=img id=Pic1 src=./images/menuWindow/tabs/
1.jpg_selected.jpg width=30 height=32 title=Self Drive/a/
td
                   td  width=25 valign=topa href=#
onClick=img id=Pic2 src=./images/menuWindow/tabs/2.jpg
width=30 height=32 title=Chauffeur/a/td
                   td  width=25 valign=topa href=#
onClick=img id=Pic3 src=./images/menuWindow/tabs/3.jpg
width=30 height=32 title=Cashier/a/td
                   td  width=25 valign=topa href=#
onClick=img id=Pic4 src=./images/menuWindow/tabs/4.jpg
width=30 height=32 title=Foreign/a/td
                                                               td
width=25 valign=topa href=# onClick=img
id=Pic5   src=./images/menuWindow/tabs/4.jpg width=30
height=32 title=SetUp/a/td
             /tr
                     !-- End Tabs --
                     !-- User Info Section --
             tr
                 td width=9 valign=top background=./images/
menuWindow/main_menu_left_border.jpg style=background-repeat:repeat-
y !--DWLayoutEmptyCell--nbsp;/td
                 td height=25 colspan=5 valign=top
class=menuDivider    SUPERVISOR Supervisor/td
                 td width=9 background=./images/menuWindow/
main_menu_rigth_border.jpg style=background-repeat:repeat-y
nbsp;/td
             /tr
                     !-- End User Info --
             tr
                 td valign=top background=./images/menuWindow/
main_menu_left_border.jpg style=background-repeat:repeat-y !--
DWLayoutEmptyCell--nbsp;/td
                 td colspan=5 height=569 valign=top
background=./images/menuWindow/menu_layer_bg.jpg
         !-- Originally Height=410 --
         !-- Tab1 Menu --
               div id=Menu1 style=visibility:hidden;
position:absolute; top:64px 
               table width=100% border=0 cellpadding=0
cellspacing=0 style=behavior:url(./styles/tablehl.htc);background-
color:#dededc;  slcolor=#8297C4  hlcolor=#8297c4 
         !--DWLayoutTable--
         !-- Menu Table 2 --
         !-- Menu Header--
                                                               thead
               tr class=menuHeader
                   td width=15 height=18 valign=topnbsp;
img src=./images/general/white_on_light_blue_bullet.jpg/td
                   td width=118 valign=top nbsp; SetUp/td
                   td width=10 background=./images/menuWindow/
menu_top_shadow.jpg 

[wtr-general] Re: Watir Logo Refresh Competition

2009-09-08 Thread Tony

Hi Alister,

Are you still accepting logos ... ??

Thanks,
Tony
--~--~-~--~~~---~--~~
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 handle Modal Dialog Box

2009-09-08 Thread Rajat Singhal

Hi All

I have a html page (modal_dialog_launcher.html) which contains a modal
dialog box(modal_dialog.html):

modal_dialog_launcher.html:

html
head
titleModal Browser Dialog Launcher/title
/head
body
h1Modal Browser Dialog Launcher/h1
input type = button value = Launch Dialog onclick =
javascript:document.all.modaloutput.value=window.showModalDialog
('modal_dialog.html');/input
br/br
pText from Modal:/p
input type = text name = modaloutput/input
/body
/html

modal_dialog.html:

html
headtitleModal Dialog/title/head

body
pEnter some text:/p
input type=text name=modal_text /
input type=button value=Close
onClick=javascript:window.returnValue=modal_text.value; window.close
();/
/body/html

I have to set some text in a text filed on modal dialog box
I used this code:

ie=Watir::IE.attach(:title,'Modal Dialog')
ie.text_field(:name,'modal_text').set(watir)
But it throws an error:

Unable to locate a window with title of Modal Dialog
(Watir::Exception::NoMatchingWindowFoundException)

can anyone help me ,how to attach modal dialog box and perform some
action on its elements.
Thanks


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