Re: [wtr-general] Re: How do i set selenium script time out?

2019-02-27 Thread Joe Fleck
Hi Titus,

Just wanted to confirm what I did and provided yesterday helped.

Joe

On Tue, Feb 26, 2019 at 4:42 PM Joe Fleck  wrote:

> Hi Titus,
>
> Never mind.  I believe I figured out where it went.  If not please let me
> know.
>
> I used the 'Selenium::WebDriver.logger.level = :info' and the output is
> listed below.  It looks as though it was added correctly.
> I ran the spec test and it failed for the same reason above.  ( script
> timeout: result was not received in 30 seconds )
>
>
> 2019-02-26 16:29:14 INFO Selenium -> POST session
> 2019-02-26 16:29:14 INFO Selenium>>> http://127.0.0.1:9558/session |
>
> {"desiredCapabilities":{"browserName":"chrome","version":"","platform":"ANY",
>
> "javascriptEnabled":true,"cssSelectorsEnabled":true,"takesScreenshot":false,
> "nativeEvents":false,"rotatable":false,*"timeouts":{"script":6}*,
> *"goog:chromeOptions":{*
> *"prefs":{"credentials_enable_service":false,"w3c":true},*
> "args":["--ignore-certificate-errors","--disable-popup-blocking",
> "--disable-translate","--disable-download-notification","--enable-logging",
>
> "--v=1","--no-sandbox","--disable-infobars","--disable-password-generation"]}},
>
> "capabilities":{"firstMatch":[{"browserName":"chrome",
> *"timeouts":{"script":6},*
> *"goog:chromeOptions":{"prefs":*
> *{"credentials_enable_service":false,"w3c":true},*
>
> "args":["--ignore-certificate-errors","--disable-popup-blocking","--disable-translate",
>
> "--disable-download-notification","--enable-logging","--v=1","--no-sandbox",
> "--disable-infobars","--disable-password-generation"]}}]}}
> 2019-02-26 16:29:15 INFO Selenium <-
> {"sessionId":"fb808346d7541e4687cd4e32f76b2c6b",
> "status":0,"value":{"acceptInsecureCerts":false,"acceptSslCerts":false,
> "applicationCacheEnabled":false,"browserConnectionEnabled":false,
> "browserName":"chrome","chrome":{"chromedriverVersion":"2.42.591059
> (a3d9684d10d61aa0c45f6723b327283be1ebaad8)","userDataDir":
>
> "/var/folders/b8/87wnshxn3h76c0b59c3f1c8jd10zkq/T/.org.chromium.Chromium.MSnlfZ"},
> "cssSelectorsEnabled":true,"databaseEnabled":false,
>
> "goog:chromeOptions":{"debuggerAddress":"localhost:54611"},
> "handlesAlerts":true,"hasTouchScreen":false,"javascriptEnabled":true,
> "locationContextEnabled":true,"mobileEmulationEnabled":false,
>
> "nativeEvents":true,"networkConnectionEnabled":false,"pageLoadStrategy":"normal",
> "platform":"Mac OS X","rotatable":false,"setWindowRect":true,
>
> "takesHeapSnapshot":true,"takesScreenshot":true,"unexpectedAlertBehaviour":"",
> "version":"72.0.3626.119","webStorageEnabled":true}}
> 2019-02-26 16:29:15 INFO Selenium Detected OSS dialect.
>
> On Tue, Feb 26, 2019 at 4:26 PM Joe Fleck  wrote:
>
>> Sorry still learning but can that be added to my current setup?
>>
>>
>> On Tue, Feb 26, 2019 at 3:07 PM Titus Fortner 
>> wrote:
>>
>>> Try setting w3c: true in Chrome options, maybe I'm using the wrong
>>> signature for legacy Chrome.
>>>
>>> --
>>> --
>>> Before posting, please read
>>> https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
>>>
>>> In short: search before you ask, be nice.
>>>
>>> watir-general@googlegroups.com
>>> http://groups.google.com/group/watir-general
>>> watir-general+unsubscr...@googlegroups.com
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Watir General" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to watir-general+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>

-- 
-- 
Before posting, please read 
https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
 
In short: search before you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com
--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] Re: How do i set selenium script time out?

2019-02-26 Thread Joe Fleck
Hi Titus,

Never mind.  I believe I figured out where it went.  If not please let me
know.

I used the 'Selenium::WebDriver.logger.level = :info' and the output is
listed below.  It looks as though it was added correctly.
I ran the spec test and it failed for the same reason above.  ( script
timeout: result was not received in 30 seconds )


2019-02-26 16:29:14 INFO Selenium -> POST session
2019-02-26 16:29:14 INFO Selenium>>> http://127.0.0.1:9558/session |
{"desiredCapabilities":{"browserName":"chrome","version":"","platform":"ANY",
"javascriptEnabled":true,"cssSelectorsEnabled":true,"takesScreenshot":false,
"nativeEvents":false,"rotatable":false,*"timeouts":{"script":6}*,
*"goog:chromeOptions":{*
*"prefs":{"credentials_enable_service":false,"w3c":true},*
"args":["--ignore-certificate-errors","--disable-popup-blocking",
"--disable-translate","--disable-download-notification","--enable-logging",
"--v=1","--no-sandbox","--disable-infobars","--disable-password-generation"]}},

"capabilities":{"firstMatch":[{"browserName":"chrome",
*"timeouts":{"script":6},*
*"goog:chromeOptions":{"prefs":*
*{"credentials_enable_service":false,"w3c":true},*
"args":["--ignore-certificate-errors","--disable-popup-blocking","--disable-translate",
"--disable-download-notification","--enable-logging","--v=1","--no-sandbox",
"--disable-infobars","--disable-password-generation"]}}]}}
2019-02-26 16:29:15 INFO Selenium <-
{"sessionId":"fb808346d7541e4687cd4e32f76b2c6b",
"status":0,"value":{"acceptInsecureCerts":false,"acceptSslCerts":false,
"applicationCacheEnabled":false,"browserConnectionEnabled":false,
"browserName":"chrome","chrome":{"chromedriverVersion":"2.42.591059
(a3d9684d10d61aa0c45f6723b327283be1ebaad8)","userDataDir":
"/var/folders/b8/87wnshxn3h76c0b59c3f1c8jd10zkq/T/.org.chromium.Chromium.MSnlfZ"},
"cssSelectorsEnabled":true,"databaseEnabled":false,

"goog:chromeOptions":{"debuggerAddress":"localhost:54611"},
"handlesAlerts":true,"hasTouchScreen":false,"javascriptEnabled":true,
"locationContextEnabled":true,"mobileEmulationEnabled":false,
"nativeEvents":true,"networkConnectionEnabled":false,"pageLoadStrategy":"normal",
"platform":"Mac OS X","rotatable":false,"setWindowRect":true,
"takesHeapSnapshot":true,"takesScreenshot":true,"unexpectedAlertBehaviour":"",
"version":"72.0.3626.119","webStorageEnabled":true}}
2019-02-26 16:29:15 INFO Selenium Detected OSS dialect.

On Tue, Feb 26, 2019 at 4:26 PM Joe Fleck  wrote:

> Sorry still learning but can that be added to my current setup?
>
>
> On Tue, Feb 26, 2019 at 3:07 PM Titus Fortner 
> wrote:
>
>> Try setting w3c: true in Chrome options, maybe I'm using the wrong
>> signature for legacy Chrome.
>>
>> --
>> --
>> Before posting, please read
>> https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
>>
>> In short: search before you ask, be nice.
>>
>> watir-general@googlegroups.com
>> http://groups.google.com/group/watir-general
>> watir-general+unsubscr...@googlegroups.com
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Watir General" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to watir-general+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
-- 
Before posting, please read 
https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
 
In short: search before you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com
--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] Re: How do i set selenium script time out?

2019-02-26 Thread Joe Fleck
Sorry still learning but can that be added to my current setup?


On Tue, Feb 26, 2019 at 3:07 PM Titus Fortner 
wrote:

> Try setting w3c: true in Chrome options, maybe I'm using the wrong
> signature for legacy Chrome.
>
> --
> --
> Before posting, please read
> https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
>
> In short: search before you ask, be nice.
>
> watir-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com
> ---
> You received this message because you are subscribed to the Google Groups
> "Watir General" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to watir-general+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
Before posting, please read 
https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
 
In short: search before you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com
--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] Re: How do i set selenium script time out?

2019-02-26 Thread Joe Fleck
Hi Titus,

Here is the output you're looking for.  It looks like it is setting it but
I am not see it reflected when the spec is run.

2019-02-26 14:13:22 INFO Selenium>>>
http://127.0.0.1:9556/session |
{"desiredCapabilities":{"browserName":"chrome","version":"","platform":"ANY","javascriptEnabled":true,
"cssSelectorsEnabled":true,"takesScreenshot":false,"nativeEvents":false,"rotatable":false,
*"timeouts":{"script":6},*
"goog:chromeOptions":{"prefs":{"credentials_enable_service":false},
"args":["--ignore-certificate-errors","--disable-popup-blocking","--disable-translate",
"--disable-download-notification","--enable-logging","--v=1","--no-sandbox","--disable-infobars",
"--disable-password-generation"]}},"capabilities":{"firstMatch":[{"browserName":"chrome",
"timeouts":{"script":6},"goog:chromeOptions":{"prefs":{"credentials_enable_service":false},
"args":["--ignore-certificate-errors","--disable-popup-blocking","--disable-translate",
"--disable-download-notification","--enable-logging","--v=1","--no-sandbox",
"--disable-infobars","--disable-password-generation"]}}]}}

2019-02-26 14:13:22 INFO Selenium <-
{"sessionId":"2edac721fdf33cb68d3b3a64b02a3f27",
"status":0,"value":{"acceptInsecureCerts":false,"acceptSslCerts":false,
"applicationCacheEnabled":false,"browserConnectionEnabled":false,
"browserName":"chrome","chrome":{"chromedriverVersion":"2.42.591059
(a3d9684d10d61aa0c45f6723b327283be1ebaad8)"
,"userDataDir":"/var/folders/b8/87wnshxn3h76c0b59c3f1c8jd10zkq/T/.org.chromium.Chromium.ZzWbNC"},
"cssSelectorsEnabled":true,
"databaseEnabled":false,"goog:chromeOptions":{"debuggerAddress":"localhost:57475"},
"handlesAlerts":true,"hasTouchScreen":false,"javascriptEnabled":true,
"locationContextEnabled":true,"mobileEmulationEnabled":false,"nativeEvents":true,
"networkConnectionEnabled":false,"pageLoadStrategy":"normal","platform":"Mac
OS X",
"rotatable":false,"setWindowRect":true,"takesHeapSnapshot":true,"takesScreenshot":true,
"unexpectedAlertBehaviour":"","version":"72.0.3626.119","webStorageEnabled":true}}

On Tue, Feb 26, 2019 at 1:59 PM Titus Fortner 
wrote:

> I don't have time to test it right now, but it might be a bug. Try
> Selenium::Webdriver.logger.level = :info
> See if the timeout information is showing up when you initialize the
> browser.
>
> It's possible that watir isn't seeing both right now. I'm working on
> fixing it.
>
> --
> --
> Before posting, please read
> https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
>
> In short: search before you ask, be nice.
>
> watir-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com
> ---
> You received this message because you are subscribed to the Google Groups
> "Watir General" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to watir-general+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
Before posting, please read 
https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
 
In short: search before you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com
--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[wtr-general] How do i set selenium script time out?

2019-02-25 Thread Joe Fleck
Hi,.

I need to expand the duration of the wait on the *@page.run_asset* because
it could take longer than 30secs for the process to complete.  When I run
the test it still fails and displays the same error as before:

Failure/Error: @page.run_asset
Selenium::WebDriver::Error::ScriptTimeOutError: script timeout: result was
not received in 30 seconds

It was explained to me that I could do this:

browser = Watir::Browser.new(:chrome, timeouts: {script: 6})


Which I have:

@browser = Watir::Browser.new(:chrome, timeouts: { script: 60_000 },
options: @opts)

The script is still exiting after 30  seconds.

Any help on the would be greatly appreciated.


Thank you,

Joe

-- 
-- 
Before posting, please read 
https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
 
In short: search before you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com
--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] WATIR can be used for AngularJS?

2019-01-31 Thread Joe Fleck
It came in helpful for a few objects in our angular app but I was able to
use watir for most of it.

On Thu, Jan 31, 2019, 1:49 PM rajagopalan madasami <
rajagopalanmadas...@gmail.com wrote:

> Ok thank you
>
> On Fri, 1 Feb, 2019, 12:01 AM Titus Fortner 
>> This gem used to be a bigger deal because Watir required attribute values
>> to be defined directly. Now that we've opened this up more, all that you
>> get from watir_angular is to be able to inject the automatic waiting calls
>> that are found in Protractor. This may or may not be useful depending on
>> the specific angular application.
>>
>>
>>
>> On Tuesday, January 29, 2019 at 7:15:01 AM UTC-8, Joe Fl wrote:
>>>
>>> Hi,
>>>
>>> Yes, there is watir_angular.
>>>
>>> https://github.com/titusfortner/watir_angular
>>>
>>> Joe
>>>
>>> On Tue, Jan 29, 2019, 10:10 AM >>
 Hi Titus,

 Is it possible to automate AngularJs application using WATIR? Any gem
 is available?

 --
 --
 Before posting, please read
 https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.

 In short: search before you ask, be nice.

 watir-...@googlegroups.com
 http://groups.google.com/group/watir-general
 watir-genera...@googlegroups.com
 ---
 You received this message because you are subscribed to the Google
 Groups "Watir General" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to watir-genera...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

>>> --
>> --
>> Before posting, please read
>> https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
>>
>> In short: search before you ask, be nice.
>>
>> watir-general@googlegroups.com
>> http://groups.google.com/group/watir-general
>> watir-general+unsubscr...@googlegroups.com
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Watir General" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to watir-general+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> --
> Before posting, please read
> https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
>
> In short: search before you ask, be nice.
>
> watir-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com
> ---
> You received this message because you are subscribed to the Google Groups
> "Watir General" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to watir-general+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
Before posting, please read 
https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
 
In short: search before you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com
--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] WATIR can be used for AngularJS?

2019-01-29 Thread Joe Fleck
Hi,

Yes, there is watir_angular.

https://github.com/titusfortner/watir_angular

Joe

On Tue, Jan 29, 2019, 10:10 AM  Hi Titus,
>
> Is it possible to automate AngularJs application using WATIR? Any gem is
> available?
>
> --
> --
> Before posting, please read
> https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
>
> In short: search before you ask, be nice.
>
> watir-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com
> ---
> You received this message because you are subscribed to the Google Groups
> "Watir General" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to watir-general+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
Before posting, please read 
https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
 
In short: search before you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com
--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] Placing the value inside the text field loads the entire page, So Is there any function which will wait for the page load?

2017-02-12 Thread Joe Fleck
Hi.

I am not sure I follow what happens after the field is set but if you need
to wait for the text field you can use wait_until_present or .present?.

Joe

On Feb 11, 2017 10:21 AM, "Raja gopalan"  wrote:

There are certain kind of a text_field which I am automating, when I place
the value there like

b.text_field(:id,'something').set 'hi'


It refresh the entire page or it reloads the page, but the above code only
wait until element present and place the value inside the text field but it
doesn't take care of what happens after that.

Is there any function I can write like given below,


b.text_field(:id,'something').set 'hi'

b.waitForPageToLoad # Code like this?

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

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

---
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] How to identify the index of an element by text

2016-07-19 Thread Joe Fleck
I believe this should work.

div(:index => 4).text

Joe

On Jul 18, 2016 5:05 PM, "Soori"  wrote:

> I have a scenario where there is a grid of elements with same class name.
> I need to identify the element position using index.
>
> For example:
>
> 
> 
> text1
> text3
> text4
> text23
> text6
> text88
> text3
> 
> 
>
>
> in the above example,  I need to find the index of the div for "text6".
> Can you please help me how I can do this using watir?
>
> /S
>
> --
> --
> 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
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Watir General" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to watir-general+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

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

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] Time out issue in Watir

2016-01-19 Thread Joe Fleck
Hi,

I have run into this and it's usually the slowness of the app in the
browser.  Have watched the the script run to see if the button displays and
is enabled?

You might want to try watir-webdriver too.

Hi,
I am new to watir. I am trying to write a script to automate web testing at
my work. I would appreciate if anyone can help me out.

I am getting time out error(NOT Always) when i execute my script. The
script runs successfully sometimes and it does not run successfully
sometimes.


The script is very simple:-

@b.checkbox(:value => '-1') .click
   @b.link(:class => 'btnView').click
#After this step the scripts gets stuck

@b.button(:id => 'exitActionButton').when_present.click
#@b.button(:id => 'exitActionButton').click (#i have tried this
too. It will give me same issue as well)

Ruby version: 1.9
watir classic

Following is the error message

/ruby/gems/1.9.1/gems/watir-classic-4.2.0/lib/watir-classic/browser.rb:600:in
`sleep': execution expired (Timeout::Error)
uby/gems/1.9.1/gems/watir-classic-4.2.0/lib/watir-classic/browser.rb:600:in
`block in wait'
/ruby/gems/1.9.1/gems/watir-classic-4.2.0/lib/watir-classic/browser.rb:597:in
`wait'
/ruby/gems/1.9.1/gems/watir-classic-4.2.0/lib/watir-classic/element.rb:168:in
`click'
#Also, does watir has ability the hover the cursor?

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

---
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] Re: Handling a pop up in ruby and getting value from the pop up

2015-09-15 Thread Joe Fleck
Hi.

If you could provide related html that might help get an answer faster.

On Tue, Sep 15, 2015 at 9:28 AM, Super Kevy 
wrote:

> What type of popup.  A div element set or a modal dialog like a javascript
> alert.
>
>
> On Monday, September 14, 2015 at 11:13:35 PM UTC-5, Harsha Vardhan wrote:
>>
>> Hi,
>> I am using ruby mine and using watir or selenium webdriver how can I
>> handle pop up.??
>> I am trying to get a value displayed dynamically in the pop up and store
>> it in a variable .
>> How to do it ?
>>
> --
> --
> 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
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Watir General" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to watir-general+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

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

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] Drag n Drop not working for me with Firefox version25

2015-03-19 Thread Joe Fleck
@Chuck,

 I completely agree and since posting this I did update to the latest
version of firefox but based on Justin reply it will not work with Firefox.

At the moment I have switch to Chrome.

@Justin,  thank you for that information.

I really appreciate everyones feedback.

On Thu, Mar 19, 2015 at 4:42 AM, Chuck van der Linden sqa...@gmail.com
wrote:

 Why use such an old version of Firefox?  Unless you are in a very unique
 situation aprox zero real world users will be using a Firefox from 2013.
 Most home users will be on a very current version such as 35 or 36, most
 corporate users on the same, or the ESR release (31, moving to 38 in 2-5
 months)

 Updating test system images or containers can be a hassle yes, but I would
 recommend using as least the current ESR release of FF and updating once a
 new ESR is out.   See
 https://www.mozilla.org/en-US/firefox/organizations/faq/ for details

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] Drag n Drop not working for me with Firefox version25

2015-03-17 Thread Joe Fleck
Hi Titus,

Thanks for responding.  I gave that a try and still produce the same
result.  Probably something i am doing wrong.  I did not have a lot time
yesterday to work through this.

Joe

On Mon, Mar 16, 2015 at 12:24 PM, Titus Fortner titusfort...@gmail.com
wrote:

 Selenium 2.45 does not currently support Native Events:
 https://github.com/SeleniumHQ/selenium/blob/master/CHANGES#L12

 I haven't used Windows to know how this is or isn't set by default right
 now, but try explicitly turning it off if you need to like this:
 (http://watirwebdriver.com/firefox/)
 profile = Selenium::WebDriver::Firefox::Profile.new
 profile.native_events = false
 Watir::Browser.new :firefox, :profile = profile

 Titus


 On Mon, Mar 16, 2015 at 10:56 AM, Joe Fl joeflec...@gmail.com wrote:

 Hi,

 I am trying to use the drap drop method for watir-webdriver.

 System:  Windows8
 Browser: Firefox version 25
 Gem versions:  selenium-webdriver (2.45.0)
watir-webdriver (0.7.0)


 Code:

 last_dragable_concept = BrowserClass.new(@browser).get_last_drag_concept_img



 def dragable_targets
   @browser.div(:class = 'dragdrop-dropTarget 
 dragdrop-boundary').tables(:class = /dragdrop-dropTarget/)
 end


 def get_last_drag_concept_img
   dragable_targets[0].imgs(:title = drag_image_name).count - 1
 end


 number_dragable_table = BrowserClass.new(@browser).num_dragable_tables


 def dragable_targets
   @browser.div(:class = 'dragdrop-dropTarget 
 dragdrop-boundary').tables(:class = /dragdrop-dropTarget/)
 end

 def num_dragable_tables
   dragable_targets.count - 1
 end


 BrowserClass.new(@browser).drag_it(last_dragable_concept,number_dragable_table)


 def drag_it(n,table_index)
   drag_on_to = @browser.div(:class = 'dragdrop-dropTarget 
 dragdrop-boundary').table(:class = /dragdrop-dropTarget/, :index = 
 num_dragable_tables)
   sleep 1
   @browser.imgs(:title = drag_image_name)[n].drag_and_drop_on(drag_on_to)
 end



 Error I am receiving is the following:

 message: Cannot perform native interaction: Could not load native events 
 component.
 backtrace: [

 [remote server] 
 file:///C:/Users/my_name~1.EXP/AppData/Local/Temp/webdriver-/extensions/fxdri...@googlecode.com/components/driver-component.js:10571:in
  `generateErrorForNativeEvents',

 [remote server] 
 file:///C:/Users/my_name~1.EXP/AppData/Local/Temp/webdriver-/extensions/fxdri...@googlecode.com/components/driver-component.js:10615:in
  `FirefoxDriver.prototype.mouseMoveTo',

 [remote server] 
 file:///C:/Users/my_name~1.EXP/AppData/Local/Temp/webdriver-/extensions/fxdri...@googlecode.com/components/command-processor.js:12274:in
  `DelayedCommand.prototype.executeInternal_/h',

 [remote server] 
 file:///C:/Users/my_name~1.EXP/AppData/Local/Temp/webdriver-/extensions/fxdri...@googlecode.com/components/command-processor.js:12279:in
  `DelayedCommand.prototype.executeInternal_',

 [remote server] 
 file:///C:/Users/my_name~1.EXP/AppData/Local/Temp/webdriver-/extensions/fxdri...@googlecode.com/components/command-processor.js:12221:in
  `DelayedCommand.prototype.execute/',

 C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.45.0/lib/selenium/webdriver/remote/response.rb:52:in
  `assert_ok',

 C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.45.0/lib/selenium/webdriver/remote/response.rb:15:in
  `initialize',

 C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.45.0/lib/selenium/webdriver/remote/http/common.rb:59:in
  `new',

 C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.45.0/lib/selenium/webdriver/remote/http/common.rb:59:in
  `create_response',

 C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.45.0/lib/selenium/webdriver/remote/http/default.rb:66:in
  `request',

 C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.45.0/lib/selenium/webdriver/remote/http/common.rb:40:in
  `call',

 C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.45.0/lib/selenium/webdriver/remote/bridge.rb:640:in
  `raw_execute',

 C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.45.0/lib/selenium/webdriver/remote/bridge.rb:618:in
  `execute',

 C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.45.0/lib/selenium/webdriver/remote/bridge.rb:405:in
  `mouseMoveTo',

 C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.45.0/lib/selenium/webdriver/common/mouse.rb:52:in
  `move_to',

 C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.45.0/lib/selenium/webdriver/common/mouse.rb:62:in
  `move_if_needed',

 C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.45.0/lib/selenium/webdriver/common/mouse.rb:31:in
  `down',

 C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.45.0/lib/selenium/webdriver/common/action_builder.rb:344:in
  `block in perform',

 C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.45.0/lib/selenium/webdriver/common/action_builder.rb:343:in
  `each',

 C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.45.0/lib/selenium/webdriver/common/action_builder.rb:343:in
  

Re: [wtr-general] Re: How to display content of text file in the browser using watir?

2015-02-16 Thread Joe Fleck
Hi,

Here is a discussion about using CLReport which is disguised here in the
group.

https://groups.google.com/forum/#!searchin/watir-general/Clreport/watir-general/TYJzYeLmC2c/36vWuMQ5WHMJ

you can build a nice report and then launch in a browser when the tests are
done.

You guys might look into Cucumber or rspec with Jenkins which will provide
a nice automation test result page in a browser.

Joe


On Fri, Feb 13, 2015 at 12:07 AM, Nice Faith eunicefaith.p...@gmail.com
wrote:

 In connection to her question, is there a way for me to display outputs
 from Watir to a browser?


 On Wednesday, February 11, 2015 at 9:29:18 AM UTC+8, Ping-0t wrote:

 Dear All,

 I am trying to save the results of my test in the log_file.txt and I want
 it to display in the browser. Is it possible?

 Thanks in advance,

 Helfe

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] Re: Does watir checks inputs datatype?

2015-02-11 Thread Joe Fleck
Maybe share the test case you are trying to automate.

Thank you,
Joe

On Wed, Feb 11, 2015 at 9:25 AM, Super Kevy kpe...@scholarshipamerica.org
wrote:

 I'm not sure if what you mean datatype.

 Typical inputs
 .text_field   for any text inputs
 .checkbox  for any checkboxes
 .select   for any select lists




 On Tuesday, February 10, 2015 at 11:21:45 PM UTC-6, Ping-0t wrote:

  Hello Again guys,

 I am just wondering if watir checks inputs datatype? I keep on searching
 here since this morning but until now I cannot find the answer. Someone
 knows? Because I need to know for my task..

 Thanks again :)

 Helfe

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] Show number of errors and success in the browser

2015-02-04 Thread Joe Fleck
Hi,

A number of people use cucumber or rspec with watir to show the number of
successes and errors.

Joe

On Tue, Feb 3, 2015 at 8:04 PM, Ping-0t ping092...@gmail.com wrote:

 Dear All,

 How can I show the numbers of errors in a prompt using watir webdriver?
 Thanks all for the 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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] Clicking OK in a Save As dialog

2015-01-13 Thread Joe Fleck
So, I tried the example for firefox and i am still getting the dialog save
window for our app.

I am attempting to download an excel file.  I enter the page click a button
'Show Download Link' then an 'Accept' button and lastly the link to
download the file.  At this point the save dialog window opens...  Honestly
I am only changing one thing from the example.

profile = Selenium::WebDriver::FireFox::Profile.new
profile['browser.download.dir'] = /tmp/webdriver-downloads
profile['browser.download.folderList'] = 2
profile['browser.helperApps.neverAsk.saveToDisk'] = application/pdf

@browser = Watir::Browser.new :firefox, :profile = profile

I did notice the chrome explanation had a full list of profile options, is
there one for firefox?

Titus, Dan, and anyone else have you been able to successfully prevent this
dialog window from opening using this method?

Joe


On Mon, Jan 5, 2015 at 2:58 PM, Titus Fortner titusfort...@gmail.com
wrote:

 The problem with save as dialogs is that they are a part of the operating
 system,  not the browser. What you can do is set the browser profile to not
 check with the os when downloading.

 Using profiles with watir -
 http://watirwebdriver.com/firefox/
 http://watirwebdriver.com/chrome/

 Titus
 On Jan 5, 2015 2:53 AM, Dan Sharp fightonfightw...@gmail.com wrote:

 Hi!

 I'm new to Watir... working on a script to automate some browser screen
 scraping.

 One page in particular has this problem that I'm stuck on:  the page has
 a link that is a javascript link, and the result of the javascript is that
 it generates/sends a PDF to be downloaded/saved.  So when I use Watir to
 click the link, I get the Save As dialog, but I have no idea how to make it
 actually click the OK button in the Save As dialog. It's not a javascript
 window, so the usual javascript dialog/alert methods don't work.  Also, as
 the link is not a direct link to the PDF, I can't right-click on it to save
 it without the dialog.

 I tried looking through the source to see if the URL was just hidden, but
 it's not... it appears to be generated via some convoluted javascript.

 So I'm stuck. I can manually click the link and get the Save As dialog
 and manually click the OK button (I'm on a mac, using Firefox, if the
 matters).  But I can't automate it.

 Any help?

 Thanks!

 -Dan

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] Div tag .. issue in set value

2015-01-06 Thread Joe Fleck
Hi Sohail,

Have you tried anything?

This might work:
@browser.div(:class='ng-scope ngCellElement').send_keys Test

Thank you,
Joe

On Tue, Jan 6, 2015 at 9:18 AM, Sohail Mirza mrz...@gmail.com wrote:

 Hi,
 The following code is rendered for a text box. It does not have Input tag
 and it does not have type attribute.. How can i set value in it?

 div ng-cell-has-focus= ng-dblclick=true amp;amp; editCell()
 class=ng-scope ngCellElement tabindex=0

 Any help please?

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] Div tag .. issue in set value

2015-01-06 Thread Joe Fleck
Sohail,

Anytime.  Glad i could help.

Joe

On Tue, Jan 6, 2015 at 9:47 AM, Sohail Mirza mrz...@gmail.com wrote:

 Hi Joe,
 It worked actually.
 thanks you.

 On Tue, Jan 6, 2015 at 6:44 PM, Joe Fleck joeflec...@gmail.com wrote:

 Hi Sohail,

 Have you tried anything?

 This might work:
 @browser.div(:class='ng-scope ngCellElement').send_keys Test

 Thank you,
 Joe

 On Tue, Jan 6, 2015 at 9:18 AM, Sohail Mirza mrz...@gmail.com wrote:

 Hi,
 The following code is rendered for a text box. It does not have Input
 tag and it does not have type attribute.. How can i set value in it?

 div ng-cell-has-focus= ng-dblclick=true amp;amp; editCell()
 class=ng-scope ngCellElement tabindex=0

 Any help please?

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

 ---
 You received this message because you are subscribed to the Google
 Groups Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] watir xpath how to use variable

2014-12-31 Thread Joe Fleck
Hi,

What is the error you are receiving?

Joe
On Dec 31, 2014 4:08 AM, Sohail Mirza mrz...@gmail.com wrote:

 Can we use variable for XPath property?

 The following line of codes failing

 $rowCount = @browser.table(:class, 'table table-hover table-condensed
 table-bordered table-striped ng-scope ng-table').rows.size


 @browser.text_field(:xpath,'/html/body/div/div[4]/div/div[2]/div/lookup-grid/div/div/div[1]/div/table/tbody/
 tr[*$rowCount*-2]/td[1]/input[1]').when_present.set 'test'

 Any comments?

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] how to click on this hidden drop down menu

2014-12-05 Thread Joe Fleck
Hi Cristina,

did you try these?

browser.a(:title='Location')

or

browser.a(:href='location.html')

Joe

On Fri, Dec 5, 2014 at 9:12 AM, c w cristina.wa...@gmail.com wrote:

 Hi,

 please check the attached file. Can one tell me how can I click on the
 a href=location.html

 I need to be able to click it not using text because when language changes
 the text will change.


 Kind regards,
 Cristina

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] how to click on this hidden drop down menu

2014-12-05 Thread Joe Fleck
did you try the other option?

browser.a(:title='Location')

Joe

On Fri, Dec 5, 2014 at 2:27 PM, c w cristina.wa...@gmail.com wrote:

 Right,

 but still I get this

 cristina| cristinadumitrescu.vizllyhoteldemo.com/home.html?nocache |
   unable to locate element, using {:href=location.html,
 :tag_name=a} (Watir::Exception::UnknownObjectException)
   ./features/support/pages/WebsitePage.rb:58:in `click_location'
   ./features/step_definitions/vizlly_steps.rb:31:in `/^click on
 Location$/'
   features\web.feature:11:in `And click on Location'

 Failing Scenarios:

 On Fri, Dec 5, 2014 at 1:40 PM, c w cristina.wa...@gmail.com wrote:

 Hi Joe,

 is not working. I am getting the following
 '
 @browser.a(:href='location.html')

 returns

undefined method `a' for nil:NilClass (NoMethodError)
   ./features/support/pages/WebsitePage.rb:49:in `click_location'
   ./features/step_definitions/vizlly_steps.rb:31:in `/^click on
 Location$/'
   features\web.feature:11:in `And click on Location'

 Failing Scenarios:




 On Fri, Dec 5, 2014 at 11:59 AM, Joe Fleck joeflec...@gmail.com wrote:

 Hi Cristina,

 did you try these?

 browser.a(:title='Location')

 or

 browser.a(:href='location.html')

 Joe

 On Fri, Dec 5, 2014 at 9:12 AM, c w cristina.wa...@gmail.com wrote:

 Hi,

 please check the attached file. Can one tell me how can I click on the
 a href=location.html

 I need to be able to click it not using text because when language
 changes the text will change.


 Kind regards,
 Cristina

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

 ---
 You received this message because you are subscribed to the Google
 Groups Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

 ---
 You received this message because you are subscribed to the Google
 Groups Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.



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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] Catch Javascript Errors on the Page with Watir

2014-12-02 Thread Joe Fleck
Hi,

Here is one article that talks about your question.  You might be get some
ideas from it.

http://www.3pillarglobal.com/insights/how-to-capture-javascript-errors-from-your-web-application

A Watir solution:

http://itreallymatters.net/post/384269592/capturing-javascript-errors-with-watir#.VH3GvWTF86A

Hope this helps.

Joe





On Mon, Dec 1, 2014 at 10:25 PM, c w cristina.wa...@gmail.com wrote:

 Hi all,

 I am looking on how to catch java script errors on a page, click etc using
 watir

 Can we do that?
 Please advise me, any helpfull link where I can learn how to do that?

 Kind regards,
 Cristina

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] Re: HELP - Acessing password (text) field

2014-11-24 Thread Joe Fleck
Yes.  Definitely not having the iframe will cause it not to work.

Joe

On Mon, Nov 24, 2014 at 2:37 PM, Titus Fortner titusfort...@gmail.com
wrote:

 Ah, the html didn't have the iframe in it. so:

 browser.iframe(id: 'ws').text_field(id: 'claveConsultiva').set foobar


 On Mon, Nov 24, 2014 at 1:33 PM, Alberto Magalhaes aacmagalh...@gmail.com
  wrote:

 Thanks Titu..

 Bu i think is probably because of the iframe.


 iframe name=ws id=ws src=
 #x2f;bepp#x2f;sanpt#x2f;usuarios#x2f;login#x2f;0,,,0.shtml#x3f;usr#x3d;210348500
 https://www.particulares.santandertotta.pt/bepp/sanpt/usuarios/login/0,,,0.shtml?usr=210348500
 onLoad=startdyncode() frameborder=0 style=overflow: hidden; width:
 100%; z-index:200; position:relative; min-height:400px scrolling=no 
 /iframe div class=clear/div meta http-equiv=Cache-Control
 content=private,no-cache,no-store,must-revalidate,max-age=0/ meta
 http-equiv=Pragma content=no-cache/ meta http-equiv=Expires
 content=1/ /div

 On Mon, Nov 24, 2014 at 6:49 PM, Titus Fortner titusfort...@gmail.com
 wrote:

 This works with the html you posted.

 iframe name=ws id=ws 
 src=#x2f;bepp#x2f;sanpt#x2f;usuarios#x2f;login#x2f;0,,,0.shtml#x3f;usr#x3d;210348500
  
 https://www.particulares.santandertotta.pt/bepp/sanpt/usuarios/login/0,,,0.shtml?usr=210348500
  onLoad=startdyncode() frameborder=0 style=overflow: hidden; width: 
 100%; z-index:200; position:relative; min-height:400px scrolling=no 
 /iframediv class=clear/divmeta http-equiv=Cache-Control 
 content=private,no-cache,no-store,must-revalidate,max-age=0/meta 
 http-equiv=Pragma content=no-cache/meta http-equiv=Expires 
 content=1//div

 browser.text_field(id: 'claveConsultiva').set foobar





 On Monday, November 24, 2014 12:11:47 PM UTC-6, Alberto Magalhães wrote:

 Hi,

 I'm having trouble getting access to a password text field -
 claveConsultiva

 I apreciate all the help

 div id=left div id=navtitle ul class=fv li class=fl
 titleout div class=title Entrar no NetBanco Particulares /div
 /li li class=fl navon style=position: relative div class=
 boxarrowdownon/div Particulares /li li class=fl navoff btnarea
 title=Entrar no NetBanco Empresas
 /li /ul /divdiv id=nota class=fc Para aceder às suas
 contas, introduza o Nome de Utilizador e o Código de Acesso.BR/
 strongPor razões de segurança, recomendamos a utilização do Teclado
 Virtual./strong /div form name=formulario autocomplete=off
 method=post action=../login/? input type=hidden name=accion
 value=3/  input type=hidden name=ssafe value=
 48A2057113F89EA3741705D7968B4AFFD8F8A23F/ input type=hidden name=
 linkHomeURL value=/pagina/indice/0,,276_1_2,00.html/  div class=
 input_container span class=inner label for=
 identificacionUsuarioNome de Utilizador/label input autofocus type
 =text class=inputlong id=identificacionUsuario name=
 identificacionUsuario value=210348500 maxlength=64 autocomplete=
 off / /span /div  div class=input_container span class=
 inner label for=claveConsultivaCódigo de Acesso/label input
 type=password id=claveConsultiva name=claveConsultiva maxlength=
 16 autocomplete=off / a href=javascript:; id=vkbd title=Teclado
 Virtual alt=Teclado Virtual/a div class=fc/div /span
 /div /form
 /div

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

 ---
 You received this message because you are subscribed to a topic in the
 Google Groups Watir General group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/watir-general/lUfGWIwZ_Xc/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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


Re: [wtr-general] Re: HELP - Acessing password (text) field

2014-11-24 Thread Joe Fleck
Alberto,

What line is this failing on?

Joe

On Mon, Nov 24, 2014 at 5:26 PM, Alberto Magalhaes aacmagalh...@gmail.com
wrote:

 Titus,

 I'm trying this:
 require 'watir-webdriver'
 browser = Watir::Browser.new :chrome
 browser.goto(https://www.santandertotta.pt/pt_PT/Particulares.html;)
 browser.text_field(:name = usr).set foo
 browser.button(:value = Login).click
 usr=Nome%20de%20Utilizador'
 browser.iframe(id: 'ws').text_field(id: 'claveConsultiva').set 'bar'
 browser.iframe(id: 'ws').link(id: 'login_button').click


 On Mon, Nov 24, 2014 at 9:36 PM, Titus Fortner titusfort...@gmail.com
 wrote:

 This works for me.

 browser = Watir::Browser.new :chrome
 browser.goto '
 https://www.particulares.santandertotta.pt/pagina/indice/0,,276_1_2,00.html?usr=Nome%20de%20Utilizador
 '
 browser.iframe(id: 'ws').text_field(id: 'identificacionUsuario').set 'Foo'
 browser.iframe(id: 'ws').text_field(id: 'claveConsultiva').set 'Bar'
 browser.iframe(id: 'ws').link(id: 'login_button').click

 On Mon, Nov 24, 2014 at 3:19 PM, Alberto Magalhães 
 aacmagalh...@gmail.com wrote:


 Joe and Titus

 it's not working.

 I'm trying to access 'claveConsultiva' that is present on
 https://www.particulares.santandertotta.pt/pagina/indice/0,,276_1_2,00.html?usr=Nome%20de%20Utilizador

 thanks in advance


 Segunda-feira, 24 de Novembro de 2014 18:11:47 UTC, Alberto Magalhães
 escreveu:

 Hi,

 I'm having trouble getting access to a password text field -
 claveConsultiva

 I apreciate all the help

 div id=left div id=navtitle ul class=fv li class=fl
 titleout div class=title Entrar no NetBanco Particulares /div
 /li li class=fl navon style=position: relative div class=
 boxarrowdownon/div Particulares /li li class=fl navoff btnarea
 title=Entrar no NetBanco Empresas
 /li /ul /divdiv id=nota class=fc Para aceder às suas
 contas, introduza o Nome de Utilizador e o Código de Acesso.BR/
 strongPor razões de segurança, recomendamos a utilização do Teclado
 Virtual./strong /div form name=formulario autocomplete=off
 method=post action=../login/? input type=hidden name=accion
 value=3/  input type=hidden name=ssafe value=
 48A2057113F89EA3741705D7968B4AFFD8F8A23F/ input type=hidden name=
 linkHomeURL value=/pagina/indice/0,,276_1_2,00.html/  div class=
 input_container span class=inner label for=
 identificacionUsuarioNome de Utilizador/label input autofocus type
 =text class=inputlong id=identificacionUsuario name=
 identificacionUsuario value=210348500 maxlength=64 autocomplete=
 off / /span /div  div class=input_container span class=
 inner label for=claveConsultivaCódigo de Acesso/label input
 type=password id=claveConsultiva name=claveConsultiva maxlength=
 16 autocomplete=off / a href=javascript:; id=vkbd title=Teclado
 Virtual alt=Teclado Virtual/a div class=fc/div /span
 /div /form
 /div

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

 ---
 You received this message because you are subscribed to the Google
 Groups Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

 ---
 You received this message because you are subscribed to a topic in the
 Google Groups Watir General group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/watir-general/lUfGWIwZ_Xc/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit 

Re: [wtr-general] need help regarding scrolling in watir

2014-11-20 Thread Joe Fleck
Hi mizans,

We ran into the same issue with our tests and we are using watir
webdriver.  I solved the problem by using a gem called watir-scroll and it
works great.  Just google the name you will find it.

Joe
On Nov 20, 2014 3:27 PM, mizan rahman mizansa...@gmail.com wrote:

 Hi All,

 I am trying to go to bottom of the page and get the total number of items
 but m unable to go to bottom , it stops in the middle, can any help ,
 please,

 here is the code i used:

 require 'watir-webdriver'

 browser = Watir::Browser.new :firefox
 browser.window.maximize
 browser.goto 'https://www.chloeandisabel.com/shop'

 items = browser.elements(:class = img-responsive)

   sleep 3

  items.each do |item|

 browser.execute_script('arguments[0].scrollIntoView();', item)

   sleep 3

  end




 Thanks,
 Mizan

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] Trying To Loop Through Specific Table Rows On Page. Watir 1.9.1

2014-11-19 Thread Joe Fleck
Hi.

I would include the html for the table.  It will allow us to help you
quicker.

Joe
On Nov 19, 2014 12:09 PM, Bo Boateng boaten...@gmail.com wrote:

 Hey Guys,

 I'm using Watir 1.9.1 and in trying to find the right way to loop through
 a rows on a specific table on a page to match and select a variable. The
 table class name would be CHOOSEONE.

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] Handling Modal Dialog Box from the web link

2014-11-13 Thread Joe Fleck
The thing you can do is use Sikuli.  It is a open source automation tool
that captures images and then interacts with them.  It can be called within
your watir-webdriver script.  I have not had much success with
watir-webdriver and those types of modal dialog boxes.

http://www.sikuli.org/

You'll like this tool.

Joe


On Wed, Nov 12, 2014 at 1:12 PM, Geeta Patil geetu.pa...@gmail.com wrote:


 Hi,

 i folled the above links.
 1. Mine is a modal dialog box, i am not able to capture any HTMl elemts
 when the dialog box opens up
 2. Its not a alert message

 i even i trie dthe code snippet posted in the above links for siwtching
 teh windows.

 I am using watir-webdriver with Firefox browser. Could you help me how to
 cancel this dialog box or print the text.

 Thanks
 Geeta

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] Handling Modal Dialog Box from the web link

2014-11-11 Thread Joe Fleck
Hi Geeta Patil,

Here is a solution i found doing a search on google:

http://stackoverflow.com/questions/18843880/how-to-access-modal-pop-up-using-watir

and another

http://stackoverflow.com/questions/20102433/watir-webdriver-unable-to-click-cancel-target-button-on-popup-window

Can you get the html elements of the modal dialog box using Fire Bug?  Post
that information here.

Joe


On Fri, Nov 7, 2014 at 12:03 PM, Geeta Patil geetu.pa...@gmail.com wrote:

 Hi

 I am trying to automate scraping of webpage with links for Print.

 When i click on Print link as below, Print Modal Dialog box appers.
 browser.a(:text = 'Print').click

 I would like to to get focus on this window and click on OK or cancel
 button on the Dialog Box.

 Could you let me know how do i get access to this Modal dialog box once
 its displayed

 Thanks
 Geet

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] Can I test Upload Attachment feature using watir-webdriver

2014-10-27 Thread Joe Fleck
Anisha,

If the upload attachment is written in html.  If not you might like into
sikuli.  Sikuli.org

Some people use autoit with IE.

Joe
On Oct 27, 2014 7:35 AM, Anisha Narang anisha.naran...@gmail.com wrote:

 Hi,

 I want to know if I can test the upload attachment feature using watir
 webdriver. Is it possible to upload an attachment on click of a button
 using watir webdriver.

 --
 Anisha Narang

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] Re: duplicate links in the webpage

2014-10-23 Thread Joe Fleck
+1
Super Kevy

On Thu, Oct 16, 2014 at 3:47 PM, Super Kevy kpe...@scholarshipamerica.org
wrote:

 ie.link(:text='Building Address',:index=1).click
 ie.link(:text='Building Address',:index=2).click


 On Saturday, August 2, 2014 4:36:48 AM UTC-5, Rams wrote:


 Hi,

 I have duplicate links in the webpage as I attached (ex. Building
 Address). When I looked at the html source/through developer tool bar, I
 found the below attributes for each Building Address link.

 Please suggest, how to click on the Building Address under Location 1 and
 Building Address under Location 2 with the below attributes. How to write
 in the ruby page file ?

 Please find the attachment for reference(duplicate_links.jpg)

 *Below is the html source for Building Address link under Location 1:*
 AnchorIndex: 4
 title: Enter Building Address
 text: Building Address
 id: anchoridpyWorkPage.ProductData.Component(Location).OptionData(1).
 Component(BuildingInfo).OptionData(1).Component(
 BuildingAddress).OptionData(1)
 onclick:
 displayDetail(pyWorkPage.ProductData.Component(Location).OptionData(1).
 Component(BuildingInfo).OptionData(1).Component(
 BuildingAddress).OptionData(1),LocationDetails,
 RIGHTPANEL,pyWorkPage.ProductData.Component(Location).OptionData(2))


 *Below is the html source for Building Address link under Location 2:*
 AnchorIndex: 12
 title: Enter Building Address
 text: Building Address
 id:
 anchoridpyWorkPage.ProductData.Component(Location).OptionData(2).
 Component(BuildingInfo).OptionData(1).Component(
 BuildingAddress).OptionData(1)
 onclick:
 displayDetail(pyWorkPage.ProductData.Component(Location).OptionData(2).
 Component(BuildingInfo).OptionData(1).Component(
 BuildingAddress).OptionData(1),LocationDetails,
 RIGHTPANEL,pyWorkPage.ProductData.Component(Location).OptionData(2))


 Thanks

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] Re: Get the link to the Next Page

2014-10-23 Thread Joe Fleck
Can you provide the full html so we can get a better idea what you are
trying to do?

Joe

On Thu, Oct 23, 2014 at 2:03 PM, Genexodus bryanjsho...@gmail.com wrote:

 You description is pretty vague. However, you could do this pretty easy
 with

 whatever_variable_for_your_browser.link(:text, 2).click

 Replace 2 with 3 and so on. Should work as they are recognized in the
 browser and by WATIR as links.

 On Friday, August 1, 2014 10:31:02 PM UTC-6, Ali SB wrote:

 Hi all

 I want to click on different pages in :http://periodicdisclosures.
 aec.gov.au/SummaryParty.aspx
 element inspect is : href=javascript:__doPostBack(
 'ctl00$ContentPlaceHolderBody$gridViewReturns','Page$1')
 how can I Check if there is a link with the next page number?
 And then click on the link to go for next page?.

 Cheers

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] Re: duplicate links in the webpage

2014-10-23 Thread Joe Fleck
I think the source would help everyone give you some solid solutions.

I would think you might be able to do something like this:

ie.link(:text='Location 1').link(:text='Building Address')

Its possible but without the full source (like Derek said) its difficult to
come to a good solution.

Joe

On Thu, Oct 23, 2014 at 9:30 AM, Derek W derekwro...@gmail.com wrote:

 I don't know how people feel about xPath but this is usually where I use
 xPath.  Using hard coded index is a bit inflexible in my opinion and
 doens't tell you what it's really selecting.  What if another item with
 duplicate name appears and now you are selecting index 1, but with the
 extra duplicate item, you really want to select index 2.  I'm sure there is
 something else on the page that is unique to each of those.  If that is the
 case, you can locate that unique element first, then traverse to the text
 'Building Address' to make sure you select the right item.

 If you show me the source, I can build the xPath to demonstrate what I am
 trying to explain. :)

 On Thu, Oct 23, 2014 at 5:06 AM, Joe Fleck joeflec...@gmail.com wrote:

 +1
 Super Kevy

 On Thu, Oct 16, 2014 at 3:47 PM, Super Kevy 
 kpe...@scholarshipamerica.org wrote:

 ie.link(:text='Building Address',:index=1).click
 ie.link(:text='Building Address',:index=2).click


 On Saturday, August 2, 2014 4:36:48 AM UTC-5, Rams wrote:


 Hi,

 I have duplicate links in the webpage as I attached (ex. Building
 Address). When I looked at the html source/through developer tool bar, I
 found the below attributes for each Building Address link.

 Please suggest, how to click on the Building Address under Location 1
 and Building Address under Location 2 with the below attributes. How to
 write in the ruby page file ?

 Please find the attachment for reference(duplicate_links.jpg)

 *Below is the html source for Building Address link under Location 1:*
 AnchorIndex: 4
 title: Enter Building Address
 text: Building Address
 id: anchoridpyWorkPage.ProductData.Component(Location).OptionData(1).
 Component(BuildingInfo).OptionData(1).Component(
 BuildingAddress).OptionData(1)
 onclick:
 displayDetail(pyWorkPage.ProductData.Component(
 Location).OptionData(1).Component(BuildingInfo).
 OptionData(1).Component(BuildingAddress).OptionData(1)
 ,LocationDetails,RIGHTPANEL,pyWorkPage.ProductData.Component(
 Location).OptionData(2))


 *Below is the html source for Building Address link under Location 2:*
 AnchorIndex: 12
 title: Enter Building Address
 text: Building Address
 id:
 anchoridpyWorkPage.ProductData.Component(Location).OptionData(2).
 Component(BuildingInfo).OptionData(1).Component(
 BuildingAddress).OptionData(1)
 onclick:
 displayDetail(pyWorkPage.ProductData.Component(
 Location).OptionData(2).Component(BuildingInfo).
 OptionData(1).Component(BuildingAddress).OptionData(1)
 ,LocationDetails,RIGHTPANEL,pyWorkPage.ProductData.Component(
 Location).OptionData(2))


 Thanks

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

 ---
 You received this message because you are subscribed to the Google
 Groups Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




 --
 Derek Wrobel
 425-243-3355

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr

Re: [wtr-general] New with Watir .Can we use 'pry' with chrome?

2014-09-22 Thread Joe Fleck
hi,

You need to install the chrome driver to have watir-webdriver and pry work.
 if I understand your question correctly.

Joe

On Mon, Sep 22, 2014 at 10:16 AM, Sudarshan Study sudarshan.st...@gmail.com
 wrote:

 Hi,
 I am new to watir . I am able to pry using firefox, but can we do the same
 with Chrome?
 Kindly guide. Thanks!

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] @browser.send_keys :enter not working with chrome

2014-09-22 Thread Joe Fleck
Hi,

What are you trying to accomplish with this method?  Test case you are
trying to automate

Joe


On Mon, Sep 22, 2014 at 8:51 AM, Sudarshan Study sudarshan.st...@gmail.com
wrote:

  @browser.send_keys :enter

  : works with firefox , but is not working with chrome browser. Kindly let
 me know if there is any other way to perform same task. Thanks!

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] how to know the page had already loaded in watir?

2014-08-31 Thread Joe Fleck
Hi Lei,

I am not totally sure what you are asking but one way to confirm a page
loaded is using the 'wait_until_present' method.

@browser.a(:id='workout_details_edit').wait_until_present

Find an element that is always on that page like a header.

Joe



On Thu, Aug 28, 2014 at 11:25 PM, Lei King jinleileik...@gmail.com wrote:

 just as the js func: onload()

 thanks

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] How do I invoke a click on an image partially behind another image (higher z-index) in IE?

2014-08-28 Thread Joe Fleck
Hi C,

Can you provide some of the code you have tried so far?

Have you tried something like this?
@browser.div(:id='id2').img(:id='thing2image').click
@browser.div(:id='id1').img(:id='thing1image').click

I have been using the watir webdriver for a couple of years and each
browser is different and have run into this.  In most cases once you figure
out the problem browser that code works on the rest.

You might start with the browser your customers mostly use and work from
there.

Joe



On Thu, Aug 21, 2014 at 3:32 PM, C G Emerson emerson.carol...@gmail.com
wrote:

 Hello all.
 I am new to Ruby/Watir/Webdriver and am having trouble getting watir
 webdriver to recognize the click on an image in IE when the image is
 partially behind another image.
 I can get Webdriver to recognize the click in Firefox and Chrome, just not
 with IE9 (same issue in IE10 confirmed by a colleague) - although I have to
 invoke the click a little differently between Firefox and Chrome (more
 below). Ideally I would like to use the same script and just make the
 browser a variable input.

 The relevant HTML goes something like** this :

  div id= containerofthings
  img id=containerimage 

div id= thing1
img id=thing1image
/div
div id= thing2
img id=thing2image
/div
/div

 thing1image and thing2image are rectangular. thing2image is approx.1/4
 size of thing1image. thing2image has a z-index set to 1 and is positioned
 via css to be at the top right quarter of thing1image like this:

 In all three browsers I'm testing, IE, FF and Chrome, *I can successfully
 invoke a click on the thing2image with no issue*.

 The problem comes in when I try to click on thing1image. The behavior is
 different in the different browsers being tested.
 1) Firefox -  I can click on thing1image with no issues but the same is
 not true on Chrome or IE.
 2) Chrome - I can invoke a click of thing1 (div) and that works in Chrome
 but not in Firefox or IE. I can't invoke the click of thing1image as it
 yields an error.
 3) IE9 - I tried click on the thing1image, but its registering as a click
 on thing2image (no error message just not invoking the proper click
 result).  When the browser is launched through webdriver, I can't manually
 click on thing1image until the script concludes running (it times out since
 the element I'm looking for which results from the click isn't there). Once
 webdriver is no longer running I can click on the thing1image and invoke
 the processing as intended. I tried numerous options in IRB but wasn't able
 to successfully invoke the click of thing1image. It's as though I can never
 get around thing2image to reach thing1image.

 Has anyone seen this before and if so can you suggest how to resolve so I
 can invoke the click in IE via Watir-Webdriver?

 If this should be cross posted to the Selenium group please let me know.

 ** Note: The real code is much more complex than this as the container div
 is part of an element in a dynamic grid which is draggable and the
 application uses JSF, PrimeFaces, JQuery etc.

 Installed versions are as follows: selenium-webdriver (2.42.0),  test-unit
 (2.0.0.0), watir-webdriver (0.6.10), ruby 2.0.0p481.

 Thank you!
 -C

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] Scripts not working in IE11 browser

2014-07-29 Thread Joe Fleck
Hi Rahul,

I have run into the same problem running with IE11 and have no found a
solution.  I did several searches on this issue and did not find an
solution.  Sorry I am not answering your question but i wanted to be a part
of the thread.

Joe


On Tue, Jul 29, 2014 at 9:27 AM, Rahul Singla rsin...@qasource.com wrote:

 Hi All,

 I am new to the watir-webdriver. I am facing an issue where my ruby
 scripts are not working in IE browser.

 I have updated the IEdriver but still that didn't fixed the issue.

 Also, my scripts launches the IE browser but it gets failed to locate the
 element id but same scripts are working fine in Firefox and Chrome browser.

 So please suggest. Is it like IE browser is not compatible with
 Watir-webdriver or it is some other issue.

 Thanks in advance

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] Unable to handle dialog box in IE

2014-06-13 Thread Joe Fleck
MinYi,

You could try using sikuli (sikuli.org) it can be called within your script
to close those dialog boxes.

I did find these two solutions:

http://grokbase.com/t/gg/watir-general/1282yx6mvs/wtr-general-re-handling-a-windows-file-upload-dialog-box

http://watirwebdriver.com/javascript-dialogs/

Joe



On Fri, Jun 13, 2014 at 12:02 AM, MinYi minyi.y...@xynapse-asia.com wrote:

 Hi, I'm developing the watir script and facing some difficulties when
 comes to the
 dialog box handling in IE. I managed to do that in Firefox with the
 watir-webdriver library.
 However, I'm unable to handle/click the pop out dialog box in IE with the
 watir library. The dialog box is a confirmation
 dialog box with 'OK' and 'Cancel' button. I have tried on several method
 but still it is not working.I also go through the related topic in the
 forum and yet non of the solution is working for me
 Any ideas on how to handle to handle the pop out dialog box in IE with
 watir library..? Thanks and appreciate :)

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] Re: application/x-shockwave-flash : Need help

2014-06-09 Thread Joe Fleck
Hi Sanjeev,

I have used this tool in past for similar challenges.  Very straight
forward and easy to use.

Joe


On Mon, Jun 9, 2014 at 12:15 PM, Super Kevy kpe...@scholarshipamerica.org
wrote:

 Try this link: https://github.com/enix12enix/sikuli-remote-control

 Search this group for the topic flash.  Its been discussed many times.


 On Thursday, May 22, 2014 8:43:34 AM UTC-5, Sanjeev Singh wrote:

 Hi All,

 My application has the following HTML code
 embed id=DQMView width=100% height=100% align=middle
 type=application/x-shockwave-flash pluginspage=http://www.adobe.
 com/go/getflashplayer allowscriptaccess=sameDomain name=DQMView
 wmode=opaque bgcolor=#869ca7 quality=high src=dqm.swf/embed

 This is the entire page where I am looking for objects inside this flash.
 But the HTML code does not show the objects that exists inside it.
 There are fields like User Name, Password where i need to fill the
 text box and then click on a Login button.

 Not sure how can I locate these objects inside the flash. (HTML code does
 not show them - I am using Inspector in Firefox)

 Please let me know if you have experienced this in past or know a
 solution for this.



 Thanks,
 Sanjeev

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] How to handle unknown browser popup with text Stop running this script?

2014-05-23 Thread Joe Fleck
Hi,

I have seen this particular error in our application when we try and load
large lists.  I can not remember what the resolution was but it is
something that needs attention by dev team.

Thank you,
Joe
On May 23, 2014 3:10 AM, v b baba kanchustambham vbb...@gmail.com wrote:

 Hi,

 We are facing a challenge with an unknown browser popup with text Stop
 running this script? while running watir-webdriver script on IE8, Win7
 machine.
 This popup is appearing after running the script for some time.
 browser.alert.exist? method is not working in this case. we have declared
 require 'watir-webdriver/extensions/alerts' in library file. Please find
 the attached screenshot for reference.
 Webdriver version we are using is 0.6.2

 Can anyone help us on resolving this issue.

 Regards,
 Veera.


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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] Re: Just started with Watir

2014-01-23 Thread Joe Fleck
Hi,

If you are looking to use watir with cucumber this book and the one
mentioned above are good resources.

The Cucumber Book
http://www.amazon.com/The-Cucumber-Book-Behaviour-Driven-Development/dp/1934356808/ref=sr_sp-atf_title_1_1?ie=UTF8qid=1390515159sr=8-1keywords=the+cucumber+book

Some additional sites you can use:

Watir.com  also has some good examples
http://watirwebdriver.com/
https://github.com/watir/watir

Joe


On Thu, Jan 23, 2014 at 3:09 PM, atande1951 atande1...@gmail.com wrote:

 thanks


 On Thursday, January 23, 2014 1:13:22 PM UTC-5, Andrew Leaf wrote:

 On Thursday, January 23, 2014 10:42:10 AM UTC-6, atande1951 wrote:

 Hi guys,
 I installed Watir as recommended .. Is there any popular book describing
 Watir functionality step by step? I mean how to start with examples.


 Jeff Morgan's 'Cucumber  Cheese' book is a great place to start.

 - https://leanpub.com/cucumber_and_cheese

 --
 Andrew

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [wtr-general] Getting Error: `WebDriverError': Element is not currently visible and so may not be interacted with (Selenium::WebDriver::Error::ElementNotDisplayedError)

2014-01-03 Thread Joe Fleck
The 5 represents the time in which it will wait.  I believe its 5 seconds.
 You could also use the 'wait_until_present' method.

http://rdoc.info/gems/watir-webdriver/Watir/EventuallyPresent#wait_until_present-instance_method

browser.link(:id, showlink).wait_until_present
browser.link(:id, showlink).click

This waits 30 seconds before failing and if the object is present during
that 30 seconds it moves on to the next line.  Another plus is it looks
cleaner.

Joe


On Fri, Jan 3, 2014 at 7:53 AM, Ayushman Choudhary ayushman292...@gmail.com
 wrote:

 the sleep(5) works but what is the significance of 5 here? do we use value
 less than this ??


 On Friday, September 2, 2011 2:05:28 PM UTC+5:30, Amit Bobade wrote:

 Hi Micheal,

 I tried to access element as follows. Such issues occur with my scripts
 sometimes. Such problems really suck when I give demo to my senior.

 Am I using Watir in wrong direction?
 Is it because of slow connection?

 *RUBY CODE: *

  browser = Watir::Browser.new :ff
 browser.goto(http://yogita/gosocially/re-login.php;)
 browser.form(:id, signin).text_field(:id,
 username).set(earthmplex)
 browser.form(:id, signin).text_field(:id,
 password).set(earth123)
 browser.form(:id, signin).button(:value, Sign In).click
 sleep(5) #After adding this line, there was no error.
 browser.link(:id, showlink).click


 *HTML CODE: *

 div class=attch-img

 a href=javascript:void(0); class=attach_link dashboard_sprites OFF 
 id=showlink title=Link/a

  /div


 Thanks,
 Amit.


 On Thu, Sep 1, 2011 at 8:26 AM, Michael mmcwi...@gmail.com wrote:

 Please post your ruby code as well so we can see how you are trying to
 locate this element. You can always use wait_until { … locate link … }, but
 if this is truly static HTML I would be surprised if that was necessary.

 On 2011-08-31, at 12:32 AM, Amit Bobade wrote:

 Thanks for your prompt reply, Micheal.

 Element is not hidden. It is very simple HTML code. I tried using sleep(
 ) method for this and fortunately it worked 

 I don't know the exact problem and this may not be a proper solution.
 Could you please suggest something more productive?

 HTML CODE:

 div class=attch-img

 a href=javascript:void(0); class=attach_link dashboard_sprites OFF 
 id=showlink title=Link/a


  /div
  div class=attch-img

  a href=javascript:void(0); style=opacity: 0.5; class=OFF 
 attach_video dashboard_sprites title=Configure Youtube to upload 
 video/a

  /div


 Thanks,
 -Amit

 On Wed, Aug 31, 2011 at 11:51 AM, Michael mmcwi...@gmail.com wrote:

 Your HTML and code snippets would help us see what is going on.

 In general you cannot interact with elements that are hidden (not
 visible). This may be occurring for a few reasons:
 - element is hidden (or positioned off the screen) by CSS styles or
 JavaScript
 - your selector found a different element matching your selector, and
 this element is hidden

 On 2011-08-31, at 12:06 AM, Amit Bobade wrote:

 Hi,


 I am getting following error while running my script on FF.

 `WebDriverError': Element is not currently visible and so may not be
 interacted with (Selenium::WebDriver::Error::ElementNotDisplayedError)

 I am using Ruby187 and Watir-webdriver.

 Could someone tell me why this error is occuring?

 --
 Thanks and Regards,
 Amit


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

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



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

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




 --
 Thanks and Regards,
 Amit


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

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


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

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




 --
 Thanks and Regards,
 Amit

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


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

Re: [wtr-general] Getting Error: `WebDriverError': Element is not currently visible and so may not be interacted with (Selenium::WebDriver::Error::ElementNotDisplayedError)

2014-01-03 Thread Joe Fleck
Hi,

You could also do the following:

browser.link(:id, showlink).when_present.click

Joe


On Fri, Jan 3, 2014 at 9:28 AM, Joe Fleck joeflec...@gmail.com wrote:

 The 5 represents the time in which it will wait.  I believe its 5 seconds.
  You could also use the 'wait_until_present' method.


 http://rdoc.info/gems/watir-webdriver/Watir/EventuallyPresent#wait_until_present-instance_method

 browser.link(:id, showlink).wait_until_present
 browser.link(:id, showlink).click

 This waits 30 seconds before failing and if the object is present during
 that 30 seconds it moves on to the next line.  Another plus is it looks
 cleaner.

 Joe


 On Fri, Jan 3, 2014 at 7:53 AM, Ayushman Choudhary 
 ayushman292...@gmail.com wrote:

 the sleep(5) works but what is the significance of 5 here? do we use
 value less than this ??


 On Friday, September 2, 2011 2:05:28 PM UTC+5:30, Amit Bobade wrote:

 Hi Micheal,

 I tried to access element as follows. Such issues occur with my scripts
 sometimes. Such problems really suck when I give demo to my senior.

 Am I using Watir in wrong direction?
 Is it because of slow connection?

 *RUBY CODE: *

  browser = Watir::Browser.new :ff
 browser.goto(http://yogita/gosocially/re-login.php;)
 browser.form(:id, signin).text_field(:id,
 username).set(earthmplex)
 browser.form(:id, signin).text_field(:id,
 password).set(earth123)
 browser.form(:id, signin).button(:value, Sign In).click
 sleep(5) #After adding this line, there was no error.
 browser.link(:id, showlink).click


 *HTML CODE: *

 div class=attch-img


 a href=javascript:void(0); class=attach_link dashboard_sprites OFF 
 id=showlink title=Link/a


  /div


 Thanks,
 Amit.


 On Thu, Sep 1, 2011 at 8:26 AM, Michael mmcwi...@gmail.com wrote:

 Please post your ruby code as well so we can see how you are trying to
 locate this element. You can always use wait_until { … locate link … }, but
 if this is truly static HTML I would be surprised if that was necessary.

 On 2011-08-31, at 12:32 AM, Amit Bobade wrote:

 Thanks for your prompt reply, Micheal.

 Element is not hidden. It is very simple HTML code. I tried using
 sleep( ) method for this and fortunately it worked 

 I don't know the exact problem and this may not be a proper solution.
 Could you please suggest something more productive?

 HTML CODE:

 div class=attch-img

 a href=javascript:void(0); class=attach_link dashboard_sprites 
 OFF id=showlink title=Link/a



  /div
  div class=attch-img

  a href=javascript:void(0); style=opacity: 0.5; class=OFF 
 attach_video dashboard_sprites title=Configure Youtube to upload 
 video/a


  /div


 Thanks,
 -Amit

 On Wed, Aug 31, 2011 at 11:51 AM, Michael mmcwi...@gmail.com wrote:

 Your HTML and code snippets would help us see what is going on.

 In general you cannot interact with elements that are hidden (not
 visible). This may be occurring for a few reasons:
 - element is hidden (or positioned off the screen) by CSS styles or
 JavaScript
 - your selector found a different element matching your selector, and
 this element is hidden

 On 2011-08-31, at 12:06 AM, Amit Bobade wrote:

 Hi,


 I am getting following error while running my script on FF.

 `WebDriverError': Element is not currently visible and so may not be
 interacted with (Selenium::WebDriver::Error::ElementNotDisplayedError)

 I am using Ruby187 and Watir-webdriver.

 Could someone tell me why this error is occuring?

 --
 Thanks and Regards,
 Amit


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

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



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

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




 --
 Thanks and Regards,
 Amit


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

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


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

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




 --
 Thanks and Regards,
 Amit

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
-- 
Before posting, please read

Re: [wtr-general] watir syntax for span class=LinkClassAvailability

2013-12-30 Thread Joe Fleck
Hi Priti,

@browser.span(:class='LinkClassAvailability')

Thanks!
- Joe
Sent from my iPad

On Dec 29, 2013, at 6:55 AM, Priti Fhuse pore.pr...@gmail.com wrote:

 I have been stuck for 2 days in
 this water using testwise tool
  
 I would like to know what should be the sysntax for span 
 class=LinkClassAvailability in watir 
  
 2 2nd question how to use loops in testwise
 -- 
 -- 
 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
  
 --- 
 You received this message because you are subscribed to the Google Groups 
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.

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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [wtr-general] watir syntax for span class=LinkClassAvailability

2013-12-30 Thread Joe Fleck
Priti,

I am not familiar with test wise but I think you would write the loop within 
Test 'm' do
While

End

End

Thanks!
- Joe Fleck
Sent from my iPad

On Dec 30, 2013, at 10:02 AM, Joe Fleck joeflec...@gmail.com wrote:

 Hi Priti,
 
 @browser.span(:class='LinkClassAvailability')
 
 Thanks!
 - Joe
 Sent from my iPad
 
 On Dec 29, 2013, at 6:55 AM, Priti Fhuse pore.pr...@gmail.com wrote:
 
 I have been stuck for 2 days in
 this water using testwise tool
  
 I would like to know what should be the sysntax for span 
 class=LinkClassAvailability in watir
  
 2 2nd question how to use loops in testwise
 -- 
 -- 
 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
  
 --- 
 You received this message because you are subscribed to the Google Groups 
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.
 -- 
 -- 
 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
  
 --- 
 You received this message because you are subscribed to the Google Groups 
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.

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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [wtr-general] Cannot identify a tick or cross symbol

2013-12-13 Thread Joe Fleck
Hi,

Can you post the html of both situations you're try to test?

Joe
On Dec 13, 2013 4:46 AM, Prathyush Parat prathyushpa...@gmail.com wrote:

 The scenarios is when a valid username is entered against the field a ✔
 appears and if the username is invalid a ✖ appears. So how can i check the
 occurrence of such a symbol?

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [wtr-general] Re: Implementing logging and asserts

2013-12-01 Thread Joe Fleck
Hi Tez,

Some people use Rspec and Cucumber.  Links below.

http://cukes.info/

https://relishapp.com/rspec

Joe


On Sun, Dec 1, 2013 at 7:01 PM, Tez M tezma...@gmail.com wrote:

 So far I've implemented log4r as a logging extension and test/unit as the
 assert handler.

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [wtr-general] help connecting to database

2013-11-12 Thread Joe Fleck
Hi Gary,

I found this on stackoverflow and it seems straight forward and easy to use.
https://github.com/rails-sqlserver/tiny_tds/blob/master/README.md

Another Article that might help
http://stackoverflow.com/questions/12684416/connect-ruby-to-sql-server-2012-express

We use activerecord at work and it good once you get the hang of it.

Hope some of this helps.

Joe



On Tue, Nov 12, 2013 at 8:58 AM, gary mrgaryengl...@googlemail.com wrote:

 HI,

 Back in the days of Watir 1.8.6 it was fairly straightforward to connect
 to your sql database using dbi and odbc which was packaged with the watir
 installation.


 require 'odbc'
 require 'dbi'
 @dbconnect = 'DBI:ODBC:my odbc connection'
 @dbuser = 'username'
 @dbpass = 'password'

 @dbh = DBI.connect(@dbconnect, @dbuser, @dbpass)

 @sth = @dbh.prepare(select whatever from wherever i want)
 @sth.execute
   @details = Array.new
   @count = 0
   while row=@sth.fetch do
   @details[@count] = row.to_s
   @count +=1
   end
   @totalrows = @count
 @sth.finish




 The newer versions of watir  (2.1) don't appear to have anything packaged
 to do this and I'm struggling with the mass of google groups, blogs etc to
 keep up and figure out how to do this, not only is it all a mass of
 confusion but nothing appears to install without being directed to yet
 another gem to install, which often results in further gem installations,
 so if anyone has any basic instructions they can post, preferably as close
 to the odbc route i was previously using that would be greatly appreciated.
 My good old trusty stuck in the dark ages of watir 1.8.6 still works a
 treat but unfortunately the browser interaction does not ;-(

 Many thanks,  Gary

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [wtr-general] Newbie - Requests for resources/ tutorials on Watir online

2013-10-25 Thread Joe Fleck
Hi,

I have found the following books pretty helpful:

http://www.amazon.com/RSpec-Book-Behaviour-Development-Cucumber/dp/1934356379/ref=sr_1_1?s=booksie=UTF8qid=1382702342sr=1-1keywords=rspec

http://www.amazon.com/Cucumber-Book-Behaviour-Driven-Development-Programmers/dp/1934356808/ref=sr_1_1?s=booksie=UTF8qid=1382702426sr=1-1keywords=cucumber+ruby

http://www.amazon.com/Cucumber-Recipes-Techniques-Pragmatic-Programmers/dp/1937785017/ref=sr_1_2?s=booksie=UTF8qid=1382702426sr=1-2keywords=cucumber+ruby

http://www.amazon.com/Beginning-Ruby-Novice-Professional-Experts/dp/1430223634/ref=sr_1_11?s=booksie=UTF8qid=1382702501sr=1-11keywords=ruby+programming

http://www.amazon.com/Everyday-Scripting-Ruby-Teams-Testers/dp/0977616614/ref=sr_1_30?s=booksie=UTF8qid=1382702713sr=1-30keywords=ruby+programming

Joe

On Fri, Oct 25, 2013 at 7:09 AM, Avinash Suresh avinash.sur...@gmail.comwrote:

 Hey,

 I do not have any background in automated testing or in coding and my job
 requires me to work with Watir, Cucumber and Sikuli right now.

 I am through with the setup and I really need help in writing out the
 predefinedsteps.rb for some fairly simple onscreen browser actions so I
 will be able to run the actions in Cucumber.

 Any links/ resources that any of you guys can suggest will be of great
 help.

 Thanks in advance,

 Avinash

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [wtr-general] How can I click on specific place of image ?

2013-10-08 Thread Joe Fleck
Hi Luis,

Can you provide the relevant html for the progress bar?

Joe

On Tue, Oct 8, 2013 at 9:18 AM, Luis Espla luises...@gmail.com wrote:

 Hello,
  I'm testing video recorded application and I want to test progress bar
 video recorded, How can I click on specific place of the progress bar video
 recorded. I attach a image for you can view progress bar. This bar has a 24
 hours of the day if you click on 5 o'clock you watch video of 5,o'clock
 etc. I want to chose what time I click
 Sincerely regards

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [wtr-general] [Watir-webdriver] - Drag and drop using watir webdriver

2013-07-03 Thread Joe Fleck
Hi,

I have notice different behavior in the drag n drop method depending on the
os and browsers used.  I originally developed the drag_n_drop step on a
Mac/Firefox combo and will see the object being moved.  Though when I run
the same script on a WIN7 IE8 VM the visible object doesn't move but the
steps following that complete with success.

Joe


On Wed, Jul 3, 2013 at 9:53 AM, watir webdriver watirwebdriver...@gmail.com
 wrote:

 Hi there,

 I'm trying to drag and drop an element in webpage through the below code:

 Step def:
 When(/^I drag and drop Basket rule to the position slot$/) do
 @browser.span(:class = draggable
 ui-draggable).drag_and_drop_on(@browser.div(:class = droparea
 ui-droppable ui-sortable))
 end

 *The scenario is passing but on the webpage its just high lighting the
 draggable element.*(drop is not working)

 *HTML code for draggable code*:
 tr
 td
 span class=draggable ui-draggable full=Basket aid=BASKET Basket/
 span
 /td
 tr


 *HTML code for droppable code:*
 div id=0 class=droparea ui-droppable ui-sortable

 Anyone can help me with this issue ?

 Thanks in-advance.


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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] accessing the browser's print dialog box

2013-06-27 Thread Joe Fleck
Anne,

I had a similar situation were the browser dialog box displayed and
watir-webdriver wouldn't interact with it. I ended up using an open source
tool called Sikuli (http://www.sikuli.org/)  to interact with those dialog
boxes. Called it through command line connection in my scripts.  Uses
python and pretty simple to use although there IDE works better on MAC then
a Windows machine.

Sometimes these scenarios are better off being manually tested.

Hope this helps.

Joe


On Tue, Jun 25, 2013 at 1:03 PM, Anne annemordk...@gmail.com wrote:

 I've been searching on this topic for the last day.  Most of the entries
 are from 2009 and earlier, very few seem to contain an actual answer.

 Here's my problem...
 I'm trying to access the browser's print dialog box and press the print
 button.  I've tried treating it as a javascript dialog, a modal popup,
 using winchecker.  None of these seem to work -- the dialog displays but
 nothing I try actually presses the print button (or recognizes the dialog,
 for that matter).  If I ctrl^C out of my script, I get an error that says
 ...sleep was interrupted... in rautomation.

 At this point I don't know if I'm just frustrated or totally missing
 something obvious.  Either way, I'm at a loss for a solution.

 Can someone point me in the right direction?

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] Selecting items from JS drop down list

2013-06-27 Thread Joe Fleck
Hi Shannon,

I have dealt with JS dropdowns and in some cases you need to expand the
list and then select the item.

In the example you provided I don't see this element:

browser.ul(:id,ctl00_ChangeCustodyMenu)

though it is shown as a list item li.

You might need to do something like this:

browser.ul(:index=0 or 1 not sure).click
then
browser.a(:text,'Drop-off).click


Looking at the html is this a dropdown inside of dropdown?

I use watir-webdriver but that because we test multi browsers.

I hope this helps.

Joe


On Thu, Jun 27, 2013 at 7:47 PM, scrawf...@foray.com wrote:

 Hey- new to Watir and trying to select items in an unordered JS list.  I'm
 using watir-classic and testing in IE.

 Here's the code:
 div id=ctl00_content style=text-align: left; background: #fff;
  script type=text/javascript … /script
  div id=ctl00_breadCrumb class=navBar … /div
  div id=ctl00_menuBarUpdatePanel
   div id=ctl00_menuBar class=menuBar
table width=100% cellspacing=0 cellpadding=0 border=0
 tbody
  tr
   td
div class=menu
 ul
  div id=ctl00_MenuBarButtons class=menuBarButtons
   li id=ctl00_AddMenu style=display:inline; … /li
   li id=ctl00_ChangeCustodyMenu style=display:inline;
  Change Custody
ul
 li id=ctl00_CheckInMenuItem style=display:inline;
 li id=ctl00_CheckOutMenuItem style=display:inline;
  li id=ctl00_ReceiveMenuItem style=display:inline;
  li id=ctl00_ReturnMenuItem style=display:inline;
 li id=ctl00_DropOffMenuItem style=display:inline;
a onclick=window.location =
 '/WebSite/PropertyItems.aspx?action=dropOff'; return false; href=
 Drop-off

 I'm trying to select Drop-off (the last item in the list) and have
 attempted using the following:
 browser.ul(:id,ctl00_ChangeCustodyMenu).li(:text,Drop-off).click
 browser.div(:id, ctl00_MenuBarButtons).li(:index, 1).link(:index,
 4).click

 ... but then read that I can't select items in Watir unless I can see it.
 I started to test with fire_event(onclick) with the following tip: I
 firstly need to fire_event(onmouseover) which selects the item then
 fire_event(onclick).

 So I try this:
 browser.li(:id,ctl00_ChangeCustodyMenu).fire_event(onclick)

 This method will flash the 'Change Custody' menu, but not drop down the
 list with the 'Drop-down' item. Hence, I am not able to select the item on
 the list. The Change Custody list will drop once the user hovers over the
 menu.

 How do I select the JS drop-down list and select an item in an unordered
 list? Do I need to use webdriver's select_list, or am I just missing
 something? Watir-classic seems pretty straight forward and should handle
 this, but maybe the JS structure is tricky here.

 Thanks for the help!
 Shannon


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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] Re: How to delete specific table data from a table?

2013-06-26 Thread Joe Fleck
Sorry,
Typo

Replace this:
@browser.a(:href=delete.page?#{href_arr[href_arr.count - 1]})
with:
@browser.a(:href=delete.page?#{link_href_arr[link_href_arr.count - 1]})

Joe


On Wed, Jun 26, 2013 at 11:02 AM, watir webdriver 
watirwebdriver...@gmail.com wrote:

 Thanks Joe for ur reply...but its throwing error :

 *Used the below code in my step defs :*

 link_href = @browser.a(:text='tags_rule').attribute_value(href)
 link_href_arr = link_href.split(?)
 @browser.a(:href=delete.page?#{href_arr[href_arr.count - 1]})
 *Error :*
   undefined local variable or method `href_arr' for
 #Object:0x2a5f940 (NameError).

 Thanks.



 On Wednesday, June 26, 2013 12:10:44 PM UTC+1, watir webdriver wrote:

 Hi,

 In my application I've a table with 40 rows.How do I delete some specific
 td named as default,tags,city,**organic in  that table? All
 the deletes links are images with the same  *
 src **name*.Plz find the attachment of the table row.

 My step def:
 Then(/^I click on all the delete rules on the setup page$/) do
 words = [default, tags,organic,city]
 @current_page.delete_rules(:**words = words)
 end

 In my ruby class I've added delete_rules method as below :
 def delete_rules(words)
 image_elements(:src = /tracker/images/skin2/bin.**png).click
   end
 Problem here is its deleting the first row in the table..not the rows
 which I've mentioned in the array.

 My HTML is :
 tr
 td
 a href=edit.page?id=83tags**/a
 /td
 td
 a href=delete.page?did=83
 *img title=Delete src=/tracker/images/skin2/bin.png*
 /a
 a href=edit.page?id=83
 a href=activate.page?id=83
 /td
 td /td
 tr
 td
 a href=edit.page?id=83**default/a
 /td
 td
 a href=delete.page?did=83
 *img title=Delete src=/tracker/images/skin2/bin.png*
 /a
 a href=edit.page?id=83
 a href=activate.page?id=83
 /td
 td /td
 tr
 td
 a href=edit.page?id=83**organic/a
 /td
 td
 a href=delete.page?did=83
 *img title=Delete src=/tracker/images/skin2/bin.png*
 /a
 a href=edit.page?id=83
 a href=activate.page?id=83
 /td
 td /td
 tr
 td
 a href=edit.page?id=83city**/a
 /td
 td
 a href=delete.page?did=83
 *img title=Delete src=/tracker/images/skin2/bin.png*
 /a
 a href=edit.page?id=83
 a href=activate.page?id=83
 /td
 td /td

 Your help is much more appreciated.

 Thanks in advance.

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] Re: How to delete specific table data from a table?

2013-06-26 Thread Joe Fleck
After looking at what I sent you its missing something still.  Did you add
a click method to the end of line '@browser.a(:href=delete.page**
?#{link_href_arr[link_href_**arr.count - 1]})'?  If not it won't do
anything.

@browser.a(:href=delete.page**?#{link_href_arr[link_href_**arr.count -
1]}).click

Joe


On Wed, Jun 26, 2013 at 11:21 AM, watir webdriver 
watirwebdriver...@gmail.com wrote:

 Hi Joe,

 The test case is passed but it didn't delete the tags_rule.Can you plz
 suggest what may the issue?


 Thanks.

 On Wednesday, June 26, 2013 12:10:44 PM UTC+1, watir webdriver wrote:

 Hi,

 In my application I've a table with 40 rows.How do I delete some specific
 td named as default,tags,city,**organic in  that table? All
 the deletes links are images with the same  *
 src **name*.Plz find the attachment of the table row.

 My step def:
 Then(/^I click on all the delete rules on the setup page$/) do
 words = [default, tags,organic,city]
 @current_page.delete_rules(:**words = words)
 end

 In my ruby class I've added delete_rules method as below :
 def delete_rules(words)
 image_elements(:src = /tracker/images/skin2/bin.**png).click
   end
 Problem here is its deleting the first row in the table..not the rows
 which I've mentioned in the array.

 My HTML is :
 tr
 td
 a href=edit.page?id=83tags**/a
 /td
 td
 a href=delete.page?did=83
 *img title=Delete src=/tracker/images/skin2/bin.png*
 /a
 a href=edit.page?id=83
 a href=activate.page?id=83
 /td
 td /td
 tr
 td
 a href=edit.page?id=83**default/a
 /td
 td
 a href=delete.page?did=83
 *img title=Delete src=/tracker/images/skin2/bin.png*
 /a
 a href=edit.page?id=83
 a href=activate.page?id=83
 /td
 td /td
 tr
 td
 a href=edit.page?id=83**organic/a
 /td
 td
 a href=delete.page?did=83
 *img title=Delete src=/tracker/images/skin2/bin.png*
 /a
 a href=edit.page?id=83
 a href=activate.page?id=83
 /td
 td /td
 tr
 td
 a href=edit.page?id=83city**/a
 /td
 td
 a href=delete.page?did=83
 *img title=Delete src=/tracker/images/skin2/bin.png*
 /a
 a href=edit.page?id=83
 a href=activate.page?id=83
 /td
 td /td

 Your help is much more appreciated.

 Thanks in advance.

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] Re: How to delete specific table data from a table?

2013-06-26 Thread Joe Fleck
No problem.  Grad I could help.

Joe


On Wed, Jun 26, 2013 at 12:40 PM, watir webdriver 
watirwebdriver...@gmail.com wrote:

 Thanks a lot Joeit worked


 On Wednesday, June 26, 2013, Joe Fleck wrote:

 hi,

 you could do this

 Original:
 @browser.a(:href=delete.page**?#{link_href_arr[link_href_**arr.count -
 1]}).click

 Modified:
 @browser.a(:href=delete.page**?d#{link_href_arr[link_href_**arr.count
 - 1]}).click

 I added a 'd' in the href element.

 Your other options are to the developers make the href the same for edit
 and delete.  The other options is to use index.  Can be a lot of work.  Try
 the modified line above.

 Joe



 On Wed, Jun 26, 2013 at 12:01 PM, watir webdriver 
 watirwebdriver...@gmail.com wrote:

 HI Joe,

 Still its not workingthe href for the deletion is a href=
 delete.page?did=83
 but the code which I've is looking for :href=delete.page?id=83
 Is there any way to to get the *:href=delete.page?did=83*

 Error :
   unable to locate element, using {:href=delete.page?id=83,
 :tag_name=a} (Watir::Exception::UnknownObjectException)

 Thanks in-advance.


 On Wednesday, June 26, 2013 12:10:44 PM UTC+1, watir webdriver wrote:

 Hi,

 In my application I've a table with 40 rows.How do I delete some
 specific td named as default,tags,city,**organic in  that
 table? All the deletes links are images with the same  *
 src **name*.Plz find the attachment of the table row.

 My step def:
 Then(/^I click on all the delete rules on the setup page$/) do
 words = [default, tags,organic,city]
 @current_page.delete_rules(:**words = words)
 end

 In my ruby class I've added delete_rules method as below :
 def delete_rules(words)
 image_elements(:src = /tracker/images/skin2/bin.**png).click
   end
 Problem here is its deleting the first row in the table..not the rows
 which I've mentioned in the array.

 My HTML is :
 tr
 td
 a href=edit.page?id=83tags**/a
 /td
 td
 a href=delete.page?did=83
 *img title=Delete src=/tracker/images/skin2/bin.png*
 /a
 a href=edit.page?id=83
 a href=activate.page?id=83
 /td
 td /td
 tr
 td
 a href=edit.page?id=83**default/a
 /td
 td
 a href=delete.page?did=83
 *img title=Delete src=/tracker/images/skin2/bin.png*
 /a
 a href=edit.page?id=83
 a href=activate.page?id=83
 /td
 td /td
 tr
 td
 a href=edit.page?id=83**organic/a
 /td
 td
 a href=delete.page?did=83
 *img title=Delete src=/tracker/images/skin2/bin.png*
 /a
 a href=edit.page?id=83
 a href=activate.page?id=83
 /td

 You received this message because you are subscribed to the Google
 Groups Watir General group.

 To unsubscribe from this group and stop receiving emails from it, send
 an email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




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

 ---
 You received this message because you are subscribed to a topic in the
 Google Groups Watir General group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/watir-general/5lWYgBrTkSo/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 watir-general+unsubscr...@googlegroups.com.

 For more options, visit https://groups.google.com/groups/opt_out.



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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] Open local excel file and assert data

2013-06-07 Thread Joe Fleck
Hi,

Watir can open a csv file which you save an excel file as.  Ruby alone can
to what you want and there is a gem that will work with excel.  You might
need to do google search for it.

Joe
On Jun 7, 2013 11:56 AM, He Bing Lin peter...@gmail.com wrote:

 Can watir open local excel sheet file? then compare the data in a cell to
 a table data on the web? If watir cannot do it, is any other automation
 tools possible such as selenium etc. Thank you very much

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] Any fast ways to parse a table

2013-06-07 Thread Joe Fleck
Hi.

Can you post the html?

Joe
On Jun 7, 2013 4:36 PM, Super Kevy kpe...@scholarshipamerica.org wrote:

 I have a table on a page with 7 columns of data that I need to match
 against in order to click a button associated with row.
 My current method is to do compares of the row data but it seems to
 take forever to evaluate the 7 column match.
 Any suggestions on how I can speed up validating a table row contains
 the values I'm looking for?


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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] Unable to click a class=close href=javascript:;x/a

2013-06-03 Thread Joe Fleck
Hi Raymond,

What is the error you are getting?  Can you copy and paste in thread?

Joe


On Mon, Jun 3, 2013 at 8:25 AM, Raymond Wiertz reedys...@gmail.com wrote:

 Hello,

 Can anybody help me?
 I want to click on a html element a class=close href=javascript:;x/
 a

 I used:
   browser.link(:class, close).click

 but it doesn't work.

 what do i wrong.

 regards.

 Raymond

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] Unable to click a class=close href=javascript:;x/a

2013-06-03 Thread Joe Fleck
Hi,

Include your code too.

Joe


On Mon, Jun 3, 2013 at 10:14 AM, Joe Fleck joeflec...@gmail.com wrote:

 Hi Raymond,

 What is the error you are getting?  Can you copy and paste in thread?

 Joe


 On Mon, Jun 3, 2013 at 8:25 AM, Raymond Wiertz reedys...@gmail.comwrote:

 Hello,

 Can anybody help me?
 I want to click on a html element a class=close href=javascript:;x
 /a

 I used:
   browser.link(:class, close).click

 but it doesn't work.

 what do i wrong.

 regards.

 Raymond

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.






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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] Problem: Couldn't load 2.0/gherkin_lexer_en

2013-05-06 Thread Joe Fleck
Hi,

Are you using 64 or 32 bit windows machine?

Joe
 On May 6, 2013 8:20 AM, LuisE luises...@gmail.com wrote:

 Hello, I am trying to use Watir with Cucumber in Windows 7(I use ruby 2.0
 and gherkin 2.12.0) and It doesn't work fine. It always give the same error:

 WARNING: cannot load such file — 2.0/gherkin_lexer_en
 Couldn’t load 2.0/gherkin_lexer_en
 The $LOAD_PATH was:
 lib
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/cucumber-1.3.1/bin/../lib
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/rspec-2.13.0/lib
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/rspec-mocks-2.13.1/lib
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/rspec-expectations-2.13.0/lib
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/rspec-core-2.13.1/lib
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/page-object-0.8.10/lib
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/watir-webdriver-0.6.4/lib
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.32.1/lib
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/websocket-1.0.7/lib
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/rubyzip-0.9.9/lib
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/page_navigation-0.9/lib
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/data_magic-0.14/lib
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/yml_reader-0.2/lib
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/faker-1.1.2/lib
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/i18n-0.6.4/lib
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/cucumber-1.3.1/lib
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/gherkin-2.12.0-x86-mingw32/lib
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/multi_json-1.7.3/lib
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/diff-lcs-1.2.4/lib
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/childprocess-0.3.9/lib
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/ffi-1.8.1-x86-mingw32/lib
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/ffi-1.8.1-x86-mingw32/ext/ffi_c
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/builder-3.2.0/lib
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib
 C:/Program Files/JetBrains/RubyMine 5.4.1/rb/testing/patch/common
 C:/Program Files/JetBrains/RubyMine 5.4.1/rb/testing/patch/bdd
 C:/Ruby200/lib/ruby/site_ruby/2.0.0
 C:/Ruby200/lib/ruby/site_ruby/2.0.0/i386-msvcrt
 C:/Ruby200/lib/ruby/site_ruby
 C:/Ruby200/lib/ruby/vendor_ruby/2.0.0
 C:/Ruby200/lib/ruby/vendor_ruby/2.0.0/i386-msvcrt
 C:/Ruby200/lib/ruby/vendor_ruby
 C:/Ruby200/lib/ruby/2.0.0
 C:/Ruby200/lib/ruby/2.0.0/i386-mingw32. Reverting to Ruby lexer.
 No lexer was found for en (cannot load such file — gherkin/lexer/en).
 Supported languages are listed in gherkin/i18n.json.
 (Gherkin::I18n::LexerNotFound)
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/gherkin-2.12.0-x86-mingw32/lib/gherkin/i18n.rb:108:in
 `rescue in lexer’
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/gherkin-2.12.0-x86-mingw32/lib/gherkin/i18n.rb:97:in
 `lexer’
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/gherkin-2.12.0-x86-mingw32/lib/gherkin/parser/parser.rb:139:in
 `transition_table’
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/gherkin-2.12.0-x86-mingw32/lib/gherkin/parser/parser.rb:128:in
 `build_transition_map’
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/gherkin-2.12.0-x86-mingw32/lib/gherkin/parser/parser.rb:124:in
 `transition_map’
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/gherkin-2.12.0-x86-mingw32/lib/gherkin/parser/parser.rb:91:in
 `initialize’
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/gherkin-2.12.0-x86-mingw32/lib/gherkin/parser/parser.rb:68:in
 `new’
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/gherkin-2.12.0-x86-mingw32/lib/gherkin/parser/parser.rb:68:in
 `push_machine’
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/gherkin-2.12.0-x86-mingw32/lib/gherkin/parser/parser.rb:31:in
 `parse’
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/cucumber-1.3.1/lib/cucumber/feature_file.rb:37:in
 `parse’
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/cucumber-1.3.1/lib/cucumber/runtime/features_loader.rb:28:in
 `block in load’
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/cucumber-1.3.1/lib/cucumber/runtime/features_loader.rb:26:in
 `each’
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/cucumber-1.3.1/lib/cucumber/runtime/features_loader.rb:26:in
 `load’
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/cucumber-1.3.1/lib/cucumber/runtime/features_loader.rb:14:in
 `features’
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/cucumber-1.3.1/lib/cucumber/runtime.rb:178:in
 `features’
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/cucumber-1.3.1/lib/cucumber/runtime.rb:48:in
 `run!’
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/cucumber-1.3.1/lib/cucumber/cli/main.rb:47:in
 `execute!’
 C:/Ruby200/lib/ruby/gems/2.0.0/gems/cucumber-1.3.1/bin/cucumber:13:in `’
 C:/Ruby200/bin/cucumber:23:in `load’
 C:/Ruby200/bin/cucumber:23:in `’
 -e:1:in `load’
 -e:1:in `’

 Process finished with exit code 1
 Empty test suite.



 Does anybody know the problem?
 Thanks in advance


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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to 

Re: [wtr-general] Watir and Jenkins

2013-04-12 Thread Joe Fleck
okay, I have solved my problem.  I found it here
http://stackoverflow.com/questions/10983307/jruby-watir-is-hanging-when-launching-browser

We originally had done it for our cukes.

Thanks for everyones help though.




On Thu, Apr 11, 2013 at 10:37 PM, Joe Fl joeflec...@gmail.com wrote:

 Okay,

 I started converting my scripts over to Cucumber.  Though I noticed that
 the version of jruby on the vm is 1.7.2 and won't execute the scripts.  Has
 anyone run into problems with watir-webdriver scripts running with jruby
 1.7.2?
 We are running the script against Firefox on that Windows 8 VM.

 Here is the commands:

 set PATH=%PATH%;C:\Program Files\jruby-1.7.2\bin\
 IF NOT EXIST reports ( mkdir reports ) ELSE ( del /s /F /Q reports\* )
 copy C:\Cucumber Data\test_config.yml features\support\test_config.yml
 copy C:\Cucumber Data\config.engage.properties
 C:\usr\local\explorys\config\config.engage.properties
 cucumber features\measure -p all_releases --format html --out
 reports\cucumber_results.html --format pretty --format json -o
 reports\cucumber_results.json --format junit -o reports


 On Wednesday, March 6, 2013 1:27:27 PM UTC-5, Chuck van der Linden wrote:

 I would also look at which browser their scripts are using, etc.  There
 might be some difference there.

 Also look to the details of the jenkins commands that execute their
 scripts, if they are perhaps running as administrator, etc.

 On Wednesday, March 6, 2013 5:15:52 AM UTC-8, Joe Fl wrote:

 At this point looks like I will need to do that.
 The difference is theirs is write as cucumber script mine is not.
 Both use watir just the structure/architecture is different.

 Thank you for your help Željko.

 Joe

 On Wed, Mar 6, 2013 at 7:15 AM, Željko Filipin zeljko@gmail.com
 wrote:
  On Wed, Mar 6, 2013 at 1:13 PM, Joe Fleck joefl...@gmail.com wrote:
 
  They are using watir to drive the scripts.
 
 
  Why can't you use their setup? What is different in your setup?
 
  Željko
 
  --
  --
  Before posting, please read http://watir.com/support. In short:
 search
  before you ask, be nice.
 
  watir-...@googlegroups.com
  http://groups.google.com/**group/watir-generalhttp://groups.google.com/group/watir-general
  watir-genera...@googlegroups.**com
 
  ---
  You received this message because you are subscribed to the Google
 Groups
  Watir General group.
  To unsubscribe from this group and stop receiving emails from it, send
 an
  email to watir-genera...@googlegroups.**com.
  For more options, visit 
  https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out.

 
 

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] retrieve hidden text values with watir webdriver

2013-03-07 Thread Joe Fleck
Hi,

Can you paste your code?

Joe

On Thu, Mar 7, 2013 at 10:47 AM,  fabian.aroc...@gmail.com wrote:
 Hey guys!

 I'm trying to retrieve the text from a textarea, which appears as hidden,
 although I can dee it on the browser. This is the html tag:

 tr
  td
Certification Request Number
input type=hidden name=reqtitle value=Certification Request
 Number
  /td
 /tr

 I would like to grab  the value Certification Request Number, but I get
 this error:


 (...) `assert_exists': unable to locate element, using {:name=reqtitle,
 :tag_name=input or textarea, :type=(any text type)}
 (Watir::Exception::UnknownObjectException)

 I've done my research on the mailing list and couldn't find anything
 ...Also, I could grab the text in the tdtd tags, but they are inside a
 table, which is inside a table inside a table and another table and so on,
 so it's impossible to track.

 Ideas?

 Thanks!
 Fabian



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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] Watir and Jenkins

2013-03-06 Thread Joe Fleck
At this point looks like I will need to do that.
The difference is theirs is write as cucumber script mine is not.
Both use watir just the structure/architecture is different.

Thank you for your help Željko.

Joe

On Wed, Mar 6, 2013 at 7:15 AM, Željko Filipin zeljko.fili...@gmail.com wrote:
 On Wed, Mar 6, 2013 at 1:13 PM, Joe Fleck joeflec...@gmail.com wrote:

 They are using watir to drive the scripts.


 Why can't you use their setup? What is different in your setup?

 Ž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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] Watir and Jenkins

2013-03-05 Thread Joe Fleck
Željko,

Thank you for responding.  We are able to run cucumber scripts on that
same VM.  I not that familiar with cucumber but why does it work?

Thank you in advance.

Regards,
Joe

On Tue, Mar 5, 2013 at 4:44 AM, Željko Filipin zeljko.fili...@gmail.com wrote:
 On Tue, Mar 5, 2013 at 2:11 AM, Joe Fl joeflec...@gmail.com wrote:

 When I try to excute them from Jenkins the browser never launches and the
 scripts process never ends.


 I am running Watir scripts from Jenkins all the time, but not on Windows. As
 far as I remember, Windows needs graphical environment (can not remember the
 exact term at the moment) to be able to open browsers. The most likely
 problem is that Jenkins does not have access to Windows GUI.

 Željko
 --
 https://leanpub.com/watirbook

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] Watir and Jenkins

2013-03-05 Thread Joe Fleck
Hi Željko,

According to the group that created the cucumber scripts they are
excuting against a browser.  They are also using jruby instead of
ruby.  Could this be the problem and can my ruby script be run with
jruby?
I spent the most of the morning messing around with this and got to
point were the script would crash because
it could not locate the watir-webdriver.

Do I need to create another VM with Jenkins and run my watir scripts from there?

I would like to know if you or anyone else has dealt with this.

I do appreciate your help with this.

Thank you,
Joe

On Tue, Mar 5, 2013 at 7:54 AM, Željko Filipin zeljko.fili...@gmail.com wrote:
 On Tue, Mar 5, 2013 at 1:47 PM, Joe Fleck joeflec...@gmail.com wrote:

 We are able to run cucumber scripts on that
 same VM.  I not that familiar with cucumber but why does it work?


 Cucumber does not need GUI to work. Browsers do, and Watir drives browsers.

 Ž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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] Table cell with javascript

2013-02-22 Thread Joe Fleck
Hi,

You could try
browser.tr(:title=Add a new request to the list).click

On Fri, Feb 22, 2013 at 9:46 AM,  fabian.aroc...@gmail.com wrote:
 Hi Guys!


 I'm new to watir and I must say I'm very excited with what I have
 acomplished so far with it. It's magic! I'm having trouble locating the
 following elemnt, though:

 tr valign=middle title=Add a new request to the list
 onclick=addReq(document.ReqID.value, document.UserID.value);
 td
 font class=bodyText style=color:0033ff;text-decoration:none;Add a
 request/font
 /td
 /tr

 I would like to click on this cell (so that the javascript function addReq
 is executed) Anyone knows how to do this? I'm tried with browser.a(:title =
 Add a request) but it is unable to locate the element. I've also read the
 watir book and I couldn;t find anything...

 Any ideas?

 Thanks!
 Fabian

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] Re: accessing a firefox popup woith watir-webdriver

2013-02-22 Thread Joe Fleck
Hi,

Can you use firebug the javascript popup and paster the html code here?

Joe

On Fri, Feb 22, 2013 at 2:34 PM,  fabian.aroc...@gmail.com wrote:
 This doesn't work for me ... The pop up is a javascript confirm method
 popup and it doesn't react to any of the browser.alert.* methods. I then
 close it and the script errors out saying that it is unable to find the
 alert.

 El jueves, 29 de septiembre de 2011 19:34:59 UTC-3, Alister Scott escribió:

 See:
 http://watirwebdriver.com/browser-popups/ or
 http://watirwebdriver.com/javascript-dialogs/

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] Re: How to handle download bar in IE 9

2013-02-06 Thread Joe Fleck
I use Sikuli to handle such pop up windows.  AutoIT is also a good alternative.

Joe

On Wed, Feb 6, 2013 at 6:53 AM, Alex Shtayer ashta...@gmail.com wrote:
 I automate such kind of things through AutoIT due pop-ups are not usual
 window and cannot be attached or something


 On Tuesday, July 17, 2012 8:32:27 AM UTC+3, Agung Surya wrote:

 Hi,

 I'm having a problem regarding access the new pop up in IE 9 using Watir
 This pop up regarding the save or open pop up that like a tab in the
 bottom of the page.
 Could some one please share the steps to access those button?(Open, save
 as, and cancel button)

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] How to run Watir with Firefox 18?

2013-02-05 Thread Joe Fleck
Can you paste the code you are executing here?

Joe

On Mon, Feb 4, 2013 at 10:22 PM, Phuoc Can Hua h...@huaonline.com wrote:


 On Tuesday, 5 February 2013 13:58:04 UTC+11, Joe Fl wrote:

 Make sure to remove the require statement for firewatir and replace it
 with
 require 'watir-webdriver'.

 Joe



 Doesn't seem I have require firewatir anywhere. I added require
 watir-webdriver and got this error:
 C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.6.2/lib/watir-webdriver/exception.rb:8:in
 `module:Exception': superclass m
 ismatch for class UnknownObjectException (TypeError)
 from
 C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.6.2/lib/watir-webdriver/exception.rb:4:in
 `module:Watir'
 from
 C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.6.2/lib/watir-webdriver/exception.rb:3:in
 `top (required)'
 from
 C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
 `require'
 from
 C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
 `require'
 from
 C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.6.2/lib/watir-webdriver.rb:6:in
 `top (required)'
 from
 C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in
 `require'
 from
 C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue
 in require'
 from
 C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in
 `require'
 from C:/hms_auto_test/HMS/HMSCommon_SP3/HMSTestCase.rb:2:in `top
 (required)'
 from
 C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
 `require'
 from
 C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
 `require'
 from
 C:/hms_auto_test/HMS/TestCases/HMS/HMS_Priority1_Add_TestCases.rb:4:in `top
 (required)'
 from
 C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
 `require'
 from
 C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
 `require'
 from C:/hms_auto_test/HMS/TestSuites/HMS_TestSuite.rb:8:in `top
 (required)'
 from
 C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
 `require'
 from
 C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
 `require'
 from ../../main/runHMSTests.rb:8:in `main'

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] How to run Watir with Firefox 18?

2013-02-05 Thread Joe Fleck
Hi,

Try placing the require statement in the begin of your code.  Sorry it's
capitalized but my kindle fire kept auto correcting.

Require 'WATIR-WEBDRIVER'

runHMSTests.rb:8
require 'HMS_TestSuite'

HMS_TestSuite.rb:8
require 'HMS_Priority1_Add_TestCases'

HMS_Priority1_Add_TestCases.rb:4
require 'HMSTestCase'

HMSTestCase.rb:2

Joe



On Tuesday, February 5, 2013, Phuoc Can Hua h...@huaonline.com wrote:
 runHMSTests.rb:8
 require 'HMS_TestSuite'

 HMS_TestSuite.rb:8
 require 'HMS_Priority1_Add_TestCases'

 HMS_Priority1_Add_TestCases.rb:4
 require 'HMSTestCase'

 HMSTestCase.rb:2
 require 'watir-webdriver'

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

 ---
 You received this message because you are subscribed to the Google Groups
Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] How to run Watir with Firefox 18?

2013-02-05 Thread Joe Fleck
Hi Phouc,

I make it a practice to do the following regardless of the OS I
running the scripts on:

require 'rubygems'
require 'watir-webdriver'

I believe Firewatir is no longer supported since the release of
watir-webdriver.  I would remove it all together because
watir-webdriver supports the latest version of FireFox.

The ruby files you have listed in your code are those your automation scripts?

Have you tried using irb to launch firefox and see if you can interact
with the site?  This is a good debugging process.

Some other things you might try are updating your rubygems the version
i have on my windows machine is 1.8.13 and yours is 1.8.6 which seems
a little old.  What version of ruby are using?  (ruby -v in the
command window)

Joe






On Tue, Feb 5, 2013 at 9:08 PM, Phuoc Can Hua h...@huaonline.com wrote:
 Hi Joe,
 I've added require watir-webbrowser. But it didn't seem to help. Now I
 removed requre 'watir'. Then it moved to something else, see below.
 So, I tried with installing firewatir. I still got the same message. My
 installed firewater was 1.9.4. Can this be a reason? I got the same error
 with and without firewatir.

 Thanks
 Phuoc


 C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in
 `to_specs': Could not find firewatir (= 1.9.2) amongst [builder-
 3.0.0, childprocess-0.3.7, commonwatir-1.9.2, ffi-1.0.9-x86-mingw32,
 hoe-2.10.0, minitest-1.6.0, multi_json-1.5.0, net-ssh-2.1.4,
 nokogiri-1.5.0-x86-mingw32, rake-0.8.7, rautomation-0.6.3, rdoc-2.5.8,
 rubygems-update-1.8.6, rubyzip-0.9.9, s4t-utils-1.0.4, sele
 nium-webdriver-2.29.0, test-unit-2.3.0, user-choices-1.1.6.1, watir-1.9.2,
 watir-webdriver-0.6.2, websocket-1.0.7, win32-api-1.4.8
 -x86-mingw32, win32-process-0.6.5, windows-api-0.4.0, windows-pr-1.2.0,
 xml-simple-1.1.0] (Gem::LoadError)
 from
 C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:761:in `block
 in activate_dependencies'
 from
 C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:758:in `each'
 from
 C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:758:in
 `activate_dependencies'
 from
 C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:742:in
 `activate'
 from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems.rb:209:in `rescue
 in try_activate'
 from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems.rb:206:in
 `try_activate'
 from
 C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:58:in `rescue
 in require'

 from
 C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in
 `require'
 from C:/hms_auto_test/HMS/HMSCommon_SP3/HMSTestCase.rb:4:in `top
 (required)'

 from
 C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
 `require'
 from
 C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
 `require'
 from
 C:/hms_auto_test/HMS/TestCases/HMS/HMS_Priority1_Add_TestCases.rb:4:in `top
 (required)'

 from
 C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
 `require'
 from
 C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
 `require'
 from C:/hms_auto_test/HMS/TestSuites/HMS_TestSuite.rb:9:in `top
 (required)'

 from
 C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
 `require'
 from
 C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
 `require'
 from ../../main/runHMSTests.rb:8:in `main'


 On Wednesday, 6 February 2013 12:26:08 UTC+11, Joe Fl wrote:

 Hi,

 Try placing the require statement in the begin of your code.  Sorry it's
 capitalized but my kindle fire kept auto correcting.

 Require 'WATIR-WEBDRIVER'


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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] I am beginner, getting error please help !

2013-02-04 Thread Joe Fleck
Hi Amit,

I recommend using the following:
ruby 1.9.3
selenium-webdriver (2.29.0)
watir-webdriver (0.6.2)
latest version of watir gem and rubygems

I think if you have ruby 1.8.7 you are in good shape too.

Joe



On Mon, Feb 4, 2013 at 3:09 AM, Amit Kumar amit.sr...@gmail.com wrote:
 Dear Joe:

 Thanks for providing this useful information.
 Could you please suggest me that which versions of Ruby, Rubygems and Watir
 should I use on Windows 8?
 I am currently using Ruby1.8.7, rubygems1.8.25.




 On Fri, Feb 1, 2013 at 8:46 PM, Joe Fleck joeflec...@gmail.com wrote:

 Hi Amit,

 Here is my gem list for a Windows8 VM.

 C:\gem list

 *** LOCAL GEMS ***

 bigdecimal (1.1.0)
 builder (3.1.4)
 childprocess (0.3.7)
 commonwatir (4.0.0)
 ffi (1.3.1 x86-mingw32)
 hoe (3.5.0)
 io-console (0.3)
 json (1.5.4)
 mini_magick (3.2.1)
 minitest (2.5.1)
 multi_json (1.5.0)
 mysql (2.9.0 x86-mingw32)
 mysql2 (0.3.11 x86-mingw32)
 nokogiri (1.5.6 x86-mingw32)
 rake (0.9.2.2)
 rautomation (0.7.3)
 rdoc (3.9.4)
 rubyzip (0.9.9)
 s4t-utils (1.0.4)
 selenium-webdriver (2.29.0)
 subexec (0.0.4)
 terminal-table (1.4.5)
 user-choices (1.1.6.1)
 watir (4.0.2 x86-mingw32)
 watir-classic (3.4.0)
 watir-webdriver (0.6.2)
 websocket (1.0.6)
 win32-api (1.4.8 x86-mingw32)
 win32-process (0.7.1)
 win32screenshot (1.0.7)
 windows-api (0.4.2)
 windows-pr (1.2.2)
 xml-simple (1.1.2)

 Joe

 On Fri, Feb 1, 2013 at 9:30 AM, Amit Kumar amit.sr...@gmail.com wrote:
  Thanks a lot Joe. It worked.
 
  One quick question:
  I am using Windows 8 and Ruby 1.8.7
  Could you please suggest me which versions of the Ruby, Rubygems and
  Watir
  are best for Windows 8.
  I will really appreciate. if you provide me complete package for Watir
  on
  Windows 8.
 
 
  On Fri, Feb 1, 2013 at 7:49 PM, Joe Fleck joeflec...@gmail.com wrote:
 
  I would change 'default' to 'new'.
 
  browser = Watir::Browser.new :ff
 
  The above should do it.
 
  Joe
 
  On Fri, Feb 1, 2013 at 9:18 AM, Amit Kumar amit.sr...@gmail.com
  wrote:
   Hi Joe:
  
   Thanks for your reply.
  
   I installed watir-webdriver-0.6.2. Now I am getting different error:
  
   hello.rb:3: undefined method `default=' for Watir::Browser:Class
   (NoMethodError)
  
   And my code looks like:
  
   require 'rubygems'
  
   require 'watir-webdriver'
   browser = Watir::Browser.default = firefox
   browser = Watir::Browser.start URL
  
   browser.form(:id, signin).text_field(:id,
   username).set(username)
   browser.form(:id, signin).text_field(:id,
   password).set(Password)
   browser.form(:id, signin).button(:value, Sign In).click
  
  
  
  
   On Fri, Feb 1, 2013 at 7:35 PM, Joe Fleck joeflec...@gmail.com
   wrote:
  
   Hi Amit,
  
   When driving Firefox you need to use watir-webdriver not watir.
  
   These are the two line I changed.
   require 'watir-webdriver'
   browser = Watir::Browser.default = firefox
  
  
  
   On Fri, Feb 1, 2013 at 8:52 AM, Amit Kumar amit.sr...@gmail.com
   wrote:
Dear All:
   
Hope you all are doing great. Please help on following error.
   
I am getting error while executing script. I am using Windows 8
and
Ruby187.
   
Code:
require 'rubygems'
require 'Watir'
Watir::Browser.default = firefox
browser = Watir::Browser.start website url
browser.form(:id, signin).text_field(:id,
username).set(username)
browser.form(:id, signin).text_field(:id,
password).set(password)
browser.form(:id, signin).button(:value, Sign In).click
   
Error:
E:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
`gem_original_require': no such file to load -- watir/loader
(LoadError)
from
E:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
`require'
from
E:/Ruby187/lib/ruby/gems/1.8/gems/commonwatir-4.0.0/lib/Watir.rb:1
from
E:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:60:in
`gem_original_require'
from
E:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:60:in
`require'
from hello.rb:2
   
--
Thanks and Regards,
Amit
   
--
--
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
   
---
You received this message because you are subscribed to the Google
Groups
Watir General group.
To unsubscribe from this group and stop receiving emails from it,
send
an
email to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
   
   
  
   --
   --
   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
  
   ---
   You received

Re: [wtr-general] input type=image

2013-02-04 Thread Joe Fleck
Hi Sohail,

I would treat it as a input.

@browser.input(:value=Add New Customer).click

Or any of the above.

Joe

On Mon, Feb 4, 2013 at 8:20 AM, Sohail Mirza mrz...@gmail.com wrote:
 Oscar,

 if i am not wrong, the following URL tells to record it as a button.

 http://wiki.openqa.org/display/WTR/HTML+Elements+Supported+by+Watir

 Am i missing some important point here?
 Thanks


 On Mon, Feb 4, 2013 at 5:18 PM, Oscar Rieken bis...@gmail.com wrote:

 well its an image and you are telling watir to look for a button

 http://rdoc.info/github/jarib/watir-webdriver/master/Watir/Element


 On Mon, Feb 4, 2013 at 8:15 AM, Sohail Mirza mrz...@gmail.com wrote:

 Hi,

 i have following html code for input type image

 input type=image src=/MyTestDemo/Images/add.png value=Add New
 Customer data-bind=visible: IsAddAllowed,click: $root.AddNewCustomer
 class=ui-button

 How can i perform click event on above?
 i am trying the following but failing

 @browser.button(:src,/MyTestDemo/Images/add/).click
 @browser.button(:class = ui-button).click

 Please

 Thanks

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] How to run Watir with Firefox 18?

2013-02-04 Thread Joe Fleck
Phuoc,

I don't see our previous conversation here but did you initially
install firewatir on that VM?  If so you might need to do a 'gem
uninstall firewatir'.  Also can you do a gem list and paste the
results here.

I am pasting the error message here in the thread.

Hi Joe,
Thanks for the reply. I just installed watir-webdriver successfully.
I'm still getting this (which I had before)
  1) Error:
test_LogonIntoHMS_HMS_Login_1(HMS_Priority1_Add_TestCases):
Watir::Exception::UnableToStartJSShException: Unable to connect to
machine : 127.0.0.1 on port 9997. Make sure that JSSh is proper
ly installed and Firefox is running with '-jssh' option

C:/Ruby192/lib/ruby/gems/1.9.1/gems/firewatir-1.9.2/lib/firewatir/firefox.rb:156:in
`rescue in set_defaults'

C:/Ruby192/lib/ruby/gems/1.9.1/gems/firewatir-1.9.2/lib/firewatir/firefox.rb:148:in
`set_defaults'

C:/Ruby192/lib/ruby/gems/1.9.1/gems/firewatir-1.9.2/lib/firewatir/firefox.rb:43:in
`initialize'

C:/Ruby192/lib/ruby/gems/1.9.1/gems/commonwatir-1.9.2/lib/watir/browser.rb:65:in
`new'

C:/Ruby192/lib/ruby/gems/1.9.1/gems/commonwatir-1.9.2/lib/watir/browser.rb:65:in
`new'
C:/hms_auto_test/HMS/HMSCommon_SP3/HMSTestCase.rb:83:in `setup'

I tried following without success:
http://www.natontesting.com/2009/07/24/firewatir-jssh-unable-to-connect-fixed/

I guess something is still missing.


Joe


On Mon, Feb 4, 2013 at 5:13 PM, Phuoc Can Hua h...@huaonline.com wrote:
 I've got scripts which are running with IE6. Now I want to run them with
 Firefox 18.
 I haven't managed to get the browser launched. I tried to follow following
 instructions:
 http://wiki.openqa.org/display/WTR/Browser.new

 I got some errors then I found this:
 http://wiki.openqa.org/display/WTR/FireWatir+Installation

 Looks like I have to install something. Unfortunately the JSSH extension is
 not for FIrefox 18.

 I guess I'm on the wrong path. Can anybody help?

 Thanks
 Phuoc

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] How to run Watir with Firefox 18?

2013-02-04 Thread Joe Fleck
Make sure to remove the require statement for firewatir and replace it with
require 'watir-webdriver'.

Joe
On Feb 4, 2013 9:53 PM, Phuoc Can Hua h...@huaonline.com wrote:

 On Tuesday, 5 February 2013 12:55:56 UTC+11, Joe Fl wrote:

 Phuoc,

 I don't see our previous conversation here but did you initially
 install firewatir on that VM?  If so you might need to do a 'gem
 uninstall firewatir'.  Also can you do a gem list and paste the
 results here.



 Joe,
 After uninstalling firewatir I got this:
 C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in
 `to_specs': Could not find firewatir (= 1.9.2) amongst [builder-
 3.0.0, childprocess-0.3.7, commonwatir-1.9.2, ffi-1.0.9-x86-mingw32,
 hoe-2.10.0, minitest-1.6.0, multi_json-1.5.0, net-ssh-2.1.4,
 nokogiri-1.5.0-x86-mingw32, rake-0.8.7, rautomation-0.6.3, rdoc-2.5.8,
 rubygems-update-1.8.6, rubyzip-0.9.9, s4t-utils-1.0.4, sele
 nium-webdriver-2.29.0, test-unit-2.3.0, user-choices-1.1.6.1, watir-1.9.2,
 watir-webdriver-0.6.2, websocket-1.0.7, win32-api-1.4.8
 -x86-mingw32, win32-process-0.6.5, windows-api-0.4.0, windows-pr-1.2.0,
 xml-simple-1.1.0] (Gem::LoadError)

 Here is my list:
 *** LOCAL GEMS ***

 builder (3.0.0)
 childprocess (0.3.7)
 commonwatir (1.9.2)
 ffi (1.0.9 x86-mingw32)
 hoe (2.10.0)
 minitest (1.6.0)
 multi_json (1.5.0)
 net-ssh (2.1.4)
 nokogiri (1.5.0 x86-mingw32)
 rake (0.8.7)
 rautomation (0.6.3)
 rdoc (2.5.8)
 rubygems-update (1.8.6)
 rubyzip (0.9.9)
 s4t-utils (1.0.4)
 selenium-webdriver (2.29.0)
 test-unit (2.3.0)
 user-choices (1.1.6.1)
 watir (1.9.2)
 watir-webdriver (0.6.2)
 websocket (1.0.7)
 win32-api (1.4.8 x86-mingw32)
 win32-process (0.6.5)
 windows-api (0.4.0)
 windows-pr (1.2.0)
 xml-simple (1.1.0)

 Phuoc

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] help please

2013-02-03 Thread Joe Fleck
Hi Sohail,

Can you provide more of the html code that surrounds the field you
looking at setting?

Thanks,
Joe

On Sat, Feb 2, 2013 at 1:19 PM, Sohail Mirza mrz...@gmail.com wrote:
 Hi,

 my question is how to set value in the textbox with following html code

 div id=idDiv_PWD_UsernameExample class=placeholder ltr_override
 aria-hidden=true style=cursor: text;some...@example.com/div



 1st:
 @browser = Watir::Browser.new :chrome
 @browser.div(:id = idDiv_PWD_UsernameExample).set 't...@test.com'

 2nd:
 @browser = Watir::Browser.new :chrome
 @browser.text_field(:id = idDiv_PWD_UsernameExample).set
 (t...@test.com)


 3rd:
 @browser = Watir::Browser.new :chrome
 @browser.div(:class = placeholder ltr_override).set (t...@test.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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] I am beginner, getting error please help !

2013-02-01 Thread Joe Fleck
Hi Amit,

When driving Firefox you need to use watir-webdriver not watir.

These are the two line I changed.
require 'watir-webdriver'
browser = Watir::Browser.default = firefox



On Fri, Feb 1, 2013 at 8:52 AM, Amit Kumar amit.sr...@gmail.com wrote:
 Dear All:

 Hope you all are doing great. Please help on following error.

 I am getting error while executing script. I am using Windows 8 and Ruby187.

 Code:
 require 'rubygems'
 require 'Watir'
 Watir::Browser.default = firefox
 browser = Watir::Browser.start website url
 browser.form(:id, signin).text_field(:id, username).set(username)
 browser.form(:id, signin).text_field(:id, password).set(password)
 browser.form(:id, signin).button(:value, Sign In).click

 Error:
 E:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
 `gem_original_require': no such file to load -- watir/loader (LoadError)
 from E:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
 `require'
 from E:/Ruby187/lib/ruby/gems/1.8/gems/commonwatir-4.0.0/lib/Watir.rb:1
 from E:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:60:in
 `gem_original_require'
 from E:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:60:in
 `require'
 from hello.rb:2

 --
 Thanks and Regards,
 Amit

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] I am beginner, getting error please help !

2013-02-01 Thread Joe Fleck
I would change 'default' to 'new'.

browser = Watir::Browser.new :ff

The above should do it.

Joe

On Fri, Feb 1, 2013 at 9:18 AM, Amit Kumar amit.sr...@gmail.com wrote:
 Hi Joe:

 Thanks for your reply.

 I installed watir-webdriver-0.6.2. Now I am getting different error:

 hello.rb:3: undefined method `default=' for Watir::Browser:Class
 (NoMethodError)

 And my code looks like:

 require 'rubygems'

 require 'watir-webdriver'
 browser = Watir::Browser.default = firefox
 browser = Watir::Browser.start URL

 browser.form(:id, signin).text_field(:id, username).set(username)
 browser.form(:id, signin).text_field(:id, password).set(Password)
 browser.form(:id, signin).button(:value, Sign In).click




 On Fri, Feb 1, 2013 at 7:35 PM, Joe Fleck joeflec...@gmail.com wrote:

 Hi Amit,

 When driving Firefox you need to use watir-webdriver not watir.

 These are the two line I changed.
 require 'watir-webdriver'
 browser = Watir::Browser.default = firefox



 On Fri, Feb 1, 2013 at 8:52 AM, Amit Kumar amit.sr...@gmail.com wrote:
  Dear All:
 
  Hope you all are doing great. Please help on following error.
 
  I am getting error while executing script. I am using Windows 8 and
  Ruby187.
 
  Code:
  require 'rubygems'
  require 'Watir'
  Watir::Browser.default = firefox
  browser = Watir::Browser.start website url
  browser.form(:id, signin).text_field(:id, username).set(username)
  browser.form(:id, signin).text_field(:id, password).set(password)
  browser.form(:id, signin).button(:value, Sign In).click
 
  Error:
  E:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
  `gem_original_require': no such file to load -- watir/loader (LoadError)
  from
  E:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
  `require'
  from
  E:/Ruby187/lib/ruby/gems/1.8/gems/commonwatir-4.0.0/lib/Watir.rb:1
  from
  E:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:60:in
  `gem_original_require'
  from
  E:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:60:in
  `require'
  from hello.rb:2
 
  --
  Thanks and Regards,
  Amit
 
  --
  --
  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
 
  ---
  You received this message because you are subscribed to the Google
  Groups
  Watir General group.
  To unsubscribe from this group and stop receiving emails from it, send
  an
  email to watir-general+unsubscr...@googlegroups.com.
  For more options, visit https://groups.google.com/groups/opt_out.
 
 

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.





 --
 Thanks and Regards,
 Amit

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] I am beginner, getting error please help !

2013-02-01 Thread Joe Fleck
Hi Amit,

Here is my gem list for a Windows8 VM.

C:\gem list

*** LOCAL GEMS ***

bigdecimal (1.1.0)
builder (3.1.4)
childprocess (0.3.7)
commonwatir (4.0.0)
ffi (1.3.1 x86-mingw32)
hoe (3.5.0)
io-console (0.3)
json (1.5.4)
mini_magick (3.2.1)
minitest (2.5.1)
multi_json (1.5.0)
mysql (2.9.0 x86-mingw32)
mysql2 (0.3.11 x86-mingw32)
nokogiri (1.5.6 x86-mingw32)
rake (0.9.2.2)
rautomation (0.7.3)
rdoc (3.9.4)
rubyzip (0.9.9)
s4t-utils (1.0.4)
selenium-webdriver (2.29.0)
subexec (0.0.4)
terminal-table (1.4.5)
user-choices (1.1.6.1)
watir (4.0.2 x86-mingw32)
watir-classic (3.4.0)
watir-webdriver (0.6.2)
websocket (1.0.6)
win32-api (1.4.8 x86-mingw32)
win32-process (0.7.1)
win32screenshot (1.0.7)
windows-api (0.4.2)
windows-pr (1.2.2)
xml-simple (1.1.2)

Joe

On Fri, Feb 1, 2013 at 9:30 AM, Amit Kumar amit.sr...@gmail.com wrote:
 Thanks a lot Joe. It worked.

 One quick question:
 I am using Windows 8 and Ruby 1.8.7
 Could you please suggest me which versions of the Ruby, Rubygems and Watir
 are best for Windows 8.
 I will really appreciate. if you provide me complete package for Watir on
 Windows 8.


 On Fri, Feb 1, 2013 at 7:49 PM, Joe Fleck joeflec...@gmail.com wrote:

 I would change 'default' to 'new'.

 browser = Watir::Browser.new :ff

 The above should do it.

 Joe

 On Fri, Feb 1, 2013 at 9:18 AM, Amit Kumar amit.sr...@gmail.com wrote:
  Hi Joe:
 
  Thanks for your reply.
 
  I installed watir-webdriver-0.6.2. Now I am getting different error:
 
  hello.rb:3: undefined method `default=' for Watir::Browser:Class
  (NoMethodError)
 
  And my code looks like:
 
  require 'rubygems'
 
  require 'watir-webdriver'
  browser = Watir::Browser.default = firefox
  browser = Watir::Browser.start URL
 
  browser.form(:id, signin).text_field(:id, username).set(username)
  browser.form(:id, signin).text_field(:id, password).set(Password)
  browser.form(:id, signin).button(:value, Sign In).click
 
 
 
 
  On Fri, Feb 1, 2013 at 7:35 PM, Joe Fleck joeflec...@gmail.com wrote:
 
  Hi Amit,
 
  When driving Firefox you need to use watir-webdriver not watir.
 
  These are the two line I changed.
  require 'watir-webdriver'
  browser = Watir::Browser.default = firefox
 
 
 
  On Fri, Feb 1, 2013 at 8:52 AM, Amit Kumar amit.sr...@gmail.com
  wrote:
   Dear All:
  
   Hope you all are doing great. Please help on following error.
  
   I am getting error while executing script. I am using Windows 8 and
   Ruby187.
  
   Code:
   require 'rubygems'
   require 'Watir'
   Watir::Browser.default = firefox
   browser = Watir::Browser.start website url
   browser.form(:id, signin).text_field(:id,
   username).set(username)
   browser.form(:id, signin).text_field(:id,
   password).set(password)
   browser.form(:id, signin).button(:value, Sign In).click
  
   Error:
   E:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
   `gem_original_require': no such file to load -- watir/loader
   (LoadError)
   from
   E:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
   `require'
   from
   E:/Ruby187/lib/ruby/gems/1.8/gems/commonwatir-4.0.0/lib/Watir.rb:1
   from
   E:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:60:in
   `gem_original_require'
   from
   E:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:60:in
   `require'
   from hello.rb:2
  
   --
   Thanks and Regards,
   Amit
  
   --
   --
   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
  
   ---
   You received this message because you are subscribed to the Google
   Groups
   Watir General group.
   To unsubscribe from this group and stop receiving emails from it,
   send
   an
   email to watir-general+unsubscr...@googlegroups.com.
   For more options, visit https://groups.google.com/groups/opt_out.
  
  
 
  --
  --
  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
 
  ---
  You received this message because you are subscribed to the Google
  Groups
  Watir General group.
  To unsubscribe from this group and stop receiving emails from it, send
  an
  email to watir-general+unsubscr...@googlegroups.com.
  For more options, visit https://groups.google.com/groups/opt_out.
 
 
 
 
 
  --
  Thanks and Regards,
  Amit
 
  --
  --
  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
 
  ---
  You received this message because you are subscribed to the Google
  Groups
  Watir General group.
  To unsubscribe from this group and stop receiving emails from it, send
  an
  email to watir

Re: [wtr-general] Chrome automation using watir

2013-02-01 Thread Joe Fleck
Hi Sohail,

You will use the watir-webdriver to automate Chrome, Firefox, IE
(versions), and Opera.  The code you have developed will work
on any of the those browsers.

* Line to indicate the browser to run against.
@browser = Watir::Browser.new :chrome

Joe

On Fri, Feb 1, 2013 at 11:10 AM, Sohail Mirza mrz...@gmail.com wrote:
 Hi,

 I wanted to know that is it possible to automate Chrome using watir? i did
 some google on using watir with chrome but could not find much.
 Where can i find some good information about the subject?



 Thanks,
 Sohail

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] query

2013-01-30 Thread Joe Fleck
Command line
Ruby - v
Or
Gem list

All lower case
On Jan 30, 2013 12:56 PM, Sohail Mirza mrz...@gmail.com wrote:

 How do i check version of my installed watir?



 Thanks

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] How to automate Sub Menu using Wtir?

2013-01-30 Thread Joe Fleck
Hi,

First thing.. make sure you use firebug or developer tool to get the html.
Don't use view source.

You will need to first expose the submenu and then select the submenu item
you want.

Repost the html code here and we will be better able to help you.

Joe
On Jan 30, 2013 1:55 PM, Sohail Mirza mrz...@gmail.com wrote:

 Hi folks,

 I need to select sub menu item. How can i automate this? I am using
 Watir-Classic gem.

 The view source shows following

 li
 a href=/MyDemoTest/Menu/LoadView?*menuItemKey=1*
 onclick=ShowLoadingIndicator();Test Management/a
 /li


 Thanks,

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] How to automate Sub Menu using Wtir?

2013-01-30 Thread Joe Fleck
Hi Sohail,

Yes.

@browser.li(:class=potato-menu-item potato-menu-has-vertical).click
@browser.a(:text='Sub Menu 1').click


Sometimes it is difficult to run these steps in irb.  I would suggest
creating a method then calling it in irb.

do first

def click_sub_menu()
@browser.li(:class=potato-menu-item potato-menu-has-vertical).click
@browser.a(:text='Sub Menu 1').click
end

then call it
click_sub_menu


Hope this helps.

Joe


On Wed, Jan 30, 2013 at 2:35 PM, Sohail Mirza mrz...@gmail.com wrote:
 Joe,

 Are you asking for this?
 i used Chrome Develope Tool and found the following.


 li class=potato-menu-item potato-menu-has-vertical
 Main1
 ul class=subMenu potato-menu-group potato-menu-vertical
 style=left: 0px; display: none;

 li class=potato-menu-item

 a href=/MyDemoTest/Menu/LoadView?menuItemKey=1
 onclick=ShowLoadingIndicator();Sub Menu 1/a

 /li
 li class=potato-menu-item

 a href=/MyDemoTest/Menu/LoadView?menuItemKey=6
 onclick=ShowLoadingIndicator();Sub Menu 2/a

 /li
 li class=potato-menu-item

 a href=/MyDemoTest/Menu/LoadView?menuItemKey=7
 onclick=ShowLoadingIndicator();Sub Menu 3/a

 /li

 /ul

 /li




 On Wed, Jan 30, 2013 at 10:58 PM, Joe Fleck joeflec...@gmail.com wrote:

 Hi,

 First thing.. make sure you use firebug or developer tool to get the html.
 Don't use view source.

 You will need to first expose the submenu and then select the submenu item
 you want.

 Repost the html code here and we will be better able to help you.

 Joe

 On Jan 30, 2013 1:55 PM, Sohail Mirza mrz...@gmail.com wrote:

 Hi folks,

 I need to select sub menu item. How can i automate this? I am using
 Watir-Classic gem.

 The view source shows following

 li
 a href=/MyDemoTest/Menu/LoadView?menuItemKey=1
 onclick=ShowLoadingIndicator();Test Management/a
 /li


 Thanks,

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



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

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] How to automate Sub Menu using Wtir?

2013-01-30 Thread Joe Fleck
Okay.

you need to change my @browser to what you initialized your browser as.

Joe

# if you have to sign in do that


On Wed, Jan 30, 2013 at 2:48 PM, Sohail Mirza mrz...@gmail.com wrote:
 Joe,

 i tried following

 @browser.li(:class=potato-menu-item potato-menu-has-vertical).click
 @browser.a(:text='Sub Menu 1').click

 D:/Watir/Examples/Test1.rb:4:in `main': undefined method `li' for
 nil:NilClass
  (NoMethodError)



 On Wed, Jan 30, 2013 at 11:43 PM, Joe Fleck joeflec...@gmail.com wrote:

 Hi Sohail,

 Yes.

 @browser.li(:class=potato-menu-item potato-menu-has-vertical).click
 @browser.a(:text='Sub Menu 1').click


 Sometimes it is difficult to run these steps in irb.  I would suggest
 creating a method then calling it in irb.

 do first

 def click_sub_menu()
 @browser.li(:class=potato-menu-item potato-menu-has-vertical).click
 @browser.a(:text='Sub Menu 1').click
 end

 then call it
 click_sub_menu


 Hope this helps.

 Joe


 On Wed, Jan 30, 2013 at 2:35 PM, Sohail Mirza mrz...@gmail.com wrote:
  Joe,
 
  Are you asking for this?
  i used Chrome Develope Tool and found the following.
 
 
  li class=potato-menu-item potato-menu-has-vertical
  Main1
  ul class=subMenu potato-menu-group potato-menu-vertical
  style=left: 0px; display: none;
 
  li class=potato-menu-item
 
  a href=/MyDemoTest/Menu/LoadView?menuItemKey=1
  onclick=ShowLoadingIndicator();Sub Menu 1/a
 
  /li
  li class=potato-menu-item
 
  a href=/MyDemoTest/Menu/LoadView?menuItemKey=6
  onclick=ShowLoadingIndicator();Sub Menu 2/a
 
  /li
  li class=potato-menu-item
 
  a href=/MyDemoTest/Menu/LoadView?menuItemKey=7
  onclick=ShowLoadingIndicator();Sub Menu 3/a
 
  /li
 
  /ul
 
  /li
 
 
 
 
  On Wed, Jan 30, 2013 at 10:58 PM, Joe Fleck joeflec...@gmail.com
  wrote:
 
  Hi,
 
  First thing.. make sure you use firebug or developer tool to get the
  html.
  Don't use view source.
 
  You will need to first expose the submenu and then select the submenu
  item
  you want.
 
  Repost the html code here and we will be better able to help you.
 
  Joe
 
  On Jan 30, 2013 1:55 PM, Sohail Mirza mrz...@gmail.com wrote:
 
  Hi folks,
 
  I need to select sub menu item. How can i automate this? I am using
  Watir-Classic gem.
 
  The view source shows following
 
  li
  a href=/MyDemoTest/Menu/LoadView?menuItemKey=1
  onclick=ShowLoadingIndicator();Test Management/a
  /li
 
 
  Thanks,
 
  --
  --
  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
 
  ---
  You received this message because you are subscribed to the Google
  Groups
  Watir General group.
  To unsubscribe from this group and stop receiving emails from it, send
  an
  email to watir-general+unsubscr...@googlegroups.com.
  For more options, visit https://groups.google.com/groups/opt_out.
 
 
 
  --
  --
  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
 
  ---
  You received this message because you are subscribed to the Google
  Groups
  Watir General group.
  To unsubscribe from this group and stop receiving emails from it, send
  an
  email to watir-general+unsubscr...@googlegroups.com.
  For more options, visit https://groups.google.com/groups/opt_out.
 
 
 
 
  --
  --
  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
 
  ---
  You received this message because you are subscribed to the Google
  Groups
  Watir General group.
  To unsubscribe from this group and stop receiving emails from it, send
  an
  email to watir-general+unsubscr...@googlegroups.com.
  For more options, visit https://groups.google.com/groups/opt_out.
 
 

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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



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

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from

Re: [wtr-general] How to automate Sub Menu using Wtir?

2013-01-30 Thread Joe Fleck
No problem.

On Wed, Jan 30, 2013 at 3:04 PM, Sohail Mirza mrz...@gmail.com wrote:
 Sorry my mistake here.

 Sub Menu 1 was a dummy name. i replaced it with real name and now it is
 working fine. Great
 Thanks a lot Joe for your kind help. Much appreciated.




 On Wed, Jan 30, 2013 at 11:51 PM, Joe Fleck joeflec...@gmail.com wrote:

 Okay.

 you need to change my @browser to what you initialized your browser as.

 Joe

 # if you have to sign in do that


 On Wed, Jan 30, 2013 at 2:48 PM, Sohail Mirza mrz...@gmail.com wrote:
  Joe,
 
  i tried following
 
  @browser.li(:class=potato-menu-item potato-menu-has-vertical).click
  @browser.a(:text='Sub Menu 1').click
 
  D:/Watir/Examples/Test1.rb:4:in `main': undefined method `li' for
  nil:NilClass
   (NoMethodError)
 
 
 
  On Wed, Jan 30, 2013 at 11:43 PM, Joe Fleck joeflec...@gmail.com
  wrote:
 
  Hi Sohail,
 
  Yes.
 
  @browser.li(:class=potato-menu-item potato-menu-has-vertical).click
  @browser.a(:text='Sub Menu 1').click
 
 
  Sometimes it is difficult to run these steps in irb.  I would suggest
  creating a method then calling it in irb.
 
  do first
 
  def click_sub_menu()
  @browser.li(:class=potato-menu-item
  potato-menu-has-vertical).click
  @browser.a(:text='Sub Menu 1').click
  end
 
  then call it
  click_sub_menu
 
 
  Hope this helps.
 
  Joe
 
 
  On Wed, Jan 30, 2013 at 2:35 PM, Sohail Mirza mrz...@gmail.com wrote:
   Joe,
  
   Are you asking for this?
   i used Chrome Develope Tool and found the following.
  
  
   li class=potato-menu-item potato-menu-has-vertical
   Main1
   ul class=subMenu potato-menu-group
   potato-menu-vertical
   style=left: 0px; display: none;
  
   li class=potato-menu-item
  
   a href=/MyDemoTest/Menu/LoadView?menuItemKey=1
   onclick=ShowLoadingIndicator();Sub Menu 1/a
  
   /li
   li class=potato-menu-item
  
   a href=/MyDemoTest/Menu/LoadView?menuItemKey=6
   onclick=ShowLoadingIndicator();Sub Menu 2/a
  
   /li
   li class=potato-menu-item
  
   a href=/MyDemoTest/Menu/LoadView?menuItemKey=7
   onclick=ShowLoadingIndicator();Sub Menu 3/a
  
   /li
  
   /ul
  
   /li
  
  
  
  
   On Wed, Jan 30, 2013 at 10:58 PM, Joe Fleck joeflec...@gmail.com
   wrote:
  
   Hi,
  
   First thing.. make sure you use firebug or developer tool to get the
   html.
   Don't use view source.
  
   You will need to first expose the submenu and then select the
   submenu
   item
   you want.
  
   Repost the html code here and we will be better able to help you.
  
   Joe
  
   On Jan 30, 2013 1:55 PM, Sohail Mirza mrz...@gmail.com wrote:
  
   Hi folks,
  
   I need to select sub menu item. How can i automate this? I am using
   Watir-Classic gem.
  
   The view source shows following
  
   li
   a href=/MyDemoTest/Menu/LoadView?menuItemKey=1
   onclick=ShowLoadingIndicator();Test Management/a
   /li
  
  
   Thanks,
  
   --
   --
   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
  
   ---
   You received this message because you are subscribed to the Google
   Groups
   Watir General group.
   To unsubscribe from this group and stop receiving emails from it,
   send
   an
   email to watir-general+unsubscr...@googlegroups.com.
   For more options, visit https://groups.google.com/groups/opt_out.
  
  
  
   --
   --
   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
  
   ---
   You received this message because you are subscribed to the Google
   Groups
   Watir General group.
   To unsubscribe from this group and stop receiving emails from it,
   send
   an
   email to watir-general+unsubscr...@googlegroups.com.
   For more options, visit https://groups.google.com/groups/opt_out.
  
  
  
  
   --
   --
   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
  
   ---
   You received this message because you are subscribed to the Google
   Groups
   Watir General group.
   To unsubscribe from this group and stop receiving emails from it,
   send
   an
   email to watir-general+unsubscr...@googlegroups.com.
   For more options, visit https://groups.google.com/groups/opt_out.
  
  
 
  --
  --
  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
 
  ---
  You received this message because you are subscribed to the Google
  Groups
  Watir General

Re: [wtr-general] How to automate Sub Menu using Wtir?

2013-01-30 Thread Joe Fleck
Yes you will need to install the chromeDriver.  If you download this book:
Homebrewer's Guide to Watir
it will walk through all the necessary steps.  You can find it here 
https://leanpub.com/watirbook 

joe

On Wed, Jan 30, 2013 at 3:17 PM, Sohail Mirza mrz...@gmail.com wrote:
 Joe,

 Currently my script is working with FireFox as i am using watir-webdriver.

 Lets say if i want to make the same script compatible with Google Chrome
 what pre-requisists i should i follow?
 Do i need to install ChromDriver? if yes how to download and configure it?
 what should i put in require  in my script?

 Do you have simple example for developing script for chrome??
 Thanks


 On Thu, Jan 31, 2013 at 12:05 AM, Joe Fleck joeflec...@gmail.com wrote:

 No problem.

 On Wed, Jan 30, 2013 at 3:04 PM, Sohail Mirza mrz...@gmail.com wrote:
  Sorry my mistake here.
 
  Sub Menu 1 was a dummy name. i replaced it with real name and now it is
  working fine. Great
  Thanks a lot Joe for your kind help. Much appreciated.
 
 
 
 
  On Wed, Jan 30, 2013 at 11:51 PM, Joe Fleck joeflec...@gmail.com
  wrote:
 
  Okay.
 
  you need to change my @browser to what you initialized your browser as.
 
  Joe
 
  # if you have to sign in do that
 
 
  On Wed, Jan 30, 2013 at 2:48 PM, Sohail Mirza mrz...@gmail.com wrote:
   Joe,
  
   i tried following
  
   @browser.li(:class=potato-menu-item
   potato-menu-has-vertical).click
   @browser.a(:text='Sub Menu 1').click
  
   D:/Watir/Examples/Test1.rb:4:in `main': undefined method `li' for
   nil:NilClass
(NoMethodError)
  
  
  
   On Wed, Jan 30, 2013 at 11:43 PM, Joe Fleck joeflec...@gmail.com
   wrote:
  
   Hi Sohail,
  
   Yes.
  
   @browser.li(:class=potato-menu-item
   potato-menu-has-vertical).click
   @browser.a(:text='Sub Menu 1').click
  
  
   Sometimes it is difficult to run these steps in irb.  I would
   suggest
   creating a method then calling it in irb.
  
   do first
  
   def click_sub_menu()
   @browser.li(:class=potato-menu-item
   potato-menu-has-vertical).click
   @browser.a(:text='Sub Menu 1').click
   end
  
   then call it
   click_sub_menu
  
  
   Hope this helps.
  
   Joe
  
  
   On Wed, Jan 30, 2013 at 2:35 PM, Sohail Mirza mrz...@gmail.com
   wrote:
Joe,
   
Are you asking for this?
i used Chrome Develope Tool and found the following.
   
   
li class=potato-menu-item potato-menu-has-vertical
Main1
ul class=subMenu potato-menu-group
potato-menu-vertical
style=left: 0px; display: none;
   
li class=potato-menu-item
   
a href=/MyDemoTest/Menu/LoadView?menuItemKey=1
onclick=ShowLoadingIndicator();Sub Menu 1/a
   
/li
li class=potato-menu-item
   
a href=/MyDemoTest/Menu/LoadView?menuItemKey=6
onclick=ShowLoadingIndicator();Sub Menu 2/a
   
/li
li class=potato-menu-item
   
a href=/MyDemoTest/Menu/LoadView?menuItemKey=7
onclick=ShowLoadingIndicator();Sub Menu 3/a
   
/li
   
/ul
   
/li
   
   
   
   
On Wed, Jan 30, 2013 at 10:58 PM, Joe Fleck joeflec...@gmail.com
wrote:
   
Hi,
   
First thing.. make sure you use firebug or developer tool to get
the
html.
Don't use view source.
   
You will need to first expose the submenu and then select the
submenu
item
you want.
   
Repost the html code here and we will be better able to help you.
   
Joe
   
On Jan 30, 2013 1:55 PM, Sohail Mirza mrz...@gmail.com wrote:
   
Hi folks,
   
I need to select sub menu item. How can i automate this? I am
using
Watir-Classic gem.
   
The view source shows following
   
li
a href=/MyDemoTest/Menu/LoadView?menuItemKey=1
onclick=ShowLoadingIndicator();Test Management/a
/li
   
   
Thanks,
   
--
--
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
   
---
You received this message because you are subscribed to the
Google
Groups
Watir General group.
To unsubscribe from this group and stop receiving emails from
it,
send
an
email to watir-general+unsubscr...@googlegroups.com.
For more options, visit
https://groups.google.com/groups/opt_out.
   
   
   
--
--
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
   
---
You received this message because you are subscribed to the
Google
Groups
Watir General group.
To unsubscribe from this group and stop receiving emails from it,
send
an
email to watir-general+unsubscr...@googlegroups.com.
For more options, visit https

Re: [wtr-general] How to automate Sub Menu using Wtir?

2013-01-30 Thread Joe Fleck
You need to go here
http://code.google.com/p/chromedriver/downloads/list

download the driver and place it in your ruby/bin folder.

Joe

On Wed, Jan 30, 2013 at 3:42 PM, Sohail Mirza mrz...@gmail.com wrote:
 Joe,
 i downloaded chromedriver file and extracted it.

 When i run my script, i am getting following issue :( Do you have an idea
 where i should exactly place the chromedriver binary file?


 D:\Watir\ExamplesTest1.rb
 C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.27.2/lib/selenium/webdr
 iver/chrome/service.rb:20:in `executable_path': Unable to find the
 chromedriver
 executable. Please download the server from
 http://code.google.com/p/chromedrive
 r/downloads/list and place it somewhere on your PATH. More info at
 http://code.g
 oogle.com/p/selenium/wiki/ChromeDriver.
 (Selenium::WebDriver::Error::WebDriverEr
 ror)


 On Thu, Jan 31, 2013 at 12:23 AM, Joe Fleck joeflec...@gmail.com wrote:

 Yes you will need to install the chromeDriver.  If you download this book:
 Homebrewer's Guide to Watir
 it will walk through all the necessary steps.  You can find it here 
 https://leanpub.com/watirbook 

 joe

 On Wed, Jan 30, 2013 at 3:17 PM, Sohail Mirza mrz...@gmail.com wrote:
  Joe,
 
  Currently my script is working with FireFox as i am using
  watir-webdriver.
 
  Lets say if i want to make the same script compatible with Google Chrome
  what pre-requisists i should i follow?
  Do i need to install ChromDriver? if yes how to download and configure
  it?
  what should i put in require  in my script?
 
  Do you have simple example for developing script for chrome??
  Thanks
 
 
  On Thu, Jan 31, 2013 at 12:05 AM, Joe Fleck joeflec...@gmail.com
  wrote:
 
  No problem.
 
  On Wed, Jan 30, 2013 at 3:04 PM, Sohail Mirza mrz...@gmail.com wrote:
   Sorry my mistake here.
  
   Sub Menu 1 was a dummy name. i replaced it with real name and now it
   is
   working fine. Great
   Thanks a lot Joe for your kind help. Much appreciated.
  
  
  
  
   On Wed, Jan 30, 2013 at 11:51 PM, Joe Fleck joeflec...@gmail.com
   wrote:
  
   Okay.
  
   you need to change my @browser to what you initialized your browser
   as.
  
   Joe
  
   # if you have to sign in do that
  
  
   On Wed, Jan 30, 2013 at 2:48 PM, Sohail Mirza mrz...@gmail.com
   wrote:
Joe,
   
i tried following
   
@browser.li(:class=potato-menu-item
potato-menu-has-vertical).click
@browser.a(:text='Sub Menu 1').click
   
D:/Watir/Examples/Test1.rb:4:in `main': undefined method `li'
for
nil:NilClass
 (NoMethodError)
   
   
   
On Wed, Jan 30, 2013 at 11:43 PM, Joe Fleck joeflec...@gmail.com
wrote:
   
Hi Sohail,
   
Yes.
   
@browser.li(:class=potato-menu-item
potato-menu-has-vertical).click
@browser.a(:text='Sub Menu 1').click
   
   
Sometimes it is difficult to run these steps in irb.  I would
suggest
creating a method then calling it in irb.
   
do first
   
def click_sub_menu()
@browser.li(:class=potato-menu-item
potato-menu-has-vertical).click
@browser.a(:text='Sub Menu 1').click
end
   
then call it
click_sub_menu
   
   
Hope this helps.
   
Joe
   
   
On Wed, Jan 30, 2013 at 2:35 PM, Sohail Mirza mrz...@gmail.com
wrote:
 Joe,

 Are you asking for this?
 i used Chrome Develope Tool and found the following.


 li class=potato-menu-item potato-menu-has-vertical
 Main1
 ul class=subMenu potato-menu-group
 potato-menu-vertical
 style=left: 0px; display: none;

 li class=potato-menu-item

 a href=/MyDemoTest/Menu/LoadView?menuItemKey=1
 onclick=ShowLoadingIndicator();Sub Menu 1/a

 /li
 li class=potato-menu-item

 a href=/MyDemoTest/Menu/LoadView?menuItemKey=6
 onclick=ShowLoadingIndicator();Sub Menu 2/a

 /li
 li class=potato-menu-item

 a href=/MyDemoTest/Menu/LoadView?menuItemKey=7
 onclick=ShowLoadingIndicator();Sub Menu 3/a

 /li

 /ul

 /li




 On Wed, Jan 30, 2013 at 10:58 PM, Joe Fleck
 joeflec...@gmail.com
 wrote:

 Hi,

 First thing.. make sure you use firebug or developer tool to
 get
 the
 html.
 Don't use view source.

 You will need to first expose the submenu and then select the
 submenu
 item
 you want.

 Repost the html code here and we will be better able to help
 you.

 Joe

 On Jan 30, 2013 1:55 PM, Sohail Mirza mrz...@gmail.com
 wrote:

 Hi folks,

 I need to select sub menu item. How can i automate this? I am
 using
 Watir-Classic gem.

 The view source shows following

 li
 a href=/MyDemoTest/Menu/LoadView?menuItemKey=1
 onclick=ShowLoadingIndicator();Test Management/a
 /li


 Thanks,

 --
 --
 Before posting

Re: [wtr-general] Re: Unable to acces text_field inside a frame coz of some #document tag in the HTML.

2013-01-24 Thread Joe Fleck
hi,

did you try


$ie.frame(:name,centent).text_field(:name,dealerCode).present?

I would even try this too:
$ie.frame(:name,centent).form(:name,validateDealer).present?
and
$ie.frame(:name,centent).form(:name,validateDealer).text_field(:name,dealerCode).present?

What is '#document'?  Is text?

Joe

On Thu, Jan 24, 2013 at 10:18 AM, Deepak Kumar
deepak.maveric...@gmail.com wrote:
 Hi all,

 $ie.frame(:name,centent).exists?  is returning true for me. Is there any
 way to check the existence of # document  html tags so that i can create a
 linked query including every tag till the text box.

 i tried $ie.show_frames but it returns unidentified method

 On Wednesday, January 23, 2013 8:08:33 PM UTC+5:30, Deepak Kumar wrote:

 Hi everyone,
 I am trying to access a text_field of page.HTML format is as follows

 html
   head-/head
 body
 iframe name=centent src=homepage.jsp
  #document
   html slick-uniqueid = 1
 head-head
 body
 script --/script
div id = headerHome
  div class=utilityNavHome id=utilityNavHome
form name = 'validateDealer'

 i tried through IRB and tried to us flash() function but can only use the
 function on Iframe tag after that i am not able to acess any element.
 Is #document creating a problem.

 Thanks  regards
 Deepak Kumar


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

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




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

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





Re: [wtr-general] Unable to acces text_field inside a frame coz of some #document tag in the HTML.

2013-01-23 Thread Joe Fleck
Hi, can you provide us with your code?

Thank you,
Joe
On Jan 23, 2013 9:38 AM, Deepak Kumar deepak.maveric...@gmail.com wrote:

 Hi everyone,
 I am trying to access a text_field of page.HTML format is as follows

 html
   head-/head
 body
  iframe name=centent src=homepage.jsp
*  #document*
   html slick-uniqueid = 1
 head-head
 body
 script --/script
 div id = headerHome
  div class=utilityNavHome id=utilityNavHome
 form name = 'validateDealer'

 i tried through IRB and tried to us flash() function but can only use the
 function on Iframe tag after that i am not able to acess any element.
 Is #document creating a problem.

 Thanks  regards
 Deepak Kumar


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

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


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

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


Re: [wtr-general] Re: Unable to acces text_field inside a frame coz of some #document tag in the HTML.

2013-01-23 Thread Joe Fleck
Deepak,

I don't see the text_field is your html.  Can you give us all of the html?

Thanks,
Joe

Just something I found.  May not pertain to your issue.
Watir has a method that shows all frames on a page:
$ie.show_frames
result:
there are 2 frames
frame  index: 1 name: menu
frame  index: 2 name: main

run that in your irb and if its see the frame you might want to use
its index value instead of name.'


On Wed, Jan 23, 2013 at 10:33 AM, Deepak Kumar
deepak.maveric...@gmail.com wrote:
 require 'watir'
 include Watir
 Watir::Browser.default = 'ie'
 $ie = Browser.new
 $ie.goto(https://q2pdc2w4.edc.cingular.net:9300/v2/Login.html;)
 $ie.text_field(:id,Userid).set(Pos3nbi)
 $ie.text_field(:id,Password).set(unix11a)
 $ie.select_list(:id,market).select(Dallas)
 $ie.image(:id,Submit).click
 $ie.frame(:name,centent).flash
 $ie.frame(:name,centent).text_field(:name,dealerCode).set(22r25)


 i used the following code and getting the following error
 irb(main):015:0
 $ie.frame(:name,centent).text_field(:name,dealerCode).set(22r25)
 NoMethodError: unknown property or method: `body'
 HRESULT error code:0x80020006
   Unknown name.
 from
 c:/rubyshell/ruby/lib/ruby/gems/1.9.1/gems/watir-classic-3.3.0/lib/watir-classic/frame.rb:30:in
 `method_missing'
 from
 c:/rubyshell/ruby/lib/ruby/gems/1.9.1/gems/watir-classic-3.3.0/lib/watir-classic/frame.rb:30:in
 `__ole_inner_elements'
 from
 c:/rubyshell/ruby/lib/ruby/gems/1.9.1/gems/watir-classic-3.3.0/lib/watir-classic/locator.rb:199:in
 `each_element'
 from
 c:/rubyshell/ruby/lib/ruby/gems/1.9.1/gems/watir-classic-3.3.0/lib/watir-classic/locator.rb:224:in
 `each'
 from
 c:/rubyshell/ruby/lib/ruby/gems/1.9.1/gems/watir-classic-3.3.0/lib/watir-classic/locator.rb:212:in
 `locate'
 from
 c:/rubyshell/ruby/lib/ruby/gems/1.9.1/gems/watir-classic-3.3.0/lib/watir-classic/input_elements.rb:5:in
 `locate'
 from
 c:/rubyshell/ruby/lib/ruby/gems/1.9.1/gems/watir-classic-3.3.0/lib/watir-classic/element.rb:63:in
 `assert_exists'
 from
 c:/rubyshell/ruby/lib/ruby/gems/1.9.1/gems/watir-classic-3.3.0/lib/watir-classic/input_elements.rb:287:in
 `set'
 from (irb):15
 from c:/rubyshell/ruby/bin/irb:12:in `main'






 On Wednesday, January 23, 2013 8:08:33 PM UTC+5:30, Deepak Kumar wrote:

 Hi everyone,
 I am trying to access a text_field of page.HTML format is as follows

 html
   head-/head
 body
 iframe name=centent src=homepage.jsp
  #document
   html slick-uniqueid = 1
 head-head
 body
 script --/script
div id = headerHome
  div class=utilityNavHome id=utilityNavHome
form name = 'validateDealer'

 i tried through IRB and tried to us flash() function but can only use the
 function on Iframe tag after that i am not able to acess any element.
 Is #document creating a problem.

 Thanks  regards
 Deepak Kumar


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

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

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

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


Re: [wtr-general] Watir cant open IE Window

2013-01-02 Thread Joe Fleck
Hi,
Can you post your code?

Joe
On Jan 2, 2013 6:24 AM, Sophia Sunitha sophia.joac...@gmail.com wrote:

 Hi all,
 I get the following error while trying to open a new IE Window.
 I am using Ruby1.8.7 and Watir

 irb(main):003:0 $ie = Watir::IE.new NameError: uninitialized constant
 Watir from (irb):3

 Regards,
 Sophia



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

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


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

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


Re: [wtr-general] Problems with Select Lists in my application

2012-12-21 Thread Joe Fleck
Have you tired just using sleep after you have selected the option
from the select list?
Ex.
@br.select_list(:index,2).select item
sleep 3

On Wed, Dec 19, 2012 at 2:48 PM, Marco Antonio Mamani Espinoza
natmik...@gmail.com wrote:
 I am doing some automation in my application, in one part there is a select
 list which fires an event on change, when I try to select an option there it
 is popup a window with a button in it (OK). The bad thing is that Watir
 keeps waiting something when I select an option. I need something like
 click_no_wait for select lists.

 Please help me with this issue, I tried some solutions in posted in the web.
 BTW, I am using ruby 1.8 with watir 1.9

 Regards,
 MArco

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

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

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

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


Re: [wtr-general] Chromedriver error when trying to run watir-webdriver

2012-11-26 Thread Joe Fleck
Hi,

I have not been able to resolve this issue.  Does anyone have any
suggestions on how to resolve this issue?

The VM is running Chrome version 23.0.1271.64 with the latest
web-driver and chrome driver.

Thank you,
Joe

On Tue, Nov 20, 2012 at 5:24 PM, Joe Fleck joeflec...@gmail.com wrote:
 Hi,

 I have the latest and now I get the following error message:

 Microsoft Windows [Version 6.1.7601]
 Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

 C:\Users\joe.fleckcd ..

 C:\Usersirb
 irb(main):001:0 require 'rubygems'
 = true
 irb(main):002:0 require 'watir-webdriver'
 = true
 irb(main):003:0 b = Watir::Browser.new :chrome
 Started ChromeDriver
 port=9515
 version=23.0.1240.0
 log=C:\Users\JOE~1.FLE\AppData\Local\Temp\chromedriver.log


 [2492:2604:1120/172221:ERROR:gpu_info_collector_win.cc(135)] Could not read 
 gami
 ng score from assessment results.
 = #Watir::Browser:0x4181b08 url=about:blank title=about:blank
 irb(main):004:0 [1120/17:ERROR:gl_surface_egl.cc(61)] eglInitialize 
 failed
 with error UNKNOWN
 [1120/17:ERROR:gl_surface_win.cc(54)] GLSurfaceEGL::InitializeOneOff 
 failed.

  After I close the chrome browser the following message then displays.

 [1120/172351:ERROR:ipc_sync_channel.cc(378)] Canceling pending sends
 [1120/172351:ERROR:automation_proxy.cc(319)] Channel error in AutomationProxy.
 [2492:2604:1120/172351:ERROR:window_impl.cc(55)] Failed to unregister class 
 Chro
 me_WidgetWin_0. Error = 1412





  ō஼뜀죨 Ä=а@






   ୃ䠀쯚 Ä=ʘ@


  ଉȀ쯚 Ä=ϸ@

૮쯚 Ä=֘@


 On Tue, Nov 20, 2012 at 2:57 PM, Željko Filipin
 zeljko.fili...@gmail.com wrote:
 On Tue, Nov 20, 2012 at 7:28 PM, Joe Fl joeflec...@gmail.com wrote:
 version=22.0.1203.0b

 Looks like you have old chromedriver. Get the new one here
 http://code.google.com/p/chromedriver/downloads/list

 Željko
 --
 filipin.eu

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

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

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

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


Re: [wtr-general] Set a text in div with js text field

2012-11-09 Thread Joe Fleck
Hi,

Are there more than one field like this on the page?

Joe

On Fri, Nov 9, 2012 at 4:20 AM, Nicolas nicolas.gar...@ebuzzing.com wrote:
 Hi, thanks for your answer,

 but unfortunately, it doesn't work.

 Le jeudi 8 novembre 2012 17:01:43 UTC+1, Željko Filipin a écrit :

 On Thu, Nov 8, 2012 at 4:44 PM, Nicolas nicolas...@ebuzzing.com wrote:
  As you can't see, the deeper div is a js text field with autocompletion
  etc
  But I don't manage to set anything in it with Watir.

 Well, you can not actually enter text into div, right?

 Try this:

 browser.div(:id = yui_3_3_0_1_1352386979117_185365).send_keys some
 text

 Željko
 --
 filipin.eu

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

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

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

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


Re: [wtr-general] Clicking links that use non-english characters

2012-11-09 Thread Joe Fleck
Hi Aidy,

Are there any other elements you can use for this link?

Have you tried this?
browser.link(:id,/Tovabb/).click

Regards,
Joe

On Fri, Nov 9, 2012 at 7:49 AM, Adrian Killens ack...@googlemail.com wrote:
 Hi There,
 Does anyone know how I can click things in non-english languages that have
 non-english characters identifying them?

 E.g.
 browser.link(:id, 'Tovább').click

 I get the following trying to click these links:

 invalid multibyte char (US-ASCII) (SyntaxError)
 invalid multibyte char (US-ASCII)

 Cheers
 Aidy

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

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

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

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


Re: [wtr-general] best practice- mysql and web applications

2012-11-09 Thread Joe Fleck
Hi,

I normally use the mysql gem and create a method that will do the
database connect and querying.

Joe

On Thu, Nov 8, 2012 at 1:37 AM, Aaron Schwartz
schwartz.aar...@gmail.com wrote:
 Hi all,

 I couldn't find anything on this group already posted so please direct me to
 any resources. I am relatively new to testing and sort of learning watir as
 I test a web application on the fly. One of current tests is to input some
 user data on a web form and then click a submit button. Watir-webdriver is
 performing nicely here. Then I want to test to ensure the data has been
 added to our mysql db. Is there a standard or best practice for doing this
 type of testing? Do you just write another ruby script that takes in the
 record, connects to the DB, and checks it has been added What tools do you
 use for incorporating mysql connections into ruby testing with
 watir-webdriver?

 Thanks in advance

 Aaron

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

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

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

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


Re: [wtr-general] Selection list options with leading white spaces not able to select.

2012-10-30 Thread Joe Fleck
Hi Željko,

I get the following:

 @browser.select_list(:index,1).options
= #Watir::OptionCollection:0x1018ffa00
@parent=#Watir::Select:0x154f950de located=true
selector={:tag_name=select, :index=1},
@selector={:tag_name=option}

and if I change it up a little:

 @browser.select_list(:index,1).options.each{|t| puts t.text}
Included Patients (5659)
   Adherent (5118)
   Non-Adherent (541)
Excluded Patients (48)



On Tue, Oct 30, 2012 at 12:19 PM, Željko Filipin
zeljko.fili...@gmail.com wrote:
 What do you get from this?

 p @browser.select_list(:index,1).options

 Željko
 --
 filipin.eu

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

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

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

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


Re: [wtr-general] IE within a windows application

2012-10-25 Thread Joe Fleck
Hi Paul,

You might try using AutoIT instead of Watir.  It don't think your
going to be able to use Watir with an embedded browser.

Regards,
Joe

On Thu, Oct 25, 2012 at 8:41 PM, Paul d...@paradise.net.nz wrote:
 Hi, I am testing an IE web application that gets served up from a windows
 app. I can't get a handle on IE as it is being run from withing the win app
 and therefore there is no IE process for watir to attach to.
 I have the URL of the IE window and can browse to it using watir with new IE
 instance but I don't get a lot of underlying data, etc that I need to test
 it. I can fake that stuff but before I go down that track I need to see if I
 can somehow get a handle on the IE in the win app.

 Anyone got any clever ideas?

  - thanks


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


  1   2   >