[wtr-general] How to click on link using href

2010-11-10 Thread vasu
Hi,

Iam tried all methods provided to identigy the logoff link using href
but getting error message as Unable to locate element

Source code is like this
=
href='/csr/CSRUserHandler?perform=logoff

How to click on logogg page using this property.

Tried the following:
ie.link(:href, '/csr/CSRUserHandler?perform=logoff').click
ie.link(:href, /CSRUserHandler?perform=logoff/').click

Need help

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Re: Using HTML report V2 - Reports displayed twice in HTML format

2010-11-10 Thread Željko Filipin
On Wed, Nov 10, 2010 at 11:39 AM, vasu br.vas...@gmail.com wrote:
 Please help me in this issue.

Looks like nobody is using that report.

Željko

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Unable to call ruby script multiple times!!

2010-11-10 Thread Željko Filipin
On Wed, Nov 10, 2010 at 6:16 AM, Chethan chethan2...@gmail.com wrote:
 But I am unable to execute multiple times.

Show us the code.

Željko
--
watir.com - community manager
watirpodcast.com - host
testingpodcast.com - audio podcasts on software testing. all of them

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Re: Recent Stack Overflow Questions Tagged Watir

2010-11-10 Thread Željko Filipin
http://stackoverflow.com/questions/4143410/planning-to-adopt-watir-for-our-ui-testing-needs-is-it-the-right-tool

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] using Watirgrid on unit test cases

2010-11-10 Thread Danijel
Hi,

I haved created a lot of unit test case in watir for IE. I would like
to use watirgrid to execute parallel test on multiple browser.

Can you please advise me how to integrate watirgrid into existing test
cases.

class SMOKE_TEST  Test::Unit::TestCase
def setup
 # start IE
end
def teardown
# close IE
end
def test_a
# clink on browser
end
def test_b
# clink on browser
end
def test_c
# clink on browser
end
end

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Re: Recent Stack Overflow Questions Tagged Watir

2010-11-10 Thread Željko Filipin
http://stackoverflow.com/questions/4140749/watir-script-called-within-a-watir-script

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] How to click on link using href

2010-11-10 Thread Željko Filipin
On Wed, Nov 10, 2010 at 11:02 AM, vasu br.vas...@gmail.com wrote:
 href='/csr/CSRUserHandler?perform=logoff

Try this:

 ie.link(:href, /logoff/').click

Željko
--
watir.com - community manager
watirpodcast.com - host
testingpodcast.com - audio podcasts on software testing. all of them

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: How to click on link using href

2010-11-10 Thread vasu
Thanks a lot. Its working.

On Nov 10, 3:06 pm, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
 On Wed, Nov 10, 2010 at 11:02 AM, vasu br.vas...@gmail.com wrote:
  href='/csr/CSRUserHandler?perform=logoff

 Try this:

  ie.link(:href, /logoff/').click

 Željko
 --
 watir.com - community manager
 watirpodcast.com - host
 testingpodcast.com - audio podcasts on software testing. all of them

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: Using HTML report V2 - Reports displayed twice in HTML format

2010-11-10 Thread vasu
Please help me in this issue.

On Nov 9, 2:28 pm, vasu br.vas...@gmail.com wrote:
 Hi,

 Iam using using HTML report class (http://wiki.openqa.org/display/WTR/
 HTML+report+class+(version+2))

 Data was displayed twice in the HTML report. Please help me in this
 regard.

 Thanks  regards,
 Vasu

 On Nov 9, 2:19 pm, Željko Filipin zeljko.fili...@wa-research.ch
 wrote:







  On Tue, Nov 9, 2010 at 8:22 AM, vasu br.vas...@gmail.com wrote:
   Iam using default HTML reporter.

  I did not know Watir has HTML reporter. Could you please provide more
  information?

  Željko
  --
  watir.com - community manager
  watirpodcast.com - host
  testingpodcast.com - audio podcasts on software testing. all of them

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: Entering UTF8 Characters

2010-11-10 Thread Richard Wijdenes
I've also ran into this problem. I've started working on my
testscripts using IE and reading data form a spreadsheet. This wasn't
functioning for special chars untill i've added require 'win32ole'
WIN32OLE.codepage = WIN32OLE::CP_UTF8

But when i tried to get the same scripts running in firefox, the
described problem occured. I didn't find a solution yet.

So my only advice to you is to use IE

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Re: Entering UTF8 Characters

2010-11-10 Thread Ethan
Firewatir doesn't work with UTF8. Vapir-Firefox is a much-improved fork of
firewatir which fully supports UTF8 characters. See http://vapir.org/

On Wed, Nov 10, 2010 at 09:45, Richard Wijdenes
richard.wijde...@gmail.comwrote:

 I've also ran into this problem. I've started working on my
 testscripts using IE and reading data form a spreadsheet. This wasn't
 functioning for special chars untill i've added require 'win32ole'
 WIN32OLE.codepage = WIN32OLE::CP_UTF8

 But when i tried to get the same scripts running in firefox, the
 described problem occured. I didn't find a solution yet.

 So my only advice to you is to use IE

 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 watir-general@googlegroups.com
 http://groups.google.com/group/watir-general
 watir-general+unsubscr...@googlegroups.com


-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: Problem clicking with element_by_xpath

2010-11-10 Thread Dave McNulla
Ethan,

You have some really good ideas in there. How committed are you to
Vapir? Just curious. I think the Watir community is pretty strong. How
adoption and community affect sustainability are going to affect
people's decisions for which library to use. Just my opinion. Either
way, keep the ideas rolling.

Thanks,

Dave

On Nov 5, 12:33 pm, Ethan notet...@gmail.com wrote:
 Vapir is an fork of Watir, so it's an alternative to it. Everything is
 compatible with Watir's API, with a couple minor exceptions. It works with
 all recent versions of ruby. have a look at these wiki pages:

    - Getting Started http://wiki.github.com/vapir/vapir/getting-started
    - Coming from Watirhttp://wiki.github.com/vapir/vapir/coming-from-watir
    - Differences from Watir
 (API)http://wiki.github.com/vapir/vapir/differences-from-watir-api







 On Fri, Nov 5, 2010 at 14:51, Reciprocity george.wi...@gmail.com wrote:
  Thanks for you reply. So if I want to move to a newer version of ruby
  I should use Vapir. If I want move to a newer version of watir, ruby
  186 is recommended? Does Vapir work with the newest versions of ruby
  and watir?

  On Nov 5, 12:03 pm, Ethan notet...@gmail.com wrote:
   I don't think the mingw32 ruby version (that is, the latest one-click
   installers) are supported by watir; the older mswin32 ruby 1.8.6 is
   currently recommended.

   I recommend Vapir (http://vapir.org);itworks on all versions of ruby
  since
   1.8.6.

   On Fri, Nov 5, 2010 at 11:47, Reciprocity george.wi...@gmail.com
  wrote:
I'm trying to click this using Ruby 1.8.7 and Watir 1.6.7.

tr onclick=goTo('/Administration/DeleteFilter.asp', 'Claim')

The code below worked in Ruby 1.8.6 and Watir 1.6.2

@what = '/Administration/DeleteFilter.asp'
ie.element_by_xpath(//tr[contains(@onclick, '#...@what}')]/).click()

I'm getting this error.

C:/ruby187/lib/ruby/gems/1.8/gems/watir-1.6.7/lib/watir/winClicker.rb:
208: [BUG] Segmentation fault
ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32]

This application has requested the Runtime to terminate it in an
unusual way.
Please contact the application's support team for more information.

Any ideas?

--
Before posting, please readhttp://watir.com/support. In short: search
before you ask, be nice.

watir-general@googlegroups.com
   http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com- Hide quoted text -

   - Show quoted text -

  --
  Before posting, please readhttp://watir.com/support. In short: search
  before you ask, be nice.

  watir-general@googlegroups.com
 http://groups.google.com/group/watir-general
  watir-general+unsubscr...@googlegroups.com

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Re: Problem clicking with element_by_xpath

2010-11-10 Thread Ethan
Hi Dave,
I'm continuing to improve Vapir and release new versions, and committed to
doing so for the foreseeable future.

On Wed, Nov 10, 2010 at 12:56, Dave McNulla mcnu...@gmail.com wrote:

 Ethan,

 You have some really good ideas in there. How committed are you to
 Vapir? Just curious. I think the Watir community is pretty strong. How
 adoption and community affect sustainability are going to affect
 people's decisions for which library to use. Just my opinion. Either
 way, keep the ideas rolling.

 Thanks,

 Dave

 On Nov 5, 12:33 pm, Ethan notet...@gmail.com wrote:
  Vapir is an fork of Watir, so it's an alternative to it. Everything is
  compatible with Watir's API, with a couple minor exceptions. It works
 with
  all recent versions of ruby. have a look at these wiki pages:
 
 - Getting Started http://wiki.github.com/vapir/vapir/getting-started
 
 - Coming from Watir
 http://wiki.github.com/vapir/vapir/coming-from-watir
 - Differences from Watir
  (API)http://wiki.github.com/vapir/vapir/differences-from-watir-api
 
 
 
 
 
 
 
  On Fri, Nov 5, 2010 at 14:51, Reciprocity george.wi...@gmail.com
 wrote:
   Thanks for you reply. So if I want to move to a newer version of ruby
   I should use Vapir. If I want move to a newer version of watir, ruby
   186 is recommended? Does Vapir work with the newest versions of ruby
   and watir?
 
   On Nov 5, 12:03 pm, Ethan notet...@gmail.com wrote:
I don't think the mingw32 ruby version (that is, the latest one-click
installers) are supported by watir; the older mswin32 ruby 1.8.6 is
currently recommended.
 
I recommend Vapir (http://vapir.org);itworks on all versions of ruby
   since
1.8.6.
 
On Fri, Nov 5, 2010 at 11:47, Reciprocity george.wi...@gmail.com
   wrote:
 I'm trying to click this using Ruby 1.8.7 and Watir 1.6.7.
 
 tr onclick=goTo('/Administration/DeleteFilter.asp', 'Claim')
 
 The code below worked in Ruby 1.8.6 and Watir 1.6.2
 
 @what = '/Administration/DeleteFilter.asp'
 ie.element_by_xpath(//tr[contains(@onclick,
 '#...@what}')]/).click()
 
 I'm getting this error.
 

 C:/ruby187/lib/ruby/gems/1.8/gems/watir-1.6.7/lib/watir/winClicker.rb:
 208: [BUG] Segmentation fault
 ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32]
 
 This application has requested the Runtime to terminate it in an
 unusual way.
 Please contact the application's support team for more information.
 
 Any ideas?
 
 --
 Before posting, please readhttp://watir.com/support. In short:
 search
 before you ask, be nice.
 
 watir-general@googlegroups.com
http://groups.google.com/group/watir-general
 watir-general+unsubscr...@googlegroups.com- Hide quoted text -
 
- Show quoted text -
 
   --
   Before posting, please readhttp://watir.com/support. In short: search
   before you ask, be nice.
 
   watir-general@googlegroups.com
  http://groups.google.com/group/watir-general
   watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com

 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 watir-general@googlegroups.com
 http://groups.google.com/group/watir-general
 watir-general+unsubscr...@googlegroups.com


-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Need help in creating HTML reports

2010-11-10 Thread vasu
Hi,

Iam using HTML class but facing some issues. And i need to display the
test automation status in HTML format. Please help me out.

Regards,
Vasu

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com