[wtr-general] "watir webdriver cannot select checkbox input element"

2016-08-09 Thread Literate Aspects
Please, any suggestions greatly appreciated.

Attempting to identify the element to be able to check the checkbox.

REF:  "watir webdriver cannot select checkbox input element"

SELECTOR: #sv
ELEMENT: 

Please, any suggestions greatly appreciated.  I have tried:

FROM:  b.span(:text, 'Svenska').click
IRB returns: Unable to locate element

FROM:  b.span(:text, 'sv').click
IRB returns:  Unable to locate element

FROM:  b.execute_script("$('input:checkbox[id=\"sv\"]').attr('checked', 
'checked');")
IRB returns: nil

FROM:  b.execute_script("document.getElementById('sv').click();")
IRB returns: nil

FROM:  b.checkbox(:id => 'sv').fire_event :onmousedown
IRB returns: false

FROM:  b.checkbox(:id => 'sv').fire_event :onclick
IRB returns: true

FROM:  b.checkbox(:id => 'sv').fire_event :click
IRB returns: true

FROM:  b.checkbox(:id => 'sv').when_present.set
IRB returns: time out (30 seconds)

FROM:  b.checkbox(:id => 'sv').fire_event :set
IRB returns: true

FROM:  b.checkbox(:id => 'sv').fire_event :hover
IRB returns: true

FROM:  b.input(:id, "sv").to_subtype.set
IRB returns:  Element is currently not visible

FROM:  b.select_list(:id => 'sv').option(:text => 'sv').select
IRB returns:  Unable to locate element

FROM:  b.input(:id, "sv").set
IRB returns:  located=false

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


[wtr-general] "watir webdriver cannot select checkbox input element"

2016-08-09 Thread Literate Aspects
Please, any suggestions greatly appreciated.

Attempting to identify the element to be able to check the checkbox.

REF:  "watir webdriver cannot select checkbox input element"

SELECTOR: #sv
ELEMENT: 

Please, any suggestions greatly appreciated.  I have tried:

FROM:  b.span(:text, 'Svenska').click
IRB returns: Unable to locate element

FROM:  b.span(:text, 'sv').click
IRB returns:  Unable to locate element

FROM:  b.execute_script("$('input:checkbox[id=\"sv\"]').attr('checked', 
'checked');")
IRB returns: nil

FROM:  b.execute_script("document.getElementById('sv').click();")
IRB returns: nil

FROM:  b.checkbox(:id => 'sv').fire_event :onmousedown
IRB returns: false

FROM:  b.checkbox(:id => 'sv').fire_event :onclick
IRB returns: true

FROM:  b.checkbox(:id => 'sv').fire_event :click
IRB returns: true

FROM:  b.checkbox(:id => 'sv').when_present.set
IRB returns: time out (30 seconds)

FROM:  b.checkbox(:id => 'sv').fire_event :set
IRB returns: true

FROM:  b.checkbox(:id => 'sv').fire_event :hover
IRB returns: true

FROM:  b.input(:id, "sv").to_subtype.set
IRB returns:  Element is currently not visible

FROM:  b.select_list(:id => 'sv').option(:text => 'sv').select
IRB returns:  Unable to locate element

FROM:  b.input(:id, "sv").set
IRB returns:  located=false

-- 
-- 
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-webdriver throws 'not clickable' error even when element is visible, present

2016-04-19 Thread 'John Fitisoff' via Watir General
Yeah, that's annoying. Think I filed a Webdriver bug a one point (I wasn't the 
only one) but not sure if they ever did anything with it. 

If you don't have to use Chrome, It might be worth trying Firefox. Driver 
install is not required for that and it's a little less fussy, although think I 
saw a similar scrolling problem with a recent version. 
You could also try send_keys to get the browser to scroll up or down 
conditionally, as needed (you may have to set the focus on a non-editable 
element before doing the send_keys so that they don't go to some element 
instead of the browser.) 
b.send_keys :space          # Down one frame.
b.send_keys :shift, :space # Up one frame.   From: Awesome Possum 

 To: Watir General  
 Sent: Monday, April 18, 2016 7:16 PM
 Subject: [wtr-general] Watir-webdriver throws 'not clickable' error even when 
element is visible, present 
   
I am trying to automate tests in Ruby using the latest Watir-Webdriver 0.9.1, 
Selenium-Webdriver 2.53.0 and Chrome extension 2.21. However the website that I 
am testing has static headers at the top or sometimes static footers at the 
bottom. Hence since Watir auto-scrolls an element into view before clicking, 
the elements get hidden under the static header or the static footer. I do not 
want to set desired_capabitlites (ElementScrollBehavior) to 1 or 0 as the 
websites I am testing can have both - static header or static footer or 
both.Hence the question are 1) Why does Watir throw an exception 'Element not 
clickable' even when the element is visible and present? See ruby code ( I have 
picked a random company website for an example) and the results below.2) How 
can I resolve this without resorting to ElementScrollBehaviour?
Ruby code:
require 'watir-webdriver'

browser = Watir::Browser.new :chrome

begin
  # Step 1
  browser.goto "shop.coles.com.au/online/mobile/national"

  # Step 2 - click on 'Full Website' link at the bottom
  link = browser.link(text: "Full website")

  #check if link exists, present and visible?
  puts link.exists?
  puts link.present?
  puts link.visible?

  #click on link
  link.click

rescue => e
  puts e.inspect
ensure
  sleep 5
end

puts browser.url
browser.close
Result:
$ ruby link_not_clickable.rbtrue true 
trueSelenium::WebDriver::Error::UnknownError: unknown error: Element is not 
clickable at point (460, 1295). Other element would receive the click: div 
class="shoppingFooter"...div(Session info: chrome=50.0.2661.75) (Driver info: 
chromedriver=2.21.371459 
(36d3d07f660ff2bc1bf28a75d1cdabed0983e7c4),platform=Mac OS X 10.10.5 
x86_64)>http://shop.coles.com.au/online/mobile/nationalthanks!
-- 
-- 
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.


[wtr-general] Watir-webdriver throws 'not clickable' error even when element is visible, present

2016-04-19 Thread Awesome Possum


I am trying to automate tests in Ruby using the latest Watir-Webdriver 
0.9.1, Selenium-Webdriver 2.53.0 and Chrome extension 2.21. However the 
website that I am testing has static headers at the top or sometimes static 
footers at the bottom. Hence since Watir auto-scrolls an element into view 
before clicking, the elements get hidden under the static header or the 
static footer. I do not want to set desired_capabitlites 
(ElementScrollBehavior) to 1 or 0 as the websites I am testing can have 
both - static header or static footer or both.

Hence the question are 1) Why does Watir throw an exception 'Element not 
clickable' even when the element is visible and present? See ruby code ( I 
have picked a random company website for an example) and the results below.

2) How can I resolve this without resorting to ElementScrollBehaviour?
Ruby code:

require 'watir-webdriver'

browser = Watir::Browser.new :chrome
begin
  # Step 1
  browser.goto "shop.coles.com.au/online/mobile/national"

  # Step 2 - click on 'Full Website' link at the bottom
  link = browser.link(text: "Full website")

  #check if link exists, present and visible?
  puts link.exists?
  puts link.present?
  puts link.visible?

  #click on link
  link.click
rescue => e
  puts e.inspectensure
  sleep 5end

puts browser.url
browser.close

Result:

$ ruby link_not_clickable.rb

true 

true 

true

Selenium::WebDriver::Error::UnknownError: unknown error: Element is not 
clickable at point (460, 1295). Other element would receive the click: div 
class="shoppingFooter"...div

(Session info: chrome=50.0.2661.75) (Driver info: chromedriver=2.21.371459 
(36d3d07f660ff2bc1bf28a75d1cdabed0983e7c4),platform=Mac OS X 10.10.5 
x86_64)>http://shop.coles.com.au/online/mobile/national

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.


[wtr-general] Watir-Webdriver and Docker

2016-01-29 Thread tkp
*Aim : *Dockerizing Watir-Webdriver tests

*Environment:*
 OS : Ubuntu 14.04
 Browser : FF 43
 Docker : v1.7.1

*Issue:*
Currently it is observed that opening a browser instance and navigating to 
a website is very slow
when triggered from within a Docker instance. I compared the times for 
loading heavy webpages
like yahoo.com from within Docker and from the host machine (ubuntu) but 
the performance is
pretty much the same. The difference in behavior is seen while using Watir 
to automate browser
actions.
Has anyone encountered anything similar?

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


[wtr-general] Watir+Webdriver/Cucumber + Appium on Sauce Labs

2015-09-28 Thread Farooq
Has anyone successfully gotten this config to 
work: Watir+Webdriver/Cucumber + Appium on Sauce Labs?

Haven't found much online...

-- 
-- 
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-Webdriver slow execution speed in FF 36

2015-03-10 Thread Titus Fortner
Yes, this is a known issue with Selenium 2.45 and Firefox 36.
The issue is being tracked here:
https://code.google.com/p/selenium/issues/detail?id=8551

You can set your version of Watir to watir-webdriver 0.6.11 and Selenium to
selenium-webdriver 2.44, but it might require downgrading to Firefox 33
(last officially supported version of selenium-webdriver 2.44).

Titus

On Wed, Mar 4, 2015 at 7:16 AM, Andrew Deschain  wrote:

> I recently updated the watir-webdriver gem and i was pretty surprised that
> the execution speed of my has significantly decreased.
> Does anyone else experiences this issue or/and know how to overcome this?
>
> Stack:
> Mac OS 10.9.5
> Ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-darwin13.0]
> watir-webdriver 0.7.0
> FF 36
>
> Help is very appreciated. 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.


[wtr-general] Watir-Webdriver slow execution speed in FF 36

2015-03-10 Thread Andrew Deschain
I recently updated the watir-webdriver gem and i was pretty surprised that 
the execution speed of my has significantly decreased.
Does anyone else experiences this issue or/and know how to overcome this?

Stack:
Mac OS 10.9.5
Ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-darwin13.0]
watir-webdriver 0.7.0
FF 36

Help is very appreciated. 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.


[wtr-general] watir-webdriver using ruby on skype...hope it will useful to everyone

2015-02-18 Thread rocky
Dear all,

Sharing knowledge on skype,who are all interest send your skype id so that 
we can solve  watir-webdriver issues instantly.

Hope it will useful to all .."*sharing your knowledge is key to success*
 "

Regards,
Sri.

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


[wtr-general] Watir Webdriver Safari : A modal dialog was opened. The SafariDriver does not support interacting with modal dialogs

2014-07-21 Thread Dimitri Reynaga


While using the watir safari webdriver, the webdriver terminates as soon as 
it encounters an alert pop-up. Are there any workarounds that will either 
allow Safari webdriver to function properly with alerts, or to prevent the 
alerts from appearing at all?

$driver.button(:xpath, "//button[@class='btn btn-success 
btn-success-red']").wait_until_present
$driver.button(:xpath, "//button[@class='btn btn-success 
btn-success-red']").click

$driver.alert.ok()
  $log.info("create organization successful")

error:

/Users/usr/.rvm/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/selenium-webdriver-2.42.0/lib/selenium/webdriver/safari/bridge.rb:73:in
 raw_execute': 
A modal dialog was opened. The SafariDriver does not support interacting 
with modal dialogs. To avoid hanging your test, the alert has been 
dismissed. For more information, see 
http://code.google.com/p/selenium/issues/detail?id=3862 
(Selenium::WebDriver::Error::UnhandledAlertError) from 
/Users/usr/.rvm/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/selenium-webdriver-2.42.0/lib/selenium/webdriver/remote/bridge.rb:612:in
 
execute' from 
/Users/usr/.rvm/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/selenium-webdriver-2.42.0/lib/selenium/webdriver/remote/bridge.rb:369:in
 clickElement' 
from 
/Users/usr/.rvm/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/selenium-webdriver-2.42.0/lib/selenium/webdriver/common/element.rb:54:in
 
click' from 
/Users/usr/.rvm/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/watir-webdriver-0.6.10/lib/watir-webdriver/elements/element.rb:132:in
 click' 
from /Users/usr/Documents/workspace/TTQA 
Safari/tttestlibrary.rb:47:increate_org' 
from /Users/usr/Documents/workspace/TTQA Safari/ttorgusercompare.rb:23:in 
org_user_compare' 
from /Users/usr/Documents/workspace/TTQA Safari/ttorgusercompare.rb:34:in'

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.


Re: [wtr-general] watir-webdriver timing out, ending run of Suite (Test::Unit) instead of simply causing test failure

2014-04-10 Thread Ravindra Kadam
Hi,
 
I occasionaly get "Timeout::Error: execution expired" issue while running a 
rake task which executes close to 500 test cases. I use JRuby 1.6.2, 
test-unti 2.4.0.
Couldn't find any documentation for 
NOT_PASS_THROUGH_EXCEPTIONS/PASS_THROUGH_EXCEPTIONS.  Any idea about their 
use?
 
Thanks,
Ravindra

On Tuesday, 27 September 2011 00:14:57 UTC+5:30, Rahul Sharma wrote:

> I posted about the same problem few days back. I still  keep getting these 
> ruff_fill errors occasionally however, it doesn't happen to kill my tests. 
> This error causes random failures in my test suite which we run every 
> night. I was advised to check and see if it was an environment problem. 
> Upon troubleshooting I found that there are a few tests that start up with 
> a browser but the page is loading terribly slow. To my surprise, after that 
> test throws a rbuff error, the next tests in the suite pass normally. So I 
> am kind of still confused as why only some of the tests occasionally fail… 
>
> Just to try and eliminate the problem of having environmental problems I 
> will soon be getting a new test environment set up for myself to observe 
> the results to see if I still get such errors!!
> On 26 Sep 2011, at 19:37, jw wrote: 
>
> > ruby 1.8.7 (352)
> > test-unit (2.3.0)
> > watir (2.0.1)
> > watir-webdriver (0.3.3)
> > IE9/probably others
> > 
> > I don't know if other people have seen this, but I'm occasionally
> > getting stacks that look like:
> > 
> > C:/Users/jw/.pik/rubies/Ruby-187-p352/lib/ruby/1.8/timeout.rb:64:in
> > `rbuf_fill': execution expired (Timeout::Error)
> >from C:/Users/jw/.pik/rubies/Ruby-187-p352/lib/ruby/1.8/net/
> > protocol.rb:134:in `rbuf_fill'
> >from C:/Users/jw/.pik/rubies/Ruby-187-p352/lib/ruby/1.8/net/
> > protocol.rb:116:in `readuntil'
> > ...
> >from C:/Users/jw/.pik/rubies/Ruby-187-p352/lib/ruby/gems/1.8/
> > gems/selenium-webdriver-2.6.0/lib/selenium/webdriver/common/element.rb:
> > 34:in `click'
> >from C:/Users/jw/.pik/rubies/Ruby-187-p352/lib/ruby/gems/1.8/
> > gems/watir-webdriver-0.3.3/lib/watir-webdriver/elements/element.rb:
> > 67:in `click'
> >from ./watirutilbuttonclicks.rb:120:in `click'
> > ...
> > 
> > while running my tests, and instead of just making the current test
> > fail, the whole test suite is stopping execution.  It seems
> > Timeout::Error is a SignalException and is a "pass-through" error that
> > Test::Unit will re-raise which will cause the whole test Suite to stop
> > execution.  I have added Timeout::Error to the pass-through list by
> > adding this line to my ClassExtensions.rb (required lastly in order to
> > add or override some Watir methods).
> > 
> > 
> Test::Unit::ErrorHandler::NOT_PASS_THROUGH_EXCEPTIONS.push(Timeout::Error)
> > 
> > This seems to have fixed my issue in the most elegant way possible
> > (test still fails, but suite continues execution) but I couldn't find
> > documentation on NOT_PASS_THROUGH_EXCEPTIONS anywhere, so if this
> > isn't a good idea, please let me know.
> > 
> > -- 
> > 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  
>
> Regards,
> Rahul Sharma 
>
> 

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


[wtr-general] watir-webdriver appium

2014-01-10 Thread Dan
Hey everyone.  Anyone know if there are plans to build in support for 
appium tests into watir-webdriver?  Alister has a great post on getting 
started with selenium-webdriver, but support in watir-webdriver is missing 
currently.

http://watirmelon.com/2013/11/05/using-appium-in-ruby-for-ios-automated-functional-testing/

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


[wtr-general] watir-webdriver exec_script failing with Firefox 24/25

2013-10-30 Thread seth f
Is watir-webdriver not compatible with Firefox 24/25?   I went back to 
firefox 21 and my exec_script calls started working again.  On FF 24/25 I 
couldn't even get simple exec_script('alert()') or document title changes 
to work.

The errors that show up in the browser console are:

Use of getUserData() or setUserData() is deprecated.  Use WeakMap or 
element.dataset instead. @ file:///var/folders/p3/v1cs8jlj3hz_
l5dddp5c96lmrgc5l5/T/webdriver-profile20131030-34909-1xral1k/extensions/
fxdri...@googlecode.com/components/driver_component.js:8351

TypeError: document.setUserData is not a function 

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


[wtr-general] [Watir-webdriver]:Difference between pause and wait in web site testing

2013-09-30 Thread watir webdriver
I want to know what is the difference between 'pause' and 'wait' in 
watir-webdriver.
Both wait for the page to load for the specified time interval?

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.


[wtr-general] [Watir webdriver] -Locating an element in "li"

2013-09-24 Thread watir webdriver
In my application,if I click on a text field it gives me a list of items 
among which I've to select one.Can anyone help me in sorting out the issue ?

HTML:


Basket1
BASKET2
BASKET3
BASKET4
BASKET5
BASKET6
BASKET7


*Step definition: *This clicks on the text_field 
 Then(/^I click on the "(.*?)" class on the page$/) do |strgselect|
@current_page.strg_select_element.click
end

Then(/^I select strgy as Basket4$/) do
  @current_page.list_elements(:class => visual-item BASKET4", :index => 
3).click
 end

 I've managed to click on the text field which shows a list of items but 
couldn't able to select one.I've tried many ways but no luck!

Any help is much more appreciated..

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

2013-09-15 Thread Oscar Rieken
Don't get me wrong, I totally agree!


On Sun, Sep 15, 2013 at 10:12 AM, Jarmo Pertman  wrote:

> Biggest difference is API. Check out following short articles:
> http://watirmelon.com/2010/04/10/watir-selenium-webdriver/
>
> http://watirmelon.com/2011/05/05/selenium-webdriver-vs-watir-webdriver-in-ruby/
>
> Saying that "the only difference" is misleading, because this is THE best
> difference :)
>
> Jarmo Pertman
> -
> IT does really matter - http://itreallymatters.net
>
>
> On Monday, September 9, 2013 11:13:44 PM UTC+3, Oscar.Rieken wrote:
>
>> the only difference is that watir has wrappers to help you locate
>> elements
>>
>>
>> On Sun, Sep 8, 2013 at 5:57 AM, Avihay Eyal  wrote:
>>
>>> Hi, I'm trying to evaluate the two frameworks, and I couldn't find a
>>> recent and comprehensive comparison of the two...
>>>
>>> So, is there any reason to choose one over the other?
>>>
>>>
>>> Thanks.
>>>
>>> --
>>> --
>>> 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
>>>
>>>
>>> ---
>>> 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_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] Watir WebDriver Vs Selenium

2013-09-15 Thread Jarmo Pertman
Biggest difference is API. Check out following short articles:
http://watirmelon.com/2010/04/10/watir-selenium-webdriver/
http://watirmelon.com/2011/05/05/selenium-webdriver-vs-watir-webdriver-in-ruby/

Saying that "the only difference" is misleading, because this is THE best 
difference :)

Jarmo Pertman
-
IT does really matter - http://itreallymatters.net


On Monday, September 9, 2013 11:13:44 PM UTC+3, Oscar.Rieken wrote:
>
> the only difference is that watir has wrappers to help you locate elements 
>
>
> On Sun, Sep 8, 2013 at 5:57 AM, Avihay Eyal 
> > wrote:
>
>> Hi, I'm trying to evaluate the two frameworks, and I couldn't find a 
>> recent and comprehensive comparison of the two...
>>
>> So, is there any reason to choose one over the other?
>>
>>
>> Thanks.
>>
>> -- 
>> -- 
>> 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 
>>  
>> --- 
>> 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_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.


[wtr-general] Watir WebDriver Vs Selenium

2013-09-09 Thread Avihay Eyal
Hi, I'm trying to evaluate the two frameworks, and I couldn't find a recent 
and comprehensive comparison of the two...

So, is there any reason to choose one over the other?


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.


Re: [wtr-general] Watir WebDriver Vs Selenium

2013-09-09 Thread Oscar Rieken
the only difference is that watir has wrappers to help you locate elements


On Sun, Sep 8, 2013 at 5:57 AM, Avihay Eyal  wrote:

> Hi, I'm trying to evaluate the two frameworks, and I couldn't find a
> recent and comprehensive comparison of the two...
>
> So, is there any reason to choose one over the other?
>
>
> 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] [Watir-webdriver] : How to compare to results

2013-08-15 Thread watir webdriver
Thanks Panato for ur quick reply...I'll give a try

On Thursday, August 15, 2013, Tadeu Panato wrote:

> you receive the values in one string?
>
> like a = ["TS377NWT", "KM077BLK"] or a = "TS377NWT,KM077BLK" ??
>
> in case is the first:
> a[0].eql?(a[1])
>
> if is the second case:
>
> a = a.split(",")
> then use the code above
>
> this is programming logic not watir-webdriver questions.
>
>
>
> Em quinta-feira, 15 de agosto de 2013 14h07min07s UTC-3, watir webdriver
> escreveu:
>>
>> Thanks for the reply...but here I've to verify first result set(a&b) with
>> second result set(a&b) not a.eql?b
>> Any suggestions?
>>
>> On Thursday, August 15, 2013, Tadeu Panato wrote:
>>
>>> .eql?
>>>
>>> a = "TS377NWT"
>>> b = "KM077BLK"
>>>
>>> a.eql? b
>>>
>>>
>>> Em quinta-feira, 15 de agosto de 2013 12h37min42s UTC-3, watir webdriver
>>> escreveu:

 Is there any way to compare two sets of strings which I've printed on
 the command prompt.

 When I click on a link it opens a child window there I've to read two
 header texts and print them on the command prompt. (Ex :
 TS377NWT,KM077BLK).I've to repeat the same step one more time to get the
 results.On second run I got (Ex : TS399NAV,KM039NPK).
 How can I compare these two results which i've printed on the command
 prompt.

 Any suggestions ?

 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+unsubscribe@**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/**2wJPx7K1xJc/unsubscribe
>>> .
>>> To unsubscribe from this group and all its topics, send an email to
>>> watir-general+unsubscribe@**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  'watir-general@googlegroups.com');>
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com  'watir-general%2bunsubscr...@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/2wJPx7K1xJc/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> watir-general+unsubscr...@googlegroups.com  'watir-general%2bunsubscr...@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] : How to compare to results

2013-08-15 Thread Tadeu Panato
you receive the values in one string?

like a = ["TS377NWT", "KM077BLK"] or a = "TS377NWT,KM077BLK" ??

in case is the first:
a[0].eql?(a[1])

if is the second case:
 
a = a.split(",")
then use the code above

this is programming logic not watir-webdriver questions.



Em quinta-feira, 15 de agosto de 2013 14h07min07s UTC-3, watir webdriver 
escreveu:
>
> Thanks for the reply...but here I've to verify first result set(a&b) with 
> second result set(a&b) not a.eql?b
> Any suggestions?
>
> On Thursday, August 15, 2013, Tadeu Panato wrote:
>
>> .eql? 
>>
>> a = "TS377NWT"
>> b = "KM077BLK"
>>
>> a.eql? b
>>
>>
>> Em quinta-feira, 15 de agosto de 2013 12h37min42s UTC-3, watir webdriver 
>> escreveu:
>>>
>>> Is there any way to compare two sets of strings which I've printed on 
>>> the command prompt.
>>>
>>> When I click on a link it opens a child window there I've to read two 
>>> header texts and print them on the command prompt. (Ex : 
>>> TS377NWT,KM077BLK).I've to repeat the same step one more time to get the 
>>> results.On second run I got (Ex : TS399NAV,KM039NPK).
>>> How can I compare these two results which i've printed on the command 
>>> prompt.
>>>
>>> Any suggestions ?
>>>
>>> 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 a topic in the 
>> Google Groups "Watir General" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/watir-general/2wJPx7K1xJc/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.


Re: [wtr-general] [Watir-webdriver] : How to compare to results

2013-08-15 Thread watir webdriver
Thanks for the reply...but here I've to verify first result set(a&b) with
second result set(a&b) not a.eql?b
Any suggestions?

On Thursday, August 15, 2013, Tadeu Panato wrote:

> .eql?
>
> a = "TS377NWT"
> b = "KM077BLK"
>
> a.eql? b
>
>
> Em quinta-feira, 15 de agosto de 2013 12h37min42s UTC-3, watir webdriver
> escreveu:
>>
>> Is there any way to compare two sets of strings which I've printed on the
>> command prompt.
>>
>> When I click on a link it opens a child window there I've to read two
>> header texts and print them on the command prompt. (Ex :
>> TS377NWT,KM077BLK).I've to repeat the same step one more time to get the
>> results.On second run I got (Ex : TS399NAV,KM039NPK).
>> How can I compare these two results which i've printed on the command
>> prompt.
>>
>> Any suggestions ?
>>
>> Thanks in-advance.
>>
>  --
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> watir-general@googlegroups.com  'watir-general@googlegroups.com');>
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com  'watir-general%2bunsubscr...@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/2wJPx7K1xJc/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> watir-general+unsubscr...@googlegroups.com  'watir-general%2bunsubscr...@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] : How to compare to results

2013-08-15 Thread John Fitisoff
Just store everything in strings and then compare by == or a regexp, whichever 
makes more sense, then print the console output afterward?





 From: watir webdriver 
To: watir-general@googlegroups.com 
Sent: Thursday, August 15, 2013 8:37 AM
Subject: [wtr-general] [Watir-webdriver] : How to compare to results
 


Is there any way to compare two sets of strings which I've printed on the 
command prompt.

When I click on a link it opens a child window there I've to read two header 
texts and print them on the command prompt. (Ex : TS377NWT,KM077BLK).I've to 
repeat the same step one more time to get the results.On second run I got (Ex : 
TS399NAV,KM039NPK).
How can I compare these two results which i've printed on the command prompt.

Any suggestions ?

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.


[wtr-general] [Watir-webdriver] : How to compare to results

2013-08-15 Thread watir webdriver
Is there any way to compare two sets of strings which I've printed on the 
command prompt.

When I click on a link it opens a child window there I've to read two 
header texts and print them on the command prompt. (Ex : 
TS377NWT,KM077BLK).I've to repeat the same step one more time to get the 
results.On second run I got (Ex : TS399NAV,KM039NPK).
How can I compare these two results which i've printed on the command 
prompt.

Any suggestions ?

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.


[wtr-general] [Watir-webdriver] : How to retrieve/print text from a table

2013-08-14 Thread watir webdriver
Is there any way how to print the text from the table?
I've managed to verify if the text is present on the page or not but not 
sure how to print the text.Its a table with 20 rows.


*Then(/^I should see "(.*?)" on the page$/) do |expected_result|
puts (@browser.text.include? expected_result).should == true
puts @browser.td(:text => expected_result)  ###Here I want to print the 
expected_result which is nothing but best
end*

*Sample HTML :*

Generation
*best*


Any suggestions ?
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.




[wtr-general] [Watir webdriver] - how to verify text using OR statement in a child window

2013-08-14 Thread watir webdriver
In watir-webdriver, is it possible to verify text using OR statement in a 
child window?

and should fail if its anything other than 'best'  or 'catalog'

*My step definition is as below :*

* Then /^I should see either "best | catalog" on the page$/ do
 @browser.window(:title => "child").use do

puts @browser.text.should == 'best' || @browser.text.should == 'catalog'

@browser.window(:title => "child").close
end
end*

Its printing all the text from the parent window and failing...Here I just 
have to verify if either of the text is present in the child window or not 
and if it exists return 'true'

Any thoughts please?

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.




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

2013-08-05 Thread Chuck van der Linden
On Sunday, July 14, 2013 8:29:45 AM UTC-7, watir webdriver wrote:

> Thanks for the reply John...I've managed to fix the issue.


So for the benefit of anyone else who is trying to do this sort of thing, 
would you care to share with us HOW you managed to fix the issue, e.g. the 
code that is working to do what you wanted?

 

>
>
> On Wednesday, July 10, 2013, John Fitisoff wrote:
>
>> A couple of seconds seems like a long time. Maybe try the action builder 
>> 'release' action instead of firing the event? Maybe some javascript event 
>> isn't occurring at the right time? One thing that really helps me is to use 
>> pry to stop the test right at the point that the problem is occurring 
>> (maybe you're already doing something like that). Then it's a lot easier to 
>> see what's going on. You can just install pry and then insert binding.pry 
>> at the point where you want the test to halt. Then type exit to continue 
>> execution. 
>>
>>
>>   --
>>  *From:* watir webdriver 
>> *To:* watir-general@googlegroups.com 
>> *Sent:* Wednesday, July 10, 2013 3:43 AM
>> *Subject:* [wtr-general] Re: [Watir-webdriver] - Drag and drop using 
>> watir webdriver
>>  
>> Thanks for your reply...with this code I can see the drag and drop but 
>> after couple of seconds the dropped element is getting disappeared...but 
>> the scenario is passed successfully...Although it didn't work as expected 
>> when I checked manually by visiting the webpage.Any one can help me with 
>> this ?
>>
>> my_element = @browser.span(:text => "Abandoned Basket")
>> target = @browser.div(:class => "droparea ui-droppable ui-sortable")
>> target = @browser.div(:id => "0")
>> my_element.fire_event("onmousedown")
>> @browser.driver.action.click_and_hold(my_element.wd).perform
>> sleep 15
>> @browser.driver.action.move_to(target.wd).perform
>> sleep 15
>> my_element.fire_event("onmouseup")
>> end
>>
>> Your help is much more appreciated.
>>
>>
>> On Wednesday, July 3, 2013 2:53:28 PM UTC+1, watir webdriver 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*:
>> 
>> 
>>  Basket
>> 
>> 
>> 
>>
>>
>> *HTML code for droppable code:*
>> 
>>
>> 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 a topic in the 
>> Google Groups "Watir General" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/watir-general/mrHJU9iGIqI/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.




[wtr-general] [Watir-webdriver] : How to get the size or count of same text

2013-08-02 Thread watir webdriver
Hi,

In a table I've a text called 'seller' multiple times.I've managed to 
verify if the element is present on the page or not but couldn't able to 
get the count or size of it.Can anyone help?
I'm using watir-webdriver with cucumber.

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.




Re: [wtr-general] [watir-webdriver] - How to verify a text on a child window

2013-07-22 Thread Željko Filipin
On Mon, Jul 22, 2013 at 5:17 PM, watir webdriver <
watirwebdriver...@gmail.com> wrote:

> My code is returning all the texts present in the parent window.


You have to switch to the new browser window/tab. Something like this:

browser.window(:title => "annoying popup").use do
  browser.button(:id => "close").click
end

More information at http://watirwebdriver.com/browser-popups/

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




[wtr-general] [watir-webdriver] enablePersistentHover capability access

2013-07-22 Thread Alex Shtayer
Hi folks

Does somebody know how to access capabilities from 
https://code.google.com/p/selenium/wiki/DesiredCapabilities page?

I am able to access capabilities only from first three tables:
require 'watir-webdriver'
caps = Selenium::WebDriver::Remote::Capabilities.ie
=> #"internet explorer", :version=>"", :platform=>:windows, 
:javascript_enabl
ed=>false, :css_selectors_enabled=>true, :takes_screenshot=>true, 
:native_events
=>false, :rotatable=>false, :firefox_profile=>nil, :proxy=>nil}>

But what about any other (for example specific for IE)?

I have tried different version of selenium-webdriver gem (and of course 
newer than 2.26) without any luck

Thanks,
Alex

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




[wtr-general] [watir-webdriver] - How to verify a text on a child window

2013-07-22 Thread watir webdriver
Hi there,

In my app clicking a link opens a new browser where I've check if a 
particular text is present or not.I've implemented as below :

*Cucumber Step definition:*
When I click on the debug information link create page
Then the debug info should show the "Product catalog" on the debug page

When(/^the debug info should show the "(.*?)" on the debug page$/) do 
|strategy|
 if @browser.text.should == strategy
puts "Test passed!"
else
puts "Test failed!"
end
end

My code is returning all the texts present in the parent window.

Can anyone help me with this ?

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.




Re: [wtr-general] [Watir-WebDriver] Wait until the text-field values are fetched through API

2013-07-15 Thread maulik goswami
Thanks for your reply i got it worked with regexp check.

On Friday, 12 July 2013 21:51:48 UTC+5:30, johnssn wrote:
>
> I'm not 100% sure what it's doing but you probably need to poll for some 
> condition after 'lookup' so that it knows lookup is done before continuing. 
> Maybe something like this
>
> Watir::Wait.until(60) do
>   br.text =~ /some regexp check/
> end 
>
>
>   --
>  *From:* maulik goswami >
> *To:* watir-...@googlegroups.com  
> *Sent:* Friday, July 12, 2013 1:58 AM
> *Subject:* [wtr-general] [Watir-WebDriver] Wait until the text-field 
> values are fetched through API
>  
> I am writing the registration script where the API is being called in 
> company registration no field which fetches all the data regarding company 
> and fill it automatically in according text-field like name, phone no, 
> address etc. 
>
> So i want to make the script wait until all text-field vales are filled 
> with values. I have tried the following script but it doesn't wait and 
> clicks on continue button before all the values are fetched.
>
> require "watir-webdriver"
> require "watir-webdriver/wait"
> br = Watir::Browser.new :chrome
> br.goto verification_link
> br.a(:text => "Continue Manually").click
> br.text_field(:id => "regNumber").set "03977902"
> br.button(:id => "populatebtn").click
> Watir::Wait.until(10) {br.text_field(:id => "companyName").value.exists?}
> br.select_list(:id => "companyType").select("Limited")
> br.select_list(:id => "nature").select("Art")
> br.text_field(:id => "sales_turnover").set "12000"
> br.select_list(:id => "why").select("Bill Payment")
> br.button(:id => "lookup").click
> br.button(:id => "continue").click
> -- 
> -- 
> 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 
>  
> --- 
> 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_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-14 Thread John Fitisoff
Oh, good!





 From: watir webdriver 
To: "watir-general@googlegroups.com"  
Sent: Sunday, July 14, 2013 8:29 AM
Subject: Re: [wtr-general] [Watir-webdriver] - Drag and drop using watir 
webdriver
 


Thanks for the reply John...I've managed to fix the issue.

On Wednesday, July 10, 2013, John Fitisoff  wrote:

A couple of seconds seems like a long time. Maybe try the action builder 
'release' action instead of firing the event? Maybe some javascript event isn't 
occurring at the right time? One thing that really helps me is to use pry to 
stop the test right at the point that the problem is occurring (maybe you're 
already doing something like that). Then it's a lot easier to see what's going 
on. You can just install pry and then insert binding.pry at the point where you 
want the test to halt. Then type exit to continue execution. 
>
>
>
>
>
>
>
> From: watir webdriver 
>To: watir-general@googlegroups.com 
>Sent: Wednesday, July 10, 2013 3:43 AM
>Subject: [wtr-general] Re: [Watir-webdriver] - Drag and drop using watir 
>webdriver
> 
>
>
>Thanks for your reply...with this code I can see the drag and drop but after 
>couple of seconds the dropped element is getting disappeared...but the 
>scenario is passed successfully...Although it didn't work as expected when I 
>checked manually by visiting the webpage.Any one can help me with this ?
>
>my_element = @browser.span(:text => "Abandoned Basket")
>target = @browser.div(:class => "droparea ui-droppable ui-sortable")
>target = @browser.div(:id =>
 "0")
>my_element.fire_event("onmousedown")
>@browser.driver.action.click_and_hold(my_element.wd).perform
>sleep 15
>@browser.driver.action.move_to(target.wd).perform
>sleep 15
>my_element.fire_event("onmouseup")
>end
>
>Your help is much more appreciated.
>
>
>On Wednesday, July 3, 2013 2:53:28 PM UTC+1, watir webdriver 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:
>>
>>
>>Basket
>>
>>
>>
>>
>>HTML code for droppable code:
>>
>>
>>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 a topic in the Google 
>Groups "Watir General" group.
>To unsubscribe from this topic, visit 
>https://groups.google.com/d/topic/watir-general/mrHJU9iGIqI/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] [Watir-webdriver] - Drag and drop using watir webdriver

2013-07-14 Thread watir webdriver
Thanks for the reply John...I've managed to fix the issue.

On Wednesday, July 10, 2013, John Fitisoff wrote:

> A couple of seconds seems like a long time. Maybe try the action builder
> 'release' action instead of firing the event? Maybe some javascript event
> isn't occurring at the right time? One thing that really helps me is to use
> pry to stop the test right at the point that the problem is occurring
> (maybe you're already doing something like that). Then it's a lot easier to
> see what's going on. You can just install pry and then insert binding.pry
> at the point where you want the test to halt. Then type exit to continue
> execution.
>
>
>   --
>  *From:* watir webdriver  'cvml', 'watirwebdriver...@gmail.com');>>
> *To:* watir-general@googlegroups.com  'watir-general@googlegroups.com');>
> *Sent:* Wednesday, July 10, 2013 3:43 AM
> *Subject:* [wtr-general] Re: [Watir-webdriver] - Drag and drop using
> watir webdriver
>
> Thanks for your reply...with this code I can see the drag and drop but
> after couple of seconds the dropped element is getting disappeared...but
> the scenario is passed successfully...Although it didn't work as expected
> when I checked manually by visiting the webpage.Any one can help me with
> this ?
>
> my_element = @browser.span(:text => "Abandoned Basket")
> target = @browser.div(:class => "droparea ui-droppable ui-sortable")
> target = @browser.div(:id => "0")
> my_element.fire_event("onmousedown")
> @browser.driver.action.click_and_hold(my_element.wd).perform
> sleep 15
> @browser.driver.action.move_to(target.wd).perform
> sleep 15
> my_element.fire_event("onmouseup")
> end
>
> Your help is much more appreciated.
>
>
> On Wednesday, July 3, 2013 2:53:28 PM UTC+1, watir webdriver 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*:
> 
> 
>  Basket span>
> 
> 
>
>
> *HTML code for droppable code:*
> 
>
> 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  'watir-general@googlegroups.com');>
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com  'watir-general%2bunsubscr...@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  'cvml', 'watir-general%2bunsubscr...@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  'watir-general@googlegroups.com');>
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com  'watir-general%2bunsubscr...@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/mrHJU9iGIqI/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> watir-general+unsubscr...@googlegroups.com  'watir-general%2bunsubscr...@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] Wait until the text-field values are fetched through API

2013-07-12 Thread John Fitisoff
I'm not 100% sure what it's doing but you probably need to poll for some 
condition after 'lookup' so that it knows lookup is done before continuing. 
Maybe something like this

Watir::Wait.until(60) do
  br.text =~ /some regexp check/
end





 From: maulik goswami 
To: watir-general@googlegroups.com 
Sent: Friday, July 12, 2013 1:58 AM
Subject: [wtr-general] [Watir-WebDriver] Wait until the text-field values are 
fetched through API
 


I am writing the registration script where the API is being called in company 
registration no field which fetches all the data regarding company and fill it 
automatically in according text-field like name, phone no, address etc. 

So i want to make the script wait until all text-field vales are filled with 
values. I have tried the following script but it doesn't wait and clicks on 
continue button before all the values are fetched.


require "watir-webdriver"
require "watir-webdriver/wait"
br = Watir::Browser.new :chrome
br.goto verification_link
br.a(:text => "Continue Manually").click
br.text_field(:id => "regNumber").set "03977902"
br.button(:id => "populatebtn").click
Watir::Wait.until(10) {br.text_field(:id => "companyName").value.exists?}
br.select_list(:id => "companyType").select("Limited")
br.select_list(:id => "nature").select("Art")
br.text_field(:id => "sales_turnover").set "12000"
br.select_list(:id => "why").select("Bill Payment")
br.button(:id => "lookup").click
br.button(:id => "continue").click
-- 
-- 
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] Wait until the text-field values are fetched through API

2013-07-12 Thread Željko Filipin
On Fri, Jul 12, 2013 at 10:58 AM, maulik goswami wrote:

> Watir::Wait.until(10) {br.text_field(:id => "companyName").value.exists?}


I think the problem is that here you are waiting for the text field to have
any value, and I guess empty string is any value. You should probably wait
until the text field's value is different from empty string, or something
like that.

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




[wtr-general] [Watir-WebDriver] Wait until the text-field values are fetched through API

2013-07-12 Thread maulik goswami
I am writing the registration script where the API is being called in 
company registration no field which fetches all the data regarding company 
and fill it automatically in according text-field like name, phone no, 
address etc. 

So i want to make the script wait until all text-field vales are filled 
with values. I have tried the following script but it doesn't wait and 
clicks on continue button before all the values are fetched.

require "watir-webdriver"
require "watir-webdriver/wait"
br = Watir::Browser.new :chrome
br.goto verification_link
br.a(:text => "Continue Manually").click
br.text_field(:id => "regNumber").set "03977902"
br.button(:id => "populatebtn").click
Watir::Wait.until(10) {br.text_field(:id => "companyName").value.exists?}
br.select_list(:id => "companyType").select("Limited")
br.select_list(:id => "nature").select("Art")
br.text_field(:id => "sales_turnover").set "12000"
br.select_list(:id => "why").select("Bill Payment")
br.button(:id => "lookup").click
br.button(:id => "continue").click

-- 
-- 
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-11 Thread watir webdriver
Thanks for the reply John...I've managed to fix the issue.

On Wednesday, July 10, 2013, John Fitisoff wrote:

> A couple of seconds seems like a long time. Maybe try the action builder
> 'release' action instead of firing the event? Maybe some javascript event
> isn't occurring at the right time? One thing that really helps me is to use
> pry to stop the test right at the point that the problem is occurring
> (maybe you're already doing something like that). Then it's a lot easier to
> see what's going on. You can just install pry and then insert binding.pry
> at the point where you want the test to halt. Then type exit to continue
> execution.
>
>
>   --
>  *From:* watir webdriver  'cvml', 'watirwebdriver...@gmail.com');>>
> *To:* watir-general@googlegroups.com  'watir-general@googlegroups.com');>
> *Sent:* Wednesday, July 10, 2013 3:43 AM
> *Subject:* [wtr-general] Re: [Watir-webdriver] - Drag and drop using
> watir webdriver
>
> Thanks for your reply...with this code I can see the drag and drop but
> after couple of seconds the dropped element is getting disappeared...but
> the scenario is passed successfully...Although it didn't work as expected
> when I checked manually by visiting the webpage.Any one can help me with
> this ?
>
> my_element = @browser.span(:text => "Abandoned Basket")
> target = @browser.div(:class => "droparea ui-droppable ui-sortable")
> target = @browser.div(:id => "0")
> my_element.fire_event("onmousedown")
> @browser.driver.action.click_and_hold(my_element.wd).perform
> sleep 15
> @browser.driver.action.move_to(target.wd).perform
> sleep 15
> my_element.fire_event("onmouseup")
> end
>
> Your help is much more appreciated.
>
>
> On Wednesday, July 3, 2013 2:53:28 PM UTC+1, watir webdriver 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*:
> 
> 
>  Basket span>
> 
> 
>
>
> *HTML code for droppable code:*
> 
>
> 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  'watir-general@googlegroups.com');>
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com  'watir-general%2bunsubscr...@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  'cvml', 'watir-general%2bunsubscr...@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  'watir-general@googlegroups.com');>
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com  'watir-general%2bunsubscr...@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/mrHJU9iGIqI/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> watir-general+unsubscr...@googlegroups.com  'watir-general%2bunsubscr...@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] How can i access Gmail

2013-07-11 Thread Dan
This isn't a watir problem, but I think many of us have experience with the 
gmail gem.  What error do you get when you try to use the gmail gem?

On Thursday, July 11, 2013 2:38:30 AM UTC-4, maulik goswami wrote:
>
>  i need to access the mail that is being sent by my system
>
> On Wednesday, 10 July 2013 17:37:33 UTC+5:30, Oscar.Rieken wrote:
>>
>> do you need to access gmail because you work at google? or do you need to 
>> access an email that is being sent by your system to an email address that 
>> happens to be a gmail acct?
>>
>>
>> On Wed, Jul 10, 2013 at 6:29 AM, maulik goswami wrote:
>>
>>> *require "watir-webdriver"*
>>> *require "gmail"*
>>> *br = Watir::Browser.new :chrome
>>> *
>>> *br.goto "gmail.com"*
>>> *gmail = Gmail.new("email address", "password")
>>> *
>>> *gmail.inbox.count(:unread)*
>>> *gmail.inbox.click(:unread, :from => "no reply registration 
>>> email").label("Confirm Verification")*
>>>
>>> I was able to sign in with basic HTML IDs but as there where many tags 
>>> inside Gmail so i install the gem for it.
>>> But i'm not even able to sign in with it so what am i doing wrong ?
>>>
>>> Thanks.
>>>
>>> On Wednesday, 10 July 2013 15:49:55 UTC+5:30, Željko Filipin wrote:
>>>
 On Wed, Jul 10, 2013 at 12:12 PM, maulik goswami wrote:

> I've installed ruby *Gmail* gem and also made a sample script but it 
> only goes to *Gmail* website after that script stops and returns the 
> null value.
>

 Please share relevant Ruby code and error messages, if any.

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

>>>  -- 
>>> -- 
>>> 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
>>>  
>>> --- 
>>> 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_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] How can i access Gmail

2013-07-10 Thread maulik goswami
 i need to access the mail that is being sent by my system

On Wednesday, 10 July 2013 17:37:33 UTC+5:30, Oscar.Rieken wrote:
>
> do you need to access gmail because you work at google? or do you need to 
> access an email that is being sent by your system to an email address that 
> happens to be a gmail acct?
>
>
> On Wed, Jul 10, 2013 at 6:29 AM, maulik goswami 
> 
> > wrote:
>
>> *require "watir-webdriver"*
>> *require "gmail"*
>> *br = Watir::Browser.new :chrome
>> *
>> *br.goto "gmail.com"*
>> *gmail = Gmail.new("email address", "password")
>> *
>> *gmail.inbox.count(:unread)*
>> *gmail.inbox.click(:unread, :from => "no reply registration 
>> email").label("Confirm Verification")*
>>
>> I was able to sign in with basic HTML IDs but as there where many tags 
>> inside Gmail so i install the gem for it.
>> But i'm not even able to sign in with it so what am i doing wrong ?
>>
>> Thanks.
>>
>> On Wednesday, 10 July 2013 15:49:55 UTC+5:30, Željko Filipin wrote:
>>
>>> On Wed, Jul 10, 2013 at 12:12 PM, maulik goswami wrote:
>>>
 I've installed ruby *Gmail* gem and also made a sample script but it 
 only goes to *Gmail* website after that script stops and returns the 
 null value.

>>>
>>> Please share relevant Ruby code and error messages, if any.
>>>
>>> Željko
>>> --
>>> https://leanpub.com/watirbook 
>>>
>>  -- 
>> -- 
>> 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 
>>  
>> --- 
>> 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_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] How can i access Gmail

2013-07-10 Thread Oscar Rieken
do you need to access gmail because you work at google? or do you need to
access an email that is being sent by your system to an email address that
happens to be a gmail acct?


On Wed, Jul 10, 2013 at 6:29 AM, maulik goswami  wrote:

> *require "watir-webdriver"*
> *require "gmail"*
> *br = Watir::Browser.new :chrome
> *
> *br.goto "gmail.com"*
> *gmail = Gmail.new("email address", "password")
> *
> *gmail.inbox.count(:unread)*
> *gmail.inbox.click(:unread, :from => "no reply registration
> email").label("Confirm Verification")*
>
> I was able to sign in with basic HTML IDs but as there where many tags
> inside Gmail so i install the gem for it.
> But i'm not even able to sign in with it so what am i doing wrong ?
>
> Thanks.
>
> On Wednesday, 10 July 2013 15:49:55 UTC+5:30, Željko Filipin wrote:
>
>> On Wed, Jul 10, 2013 at 12:12 PM, maulik goswami wrote:
>>
>>> I've installed ruby *Gmail* gem and also made a sample script but it
>>> only goes to *Gmail* website after that script stops and returns the
>>> null value.
>>>
>>
>> Please share relevant Ruby code and error messages, if any.
>>
>> Ž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-Webdriver] How can i access Gmail

2013-07-10 Thread maulik goswami
*require "watir-webdriver"*
*require "gmail"*
*br = Watir::Browser.new :chrome
*
*br.goto "gmail.com"*
*gmail = Gmail.new("email address", "password")
*
*gmail.inbox.count(:unread)*
*gmail.inbox.click(:unread, :from => "no reply registration 
email").label("Confirm Verification")*

I was able to sign in with basic HTML IDs but as there where many tags 
inside Gmail so i install the gem for it.
But i'm not even able to sign in with it so what am i doing wrong ?

Thanks.

On Wednesday, 10 July 2013 15:49:55 UTC+5:30, Željko Filipin wrote:
>
> On Wed, Jul 10, 2013 at 12:12 PM, maulik goswami 
> 
> > wrote:
>
>> I've installed ruby *Gmail* gem and also made a sample script but it 
>> only goes to *Gmail* website after that script stops and returns the 
>> null value.
>>
>
> Please share relevant Ruby code and error messages, if any.
>
> Ž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.




Re: [wtr-general] [Watir-Webdriver] How can i access Gmail

2013-07-10 Thread Željko Filipin
On Wed, Jul 10, 2013 at 12:12 PM, maulik goswami wrote:

> I've installed ruby *Gmail* gem and also made a sample script but it only
> goes to *Gmail* website after that script stops and returns the null
> value.
>

Please share relevant Ruby code and error messages, if any.

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




[wtr-general] [Watir-Webdriver] How can i access Gmail

2013-07-10 Thread maulik goswami
I am new to Watir. 

As a part of my registration script i need to access the *Gmail* and need 
to click on verification link to move further with the steps of 
registration. 

So how can i achieve it ?

I've installed ruby *Gmail* gem and also made a sample script but it only 
goes to *Gmail* website after that script stops and returns the null value.


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.




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

2013-07-05 Thread John Fitisoff
I ran into a similar thing recently, haven't had time to circle back and see 
why, may have been user error. It wasn't working in using the native watir 
method but I did get things to work by using the webdriver ActionBuilder. At 
that point I dropped it (so to speak) because drag and drop wasn't necessary 
for what I was doing. And I didn't dig into the Ruby code to see what, if any 
difference there was. But it may be worth trying it this way (you can break it 
down further if you need to but action.drag_and_drop was enough for me). 

http://selenium.googlecode.com/svn@7079/trunk/docs/api/rb/Selenium/WebDriver/ActionBuilder.html


el1 = driver.find_element(:id, "some_id1") el2 = driver.find_element(:id, 
"some_id2") driver.action.drag_and_drop(el1, el2).perform





 From: watir webdriver 
To: watir-general@googlegroups.com 
Sent: Wednesday, July 3, 2013 6:53 AM
Subject: [wtr-general] [Watir-webdriver] - Drag and drop using watir webdriver
 


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:


Basket




HTML code for droppable code:


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] [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  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*:
> 
> 
>  Basket span>
> 
> 
>
>
> *HTML code for droppable code:*
> 
>
> 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.




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

2013-07-03 Thread watir webdriver
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*:


 Basket




*HTML code for droppable code:*


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.




[wtr-general] Watir-webdriver: can't start new session for IE9

2013-05-30 Thread Anna Voytenko


How can I start absolutely new session for IE browser?

I use the following code:

  @browser = Watir::Browser.new :ie
  @browser.cookies.clear 
  @browser.goto "http://...";

but when I run tests, I'm always seeing that IE browser starts with logged 
in user that was used for the previous test.

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




[wtr-general] Watir-webdriver: hover doesn't work for FF 20

2013-05-25 Thread Anna Voytenko
Hi guys,

I faced the issues related to hover method in FF20.
hover works in chrome but doesn't work for FF.
I've tried to do chenge profile.native_events but it didn't help; also I 
played with fire_event method- the same result 
When I run tests in FF I receive the following error in the line when I 
call "hover":
Selenium::WebDriver::Error::InvalidElementStateError: Cannot perform native 
interaction: Could not load native events component.
[remote server] 
file:///C:/Users/AVOYTE~1/AppData/Local/Temp/webdriver-profile20130514-30168-1x2o5qn/extensions/fxdri...@googlecode.com/components/driver_component.js:8699:in
 
`generateErrorForNativeEvents'
[remote server] 
file:///C:/Users/AVOYTE~1/AppData/Local/Temp/webdriver-profile20130514-30168-1x2o5qn/extensions/fxdri...@googlecode.com/components/driver_component.js:8732:in
 
`FirefoxDriver.prototype.mouseMove'
[remote server] 
file:///C:/Users/AVOYTE~1/AppData/Local/Temp/webdriver-profile20130514-30168-1x2o5qn/extensions/fxdri...@googlecode.com/components/command_processor.js:10421:in
 
`DelayedCommand.prototype.executeInternal_/h'
[remote server] 
file:///C:/Users/AVOYTE~1/AppData/Local/Temp/webdriver-profile20130514-30168-1x2o5qn/extensions/fxdri...@googlecode.com/components/command_processor.js:10426:in
 
`DelayedCommand.prototype.executeInternal_'
[remote server] 
file:///C:/Users/AVOYTE~1/AppData/Local/Temp/webdriver-profile20130514-30168-1x2o5qn/extensions/fxdri...@googlecode.com/components/command_processor.js:10366:in
 
`DelayedCommand.prototype.execute/<'


Please help me to perform hover/mouseover in FF via watir webdriver

TIA,
Anna

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




[wtr-general] Watir-webdriver : How to select an option from the list

2013-05-17 Thread watir webdriver
Hi,

In my application I've to select an option from the list.I tried as below 
but its not selecting the option:

@browser.select_list(:name => "siteName").select "ccfashion"

HTML code:

burton
burtoneu
cathkidston
ccfashion
chemistdirect
cloggs
coggles
colorway
coopersofstortford
cottontraders
crewclothing
cultura


Error message :
 "ccfashion" not found in select list 
(Watir::Exception::NoValueFoundException)

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.




Re: [wtr-general] Watir-Webdriver Installation Issue

2013-05-09 Thread Željko Filipin
On Thu, May 9, 2013 at 10:47 AM, Sohail Mirza  wrote:

> I am trying to install Watir-Webdriver and try to work on it but getting
> the following error :(


In the future, please copy/paste error messages. Screen shots are not
searchable.

Try this:

browser = Watir::Browser.new :chrome

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




[wtr-general] Watir-Webdriver Installation Issue

2013-05-09 Thread Sohail Mirza
Hi,

I am trying to install Watir-Webdriver and try to work on it but getting
the following error :(

[image: Inline image 1]

Any comments 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/groups/opt_out.


<>

Re: [wtr-general] Watir webdriver - How to click on last in table ?

2013-04-30 Thread watir webdriver
Thanks Filipin,

It worked.


On Thu, Apr 25, 2013 at 5:36 PM, Željko Filipin wrote:

> On Thu, Apr 25, 2013 at 6:34 PM, watir webdriver <
> watirwebdriver...@gmail.com> wrote:
>
>> @browser.img(:src => "/tracker/images/skin2/bolean.png").click
>
>
> Try this:
>
> @browser.imgs(:src => "/tracker/images/skin2/bolean.png").last.click
>
> Ž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 a topic in the
> Google Groups "Watir General" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/watir-general/cGy9S3w1eNw/unsubscribe?hl=en
> .
> 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.




Re: [wtr-general] Watir webdriver - How to click on last in table ?

2013-04-25 Thread Željko Filipin
On Thu, Apr 25, 2013 at 6:34 PM, watir webdriver <
watirwebdriver...@gmail.com> wrote:

> @browser.img(:src => "/tracker/images/skin2/bolean.png").click


Try this:

@browser.imgs(:src => "/tracker/images/skin2/bolean.png").last.click

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




Re: [wtr-general] Watir webdriver - Autoit

2013-04-11 Thread Željko Filipin
On Thu, Apr 11, 2013 at 12:13 PM, watir webdriver <
watirwebdriver...@gmail.com> wrote:

> How can we handle popups using Autoit in watir webdriver.Any helpful links
> or docs available ?


Why would you use Autoit?

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

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




[wtr-general] Watir webdriver - Autoit

2013-04-11 Thread watir webdriver
Hi there,

How can we handle popups using Autoit in watir webdriver.Any helpful links 
or docs available ?

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.




Re: [wtr-general] Watir Webdriver screenshot question: can it take screenshot for particular area/region?

2013-04-09 Thread Željko Filipin
On Tue, Apr 9, 2013 at 5:45 AM, Jason Ding  wrote:

> I know it can take screenshot for whole page, but can it take screenshot
> for particular area/region by dom selectors etc.?


As far as I can see, no:

http://watirwebdriver.com/screenshots/
http://rdoc.info/gems/watir-webdriver/Watir/Browser#screenshot-instance_method
https://github.com/watir/watir-webdriver/blob/master/lib/watir-webdriver/screenshot.rb

I would suggest opening an issue:

https://github.com/watir/watir-webdriver/issues

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




[wtr-general] Watir Webdriver screenshot question: can it take screenshot for particular area/region?

2013-04-09 Thread Jason Ding
I know it can take screenshot for whole page, but can it take screenshot 
for particular area/region by dom selectors etc.?

Or can this be included in future version?

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.




Re: [wtr-general] Watir Webdriver Logger

2013-03-21 Thread Sohail Mirza
Chuck van der Linden , liked your motivational comments.


On Thu, Mar 21, 2013 at 2:41 AM, Chuck van der Linden <
cvanderlin...@climate.com> wrote:

> On Wednesday, March 20, 2013 2:52:15 AM UTC-7, Željko Filipin wrote:
>
> On Wed, Mar 20, 2013 at 10:49 AM, Sohail Mirza  wrote:
>>
>>> Are you talking about the following home page?
>>> http://wiki.openqa.org/**display/WTR/Example+Logging
>>>
>>
>> I am not talking about anything. I have asked what _you_ are talking
>> about. :)
>>
>> The page that you have linked to was last updated in 2008. Do the math
>> yourself. My guess is that any information there is out of date.
>>
>> Željko
>>
>
> It might be old, but having a quick look at it, there didn't seem to be
> anything there that was too outlandish, and most of it was pretty basic
> ruby.   While I doubt it would work out of the box, anyone with a bit of
> experience writing and debugging ruby code ought to be able to adapt it to
> work with the current generation of Watir-Classic or Watir-Webdriver..
>
> That said, if you are using some kind of framework to wrap around your
> tests, (e.g. lots of us use cucumber) then there is usually an existing
> capability for logging and reporting on test process, and you can just use
> that if you feel the need to log additional info.  No need to re-invent the
> wheel.   But if you don't like any of the frameworks out there and you are
> going to write stuff from scratch, that 5 year old example probably makes
> as good a starting place as anything.
>
> --
> --
> 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 Logger

2013-03-20 Thread Chuck van der Linden
On Wednesday, March 20, 2013 2:52:15 AM UTC-7, Željko Filipin wrote:

> On Wed, Mar 20, 2013 at 10:49 AM, Sohail Mirza 
> > wrote:
>
>> Are you talking about the following home page?
>> http://wiki.openqa.org/display/WTR/Example+Logging
>>
>
> I am not talking about anything. I have asked what _you_ are talking 
> about. :)
>
> The page that you have linked to was last updated in 2008. Do the math 
> yourself. My guess is that any information there is out of date.
>
> Željko
>

It might be old, but having a quick look at it, there didn't seem to be 
anything there that was too outlandish, and most of it was pretty basic 
ruby.   While I doubt it would work out of the box, anyone with a bit of 
experience writing and debugging ruby code ought to be able to adapt it to 
work with the current generation of Watir-Classic or Watir-Webdriver..  

That said, if you are using some kind of framework to wrap around your 
tests, (e.g. lots of us use cucumber) then there is usually an existing 
capability for logging and reporting on test process, and you can just use 
that if you feel the need to log additional info.  No need to re-invent the 
wheel.   But if you don't like any of the frameworks out there and you are 
going to write stuff from scratch, that 5 year old example probably makes 
as good a starting place as anything.

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




[wtr-general] [watir-webdriver] how to manage timeout for after click event

2013-03-20 Thread Alex Shtayer
Hi guys
 
I have next situation: When I click on one of buttons in my application, 
page is loading for more than two minutes and raise exception inside of 
watir-webdriver click method.
Obviously any waiters (like wait_until something) will not help in this 
situation, because exception is raised after event, not before action.
 
Code is simple:
browser.button(:type, "submit").click
or
 browser.button(:type, "submit").wait_until_present.click
 
Exception:
 
C:/Ruby192/lib/ruby/1.9.1/net/protocol.rb:140:in `rescue in rbuf_fill': 
Timeout::Error (Timeout::Error)
from C:/Ruby192/lib/ruby/1.9.1/net/protocol.rb:134:in `rbuf_fill'
from C:/Ruby192/lib/ruby/1.9.1/net/protocol.rb:116:in `readuntil'
from C:/Ruby192/lib/ruby/1.9.1/net/protocol.rb:126:in `readline'
from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:2219:in 
`read_status_line'
from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:2208:in `read_new'
from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:1191:in 
`transport_request'
from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:1177:in `request'
from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:1170:in `block in 
request'
from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:627:in `start'
from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:1168:in `request'
from 
C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/re
mote/http/default.rb:82:in `response_for'
from 
C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/re
mote/http/default.rb:38:in `request'
from 
C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/re
mote/http/common.rb:40:in `call'
from 
C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/re
mote/bridge.rb:598:in `raw_execute'
from 
C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/re
mote/bridge.rb:576:in `execute'
from 
C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/re
mote/bridge.rb:358:in `clickElement'
from 
C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/co
mmon/element.rb:54:in `click'
from 
C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.6.2/lib/watir-webdriver/elements/
element.rb:131:in `click'
 
 
 

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

2013-03-20 Thread Željko Filipin
On Wed, Mar 20, 2013 at 11:11 AM, Sohail Mirza  wrote:

> @browser = Watir::Browser.new :chrome
> @browser.goto ("http://testapp:8080/";)
>
> should be recorded / outputted / logged as
> Opening browser page with specified URL
>

Did you take a look at available Ruby logger libraries?

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




Re: [wtr-general] Watir Webdriver Logger

2013-03-20 Thread Sohail Mirza
okay i explain the context
I want to record each step details in somewhere notepad file.
For example whatever my script do , that should be recorded / logged
in separate file with simplified details

@browser = Watir::Browser.new :chrome
@browser.goto ("http://testapp:8080/";)

should be recorded / outputted / logged as
Opening browser page with specified URL

I hope you get my point?
Thanks

On Wed, Mar 20, 2013 at 2:04 PM, Željko Filipin wrote:

> On Wed, Mar 20, 2013 at 11:03 AM, Sohail Mirza  wrote:
>
>> Can you suggest any other way around for logging the details ?
>
>
> I need more context. What is the problem you are trying to solve?
>
> Ž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 Webdriver Logger

2013-03-20 Thread Željko Filipin
On Wed, Mar 20, 2013 at 11:03 AM, Sohail Mirza  wrote:

> Can you suggest any other way around for logging the details ?


I need more context. What is the problem you are trying to solve?

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




Re: [wtr-general] Watir Webdriver Logger

2013-03-20 Thread Sohail Mirza
so i guess logger does not work with Watir Webdriver ...
Can you suggest any other way around for logging the details ? one way
which i know / found is to Test.rb > test.txt
is that the only way? Which one are using?


On Wed, Mar 20, 2013 at 1:52 PM, Željko Filipin wrote:

> On Wed, Mar 20, 2013 at 10:49 AM, Sohail Mirza  wrote:
>
>> Are you talking about the following home page?
>> http://wiki.openqa.org/display/WTR/Example+Logging
>>
>
> I am not talking about anything. I have asked what _you_ are talking
> about. :)
>
> The page that you have linked to was last updated in 2008. Do the math
> yourself. My guess is that any information there is out of date.
>
> Ž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 Webdriver Logger

2013-03-20 Thread Željko Filipin
On Wed, Mar 20, 2013 at 10:49 AM, Sohail Mirza  wrote:

> Are you talking about the following home page?
> http://wiki.openqa.org/display/WTR/Example+Logging
>

I am not talking about anything. I have asked what _you_ are talking about.
:)

The page that you have linked to was last updated in 2008. Do the math
yourself. My guess is that any information there is out of date.

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




Re: [wtr-general] Watir Webdriver Logger

2013-03-20 Thread Sohail Mirza
Are you talking about the following home page?
http://wiki.openqa.org/display/WTR/Example+Logging

please share logger home page link.
Thanks

On Wed, Mar 20, 2013 at 1:41 PM, Željko Filipin wrote:

> On Wed, Mar 20, 2013 at 10:39 AM, Sohail Mirza  wrote:
>
>> I am curious to know about Logger.rb.
>
>
> I am too. :) Can you link to it's home page?
>
> Ž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 Webdriver Logger

2013-03-20 Thread Željko Filipin
On Wed, Mar 20, 2013 at 10:39 AM, Sohail Mirza  wrote:

> I am curious to know about Logger.rb.


I am too. :) Can you link to it's home page?

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




[wtr-general] Watir Webdriver Logger

2013-03-20 Thread Sohail Mirza
Hi,

I am curious to know about Logger.rb.
Can i use it in watir webdriver?
Where i can find more about it?
Can someone share simple example?

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.




[wtr-general] Watir Webdriver Zoom

2013-03-18 Thread Sohail Mirza
Hi

strange behavior

when web application is accessed using watir script its opening with
default zoom in (high zooom and UI looks bigger icon and buttons etc)
however if the application open normally it is opening with actual/required
zoom

Why its happening and how to stop 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/groups/opt_out.




[wtr-general] Watir-Webdriver Save Image

2013-03-17 Thread Sohail Mirza
Hi,

I am trying to find the way to save an image when something fail but could
not get much stuff from google.
I am using Watir-WebDriver and needs to save an image in case failure.

Could anyone advise how to save image?
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.




Re: [wtr-general] Watir-webdriver and Ruby 2.0.0 - known compatabilty issues?

2013-03-07 Thread Željko Filipin
On Wed, Mar 6, 2013 at 9:28 PM, Andrew Leaf  wrote:

> As we are setting up a more robust testing environment for Watir, are
> there any cautions or warnings we should be aware of while implementing
> Ruby 2.0.0?


We are using Ruby 2.0 and watir-webdriver, there were no problems when
moving from Ruby 1.9.3

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




[wtr-general] Watir-webdriver and Ruby 2.0.0 - known compatabilty issues?

2013-03-06 Thread Andrew Leaf
Our QA team has started to use Watir and watir-webdriver for automated 
testing.

Our initial tests were written in a Ruby 1.9.3 environment. 

As we are setting up a more robust testing environment for Watir, are there 
any cautions or warnings we should be aware of while implementing Ruby 
2.0.0?

Regards,

 ★ 

Andrew "Leaf" Leaf, Software Test Engineer
Clockwork Active Media Systems

Twitter: @avleaf 

Strategy ★ Design ★ Technology ★ Content

http://www.clockwork.net

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




[wtr-general] watir-webdriver href javascript

2013-02-06 Thread Sohail Mirza
Hi,

how would you automate following Javascript link in watir-webdriver?

Select


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.




Re: [wtr-general] Watir-webdriver - Screenshots - Browser is minimised before screeshot is taken and only part of the page is saved

2013-01-16 Thread Željko Filipin
On Wed, Jan 16, 2013 at 4:19 PM, Evgeny Shavkunov
wrote:

> I'm using Watir-webdriver on IE


I have noticed right now that the e-mail subject says watir-webdriver. I
did not notice it the first time I was reading the e-mail message.

Željko

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

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


Re: [wtr-general] Watir-webdriver - Screenshots - Browser is minimised before screeshot is taken and only part of the page is saved

2013-01-16 Thread Evgeny Shavkunov
I'm using Watir-webdriver on IE

On Wednesday, January 16, 2013 3:52:49 PM UTC+1, Željko Filipin wrote:
>
> On Wed, Jan 16, 2013 at 3:42 PM, Evgeny Shavkunov 
> 
> > wrote:
>
>> I was trying to make a screenshot from the page using 
>> "browser.screenshot.save" and I found that only small part of the page 
>> (even less then visible part in the window) is saved in file.
>
>
> Which browser and gem are you using (watir-webdriver, watir-classic)?
>
> Ž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


Re: [wtr-general] Watir-webdriver - Screenshots - Browser is minimised before screeshot is taken and only part of the page is saved

2013-01-16 Thread Željko Filipin
On Wed, Jan 16, 2013 at 3:42 PM, Evgeny Shavkunov
wrote:

> I was trying to make a screenshot from the page using
> "browser.screenshot.save" and I found that only small part of the page
> (even less then visible part in the window) is saved in file.


Which browser and gem are you using (watir-webdriver, watir-classic)?

Ž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


[wtr-general] Watir-webdriver - Screenshots - Browser is minimised before screeshot is taken and only part of the page is saved

2013-01-16 Thread Evgeny Shavkunov
Hi,

I was trying to make a screenshot from the page using 
"browser.screenshot.save" and I found that only small part of the page 
(even less then visible part in the window) is saved in file. Later I 
discovered that before screenshot is taken browser is automatically 
minimized and then maximized back after.

What can be the reason for that? How can I get a screenshot with a whole 
page?

Thank you!

-- 
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-WebDriver vs Selenium WebDriver Python bindings

2012-11-02 Thread Željko Filipin
On Sat, Oct 27, 2012 at 10:45 PM, Chris Smalley  wrote:
> I don't want this to turn into a Python vs. Ruby conversation, but I'd
like some insight on the Selenium WebDriver bindings vs Watir-WebDriver.

Another Chris wrote something that could help you:

https://github.com/watir/watir-bazaar/wiki/browser-test-%22stack%22-language-comparison

Ž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


[wtr-general] Watir-WebDriver vs Selenium WebDriver Python bindings

2012-10-27 Thread Chris Smalley
Hello,

I'm making a case for Watir-WebDriver at work, and I'd like your insights. 
 First, a little background:

Automated front end testing is going to be owned by the QA department. 
 We're a small group of QAs, some more technical than others, but none of 
us are programmers. 

Over the past three months I have been developing a Watir-WebDriver 
codebase.  It's coming along and I have some reusable code that is now 
running hourly on a continuos integration.  Lately my work has garned some 
attention, and I find myself in a tough position.  On one hand, people are 
enthused.  On the other hand, they are curious about using the Python 
bindings to use WebDriver.  The reason is, there are more devs that know 
Python (one dev in particular has done a fair amount of Selenium WebDriver 
work in Python), and a few of the QAs know Python too.  They seem to think 
this is a language issue, and while I'm biased cause I love Ruby, my 
argument is that the Watir API simply outclasses the Selenium bindings 
(including the Ruby bindings!).  I don't want this to turn into a Python 
vs. Ruby conversation, but I'd like some insight on the Selenium WebDriver 
bindings vs Watir-WebDriver.  What are some things that the Selenium 
bindings (particularly Python) do well?  What about Watir-WebDriver?

Since we're not programmers, and we will likely not hire programmers for 
QA, my reasons for using Watir-WebDriver are largely due to the simplicity 
and directness of it.  It's very easy to get up and running, and therefore 
it would be easy to train in new QAs and have them grok the codebase.  I've 
compared Watir-WebDriver code to Selenium Python code and it's just 
staggering how much easier and more natural the Watir-WebDriver code flows. 
 I've also written simple tests with the Selenium Python bindings and, in 
my opinion, it's not nearly as intuitive and requires a lot more code to do 
the same thing.  It doesn't hurt that the Watir community is awesome - that 
really fuels the fire.

Basically, my job is to stick up for Watir-WebDriver.  I firmly believe 
that it's the best way to use WebDriver, and I also believe it has a great 
future.  I'm looking for any insights you have.  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


[wtr-general] watir-webdriver not loading page with ajax correctly?

2012-10-25 Thread RJ
Im not sure if its ajax loading or something else (or their site detecting 
watir?)
But this site (groupme.com) keeps timing out.


def test_post_message_to_groupme
  browser.goto 'http://groupme.com'

  browser.link(:text => 'Log In').click
  browser.text_field(:id => 'session_phone_number').set @my_number
  browser.text_field(:id => 'session_password').set @my_password
  browser.button(:id => 'session_submit').click
  
  ##  tried with and without the hard-coded sleep and/or the 
wait_until_present line below
  sleep 3 
  browser.div(:class => 'page-header').wait_until_present

  assert browser.div(:class => 'page-header').text.include? 'Groups'
end

Timeout::Error: execution expired
C:/Ruby187/lib/ruby/1.8/timeout.rb:64:in `rbuf_fill'
C:/Ruby187/lib/ruby/1.8/net/protocol.rb:134:in `rbuf_fill'
C:/Ruby187/lib/ruby/1.8/net/protocol.rb:116:in `readuntil'
C:/Ruby187/lib/ruby/1.8/net/protocol.rb:126:in `readline'
C:/Ruby187/lib/ruby/1.8/net/http.rb:2028:in `read_status_line'
C:/Ruby187/lib/ruby/1.8/net/http.rb:2017:in `read_new'
C:/Ruby187/lib/ruby/1.8/net/http.rb:1051:in `request'
C:/Ruby187/lib/ruby/1.8/net/http.rb:1037:in `request'
C:/Ruby187/lib/ruby/1.8/net/http.rb:543:in `start'
C:/Ruby187/lib/ruby/1.8/net/http.rb:1035:in `request'

C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/remote/http/default.rb:81:in
 
`response_for'

C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/remote/http/default.rb:43:in
 
`request'

C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/remote/http/common.rb:40:in
 
`call'

C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/remote/bridge.rb:598:in
 
`raw_execute'

C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/remote/bridge.rb:576:in
 
`execute'

C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/remote/bridge.rb:183:in
 
`switchToDefaultContent'

C:/Ruby187/lib/ruby/gems/1.8/gems/selenium-webdriver-2.21.2/lib/selenium/webdriver/common/target_locator.rb:68:in
 
`default_content'

C:/Ruby187/lib/ruby/gems/1.8/gems/watir-webdriver-0.6.1/lib/watir-webdriver/browser.rb:180:in
 
`assert_exists'

C:/Ruby187/lib/ruby/gems/1.8/gems/watir-webdriver-0.6.1/lib/watir-webdriver/elements/element.rb:383:in
 
`locate'

C:/Ruby187/lib/ruby/gems/1.8/gems/watir-webdriver-0.6.1/lib/watir-webdriver/elements/element.rb:362:in
 
`assert_exists'

C:/Ruby187/lib/ruby/gems/1.8/gems/watir-webdriver-0.6.1/lib/watir-webdriver/elements/element.rb:37:in
 
`exists?'

C:/Ruby187/lib/ruby/gems/1.8/gems/watir-webdriver-0.6.1/lib/watir-webdriver/elements/element.rb:296:in
 
`present?'

C:/Ruby187/lib/ruby/gems/1.8/gems/watir-webdriver-0.6.1/lib/watir-webdriver/wait.rb:132:in
 
`wait_until_present'

C:/Ruby187/lib/ruby/gems/1.8/gems/watir-webdriver-0.6.1/lib/watir-webdriver/wait.rb:19:in
 
`until'

C:/Ruby187/lib/ruby/gems/1.8/gems/watir-webdriver-0.6.1/lib/watir-webdriver/wait.rb:132:in
 
`wait_until_present'


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

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


[wtr-general] Watir-webdriver doesnt store all cookies

2012-07-25 Thread Sridhar S
 

When I go to the following link on firefox (V-12), the browser on my Ubuntu 
machine allows me to login normally. 

https://r.espn.go.com/members/v3_1/login?language=en&forwardUrl=&appRedirect=http%3A%2F%2Fgames.espn.go.com

However, if I use watir-webdriver, I get the message: "Cookies must be 
enabled in order to login."

Here is the code to reproduce this issue with Watir:

require 'watir-webdriver'
browser = Watir::browser.new
browser.goto 
"https://r.espn.go.com/members/v3_1/login?language=en&forwardUrl=&appRedirect=http%3A%2F%2Fgames.espn.go.com";
 

You will notice that the browser displays "Cookies must be enabled" error 
message below the "email address or member name" field. When I looked at 
the cookies stored, I noticed that not all cookies that were stored in the 
normal mode are available. I compared this by searching for "go.com" in the 
stored cookies. 

Any idea what would cause the discrepancy in cookies stored between the two 
modes, using the same browser?

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


[wtr-general] watir-webdriver behind proxy error

2012-07-24 Thread leder
Hello all,

I have an issue with 'watir-webdriver'. Windows and FF are configured for 
proxy usage. BTW: IE with 'watir' works fine, but I'd like to see FF 
running :-(

But when I start the following:

 require 'watir-webdriver'

browser = Watir::Browser.new :ff
browser.goto("http://www.google.de";)

I get an Proxy error 502, see below.

And in the settings of the opened Firefox there are the proxy settings set 
to "use system settings"! But it is not going to the webpage!

Any suggestions?

Thanks
Gerrit

-Output of ruby:
  1) Error:
test_login_logoff(TC_article_example):
Selenium::WebDriver::Error::WebDriverError: unexpected response, code=502, 
conte
nt-type="text/html"
-

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

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


[wtr-general] watir webdriver and extjs = split button click problem

2012-04-25 Thread mndude
I have a "split button" that when clicked in the middle or left side will 
perform a default action on that page.  But if clicked on the right side it 
will drop down a menu to select from a set of actions.  I can't get Watir 
webdriver to click and drop down the menu.  It only is able to click and 
perform the default action in the page.

There is a similar item at 
http://dev.sencha.com/deploy/ext-4.1.0-gpl/examples/kitchensink/index.html#basic-toolbar
  
Try the Menu Button drop down

The html of my button is somewhat similar to the link above and I'm having 
the same problem getting Watir webdriver to click on the right side and 
drop down the menu:



Add




Is there a way to get Watir webdriver to click somewhere besides the middle 
of an object?  I wonder if I could click a few pixels to the right of 
center if the menu would appear.  

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

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


[wtr-general] watir webdriver and javascript drop down menu in IE

2012-04-19 Thread mndude
I have a web app with a top menu bar with drop down menus in it driven
by javascript (extjs).  I can easily access the menu items in Firefox
and Chrome.  But IE does not work the same way.  The menu requires
either a mouse hover or click on the top item to drop down and then a
click on the item to be selected.  This is easy and fast in FF,
Chrome:

driver.p( :text => topmenu ).when_present.click
driver.a( :text => submenu ).when_present.click

In IE what happens is that the first click drops down the menu, but
then the menu disappears before the 2nd line can complete the click on
the actual item to be selected.  The 2nd click fails because the item
is, of course, not visible.

Watir webdriver appears to not have the Selenium webdriver actions?
In Selenium webdriver I would try something like this:

driver.action.click(topmenu).click(submenu).perform

Is there a way to access the Selenium webdriver actions in Watir
webdriver?  Or some other solution for IE in this situation?  The
Watir browser object appears to not have an "action" set of methods.

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

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


[wtr-general] watir-webdriver can't find checkboxes

2012-04-06 Thread ggivler
I am relatively new to watir, but I am having a problem finding
checkboxes in a page..

So I wrote a routine that would dig into the divs, find the tables
that contain the checkboxes and it gives me the count of the
checkboxes and a print out of the html of the td...

Here is a sample of the output of my script:


HTML: 
Tag name: td
Checkboxes: 0
Links: 0


As you can see the the input type="Checkbox, is the only thing I can
think is causing an issue... I was under the impression that watir-
webdriver was not case sensitive when looking for checkboxes...

If you need more information let me know...

Here is my ruby code that I am using to create the above output...


  puts "Printing Divs"
  browser.divs.each {
|d|
puts "Checkboxes: #{d.checkboxes.count}"
puts "Tables: #{d.tables.count}"
if d.tables.count > 0
  d.tables.each do |t|
puts "Images in Tables: #{t.images.count}"
puts "Links in Tables: #{t.links.count}"
puts "Checkboxes in Tables: #{t.checkboxes.count}"
puts "Table Elements: #{t.elements}"
t.trs.each {
  |r|
  r.tds.each {
|c|
puts "HTML: #{c.html}"
puts "Tag name: #{c.tag_name}"
puts "Checkboxes: #{c.checkboxes.count}"
puts "Links: #{c.links.count}"
  }
}
#t.checkbox(:name => "ContCategory",:value =>
"AssocEditorChildTypes").value
#t.checkbox(:name => "ContCategory",:value =>
"AssocEditorChildTypes").click
#t.checkbox(:name => "ContCategory",:value =>
"AssocEditorChildTypes").set
  end
end
if d.checkboxes.count > 0
  puts d.html; puts "\n"
end
  }

If someone can point me in the right direction it would be great...

-- 
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-webdriver PageObjects example

2012-03-22 Thread Oscar Rieken
http://rubydoc.info/gems/watir-webdriver/0.5.3/Watir/Element#exists%3F-instance_method



On Thu, Mar 22, 2012 at 12:00 PM, Rick  wrote:

> From the example implementation in
> https://github.com/watir/watir-webdriver/wiki/Page-Objects, the following
> is a class definition on UserPage
>
> class UserPage < BrowserContainer
>   def logged_in?
> logged_in_element.exists?
>   end
>
>   def loaded?
> @browser.title == "Your Profile"
>   end
>
>   private
>
>   def logged_in_element
> @browser.div(:id => "logged-in")
>   endend # UserPage
>
> I don't see exists? in 'logged_in_element.exists?' defined anywhere. Can 
> someone enlighten me?
>
> 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


[wtr-general] watir-webdriver PageObjects example

2012-03-22 Thread Rick
>From the example implementation in 
https://github.com/watir/watir-webdriver/wiki/Page-Objects, the following 
is a class definition on UserPage

class UserPage < BrowserContainer
  def logged_in?
logged_in_element.exists?
  end

  def loaded?
@browser.title == "Your Profile"
  end

  private

  def logged_in_element
@browser.div(:id => "logged-in")
  endend # UserPage

I don't see exists? in 'logged_in_element.exists?' defined anywhere. Can 
someone enlighten me?

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


Re: [wtr-general] watir-webdriver save_screenshot bit depth

2012-03-20 Thread Željko Filipin
On Tue, Mar 20, 2012 at 11:57 AM, Dan  wrote:
> It turns out that firefox and ie provide a 32 bit file, while Chrome
provides a 24 bit file.

In addition to that, I have also noticed that some browser take screen
shots of the entire window (even the part not visible on the page), and
some browsers take screen shots only of the visible part.

Željko
--
watir.com/book - author

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

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


[wtr-general] watir-webdriver save_screenshot bit depth

2012-03-20 Thread Dan
Is there any way to control the bit depth of the screenshot file?  It turns 
out that firefox and ie provide a 32 bit file, while Chrome provides a 24 
bit file.

-- 
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-webdriver vs selenium-webdriver

2012-02-12 Thread Željko Filipin
On Sun, Feb 12, 2012 at 4:36 PM, yawshikwa  wrote:
> The only reason I sometimes still consider selenium-
> webdriver is for access to a cross browser solution such as Sauce
> Labs. I'm not aware that something like that exists for watir yet.

I think a couple of guys from Sauce Labs had a talk last year at Watir Day
(at Selenium Conference) on how watir-webdriver works on their platform.

Željko
--
watir.com/book - author

-- 
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-webdriver vs selenium-webdriver

2012-02-12 Thread Rahul Sharma
This should pretty much answer all your questions: 
http://watirmelon.com/2011/12/03/a-tale-of-three-ruby-automated-testing-apis-redux/

:)
On 12 Feb 2012, at 22:36, yawshikwa wrote:

> Just curious, as I was having a discussion with someone else about
> this topic, but for those here who have directly compared watir-
> webdriver vs selenium-webdriver, what are the reasons you selected one
> over another?
> 
> I prefer watir-webdriver, and one of the main reasons is I feel the
> api allows for more flexibility with object recognition. After having
> used both, I just find watir to be more user friendly and pleasant to
> work with. The only reason I sometimes still consider selenium-
> webdriver is for access to a cross browser solution such as Sauce
> Labs. I'm not aware that something like that exists for watir yet.
> 
> Thought/opinions? 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

Regards,
Rahul Sharma

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

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


[wtr-general] watir-webdriver vs selenium-webdriver

2012-02-12 Thread yawshikwa
Just curious, as I was having a discussion with someone else about
this topic, but for those here who have directly compared watir-
webdriver vs selenium-webdriver, what are the reasons you selected one
over another?

I prefer watir-webdriver, and one of the main reasons is I feel the
api allows for more flexibility with object recognition. After having
used both, I just find watir to be more user friendly and pleasant to
work with. The only reason I sometimes still consider selenium-
webdriver is for access to a cross browser solution such as Sauce
Labs. I'm not aware that something like that exists for watir yet.

Thought/opinions? 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


[wtr-general] watir-webdriver 0.5.2

2012-01-31 Thread Željko Filipin
More information at http://watir.com/2012/02/01/watir-webdriver-0-5-2/

Željko
--
watir.com/book - author

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

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


[wtr-general] Watir-webdriver seeing a null style attribute as "display: none;"

2012-01-17 Thread Abe Heward
On a page I'm testing, I have a div that Firebug shows like this:



That div is a parent of a number of buttons that are displayed or hidden 
depending on circumstance.

When I have watir-webdriver show me the HTML of that div, however, this is 
what it returns:

 

This is not good, because it means that all children of that div are seen 
as hidden, when they're actually not. I need to be able to click those 
buttons.

Does the style="" need to be explicitly made into style="display: block;" 
for watir-webdriver to handle it correctly?

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

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


[wtr-general] [Watir-Webdriver] How to check the existence of scrollbar

2012-01-14 Thread Thien Nguyen
Hi all,

I have a problem about the windows which have static size (cannot be
resizable), it should not have any scrollbar inside, so could anybody
help me to find out the way for checking the existence of scrollbar ?

Btw, I dont know if I can check the windows maybe resizable or not by
Watir script ?

Thanks a lot for your help.

Regards,
Thien

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

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


[wtr-general] Watir-Webdriver Chrome, FF, IE window maximize

2012-01-04 Thread Super Kevy
I'm using webdriver to automate for the big 3 browsers and have the
snippet below to set the screen size to maximum,  Chrome works perfect
with the swtiches option, IE and FF are kind of acceptable hacks.

A) Does anyone have a better way to maximize FF & IE with Webdriver?
B) In Chrome I always get the inline-popup Do you want google chrome
to save your password?.  Is there an elegant way to get rid of that?
Its not a great problem just an annoyance.


def Method_Login(ie,sURL,sBrowserType,sUserName,sPassword)
  puts ' * Method_Login'
  puts ' - Browser type: ' + sBrowserType.to_s
  puts ' - Login: ' + sUserName.to_s
  case sBrowserType
when 'firefox'
  ie = Watir::Browser.new(:firefox)
  ie.window.move_to(0,0)
  ie.window.resize_to(1024,700)
when 'chrome'
  ie = Watir::Browser.new(:chrome, :switches => %w[--start-
maximized] )
when 'ie'
  ie = Watir::Browser.new(:ie)
  ie.window.move_to(0,0)
  ie.window.resize_to(1024,700)
else
  puts ' - FAIL. Browser type not found [ '+sBrowserType+' ]'
  puts ' - Valid browser types: firefox, chrome, ie'
  puts ' - ABORT. '
  stop
  end
  ie.goto(sURL)
  etc...
end

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

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


[wtr-general] watir-webdriver 0.4.1

2011-12-13 Thread Željko Filipin
More information:

http://watir.com/2011/12/13/watir-webdriver-0-4-1/

Željko
--
watir.com/book - author

-- 
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 Webdriver Performance Error

2011-12-06 Thread bis
well basically what you are trying to do with the gem is this
driver.execute_script("return window.performance ||
window.webkitPerformance || window.mozPerformance || window.msPerformance;")
and some formatting to give you the methods...

and what it looks like is that the browser is not allowing you to perform
that. I would check the security settings. you get this same errror when
you run it against a browser that doesn't support webtimings. and since you
are running on windows server its probably permission settings.




2011/12/6 Jason Shelton 

>  I apologize, I did not realize the screenshot of the error was
> insufficient. Below is the the text of the error:
>
>  
> C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-webdriver-performance-0.1.3.1/lib/watir-webdriver-performance.rb:15:in
> 'munge': undefined method 'each_key' for
> # 
>
> from  
> C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-webdriver-performance-0.1.3.1/lib/watir-webdriver-performance.rb:90:in
> 'performance'
>
> Here is the code:
>
> require 'watir-webdriver'
> require 'watir-webdriver-performance'
>
> b = Watir::Browser.new :ie
> b.goto 'http://watir.com'
> puts "Load Time: #{b.performance.summary[:response_time]/1000} seconds."
>
> As I mentioned before, this error only occurs when I use IE 9 as the browser. 
> I am using a Win Server 2008 R2 box. Thanks in advance for any assistance 
> with this issue.
>
> - Shelton
>
>
> --
> From: zeljko.fili...@wa-research.ch
> Date: Tue, 6 Dec 2011 10:47:19 +0100
> Subject: Re: [wtr-general] Watir Webdriver Performance Error
> To: watir-general@googlegroups.com
>
>
> On Tue, Dec 6, 2011 at 7:22 AM, Jason Shelton 
> wrote:
> > I am getting the attached error
>
> 1) Please copy/paste the text of the error. Let me know if you do not know
> how to do that.
> 2) Please provide the code that caused the error.
>
> Željko
> --
> watir.com/book - author
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> watir-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> watir-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com
>

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

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


RE: [wtr-general] Watir Webdriver Performance Error

2011-12-06 Thread Jason Shelton

I apologize, I did not realize the screenshot of the error was insufficient. 
Below is the the text of the error:
 
C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-webdriver-performance-0.1.3.1/lib/watir-webdriver-performance.rb:15:in
 'munge': undefined method 'each_key' for 
#
   from  
C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-webdriver-performance-0.1.3.1/lib/watir-webdriver-performance.rb:90:in
 'performance'
Here is the code:
require 'watir-webdriver'
require 'watir-webdriver-performance'

b = Watir::Browser.new :ie
b.goto 'http://watir.com'
puts "Load Time: #{b.performance.summary[:response_time]/1000} seconds."As I 
mentioned before, this error only occurs when I use IE 9 as the browser. I am 
using a Win Server 2008 R2 box. Thanks in advance for any assistance with this 
issue.- Shelton
From: zeljko.fili...@wa-research.ch
Date: Tue, 6 Dec 2011 10:47:19 +0100
Subject: Re: [wtr-general] Watir Webdriver Performance Error
To: watir-general@googlegroups.com

On Tue, Dec 6, 2011 at 7:22 AM, Jason Shelton  wrote:
> I am getting the attached error
1) Please copy/paste the text of the error. Let me know if you do not know how 
to do that.

2) Please provide the code that caused the error.

Željko
--
watir.com/book - author





-- 

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