Re: [wtr-general] undefined method `exists?' for link (PageObject gem)

2012-11-02 Thread Justin Ko
The page object gem automatically creates a method for checking existence - see the docs http://rubydoc.info/github/cheezy/page-object/master/PageObject/Accessors#link-instance_method. So for: link(:signout, :text => 'Sign Out') There should be able to do: signout? - Justin Ko On Friday, N

Re: [wtr-general] Random numbers

2012-11-02 Thread John Fitisoff
I hven't had any coffee yet but could you use rand?  either directly or to generate a random index for an array From: Adrian Killens To: watir-general@googlegroups.com Sent: Friday, November 2, 2012 3:00 AM Subject: [wtr-general] Random numbers How would

[wtr-general] Re: Flash objects identification in Watir

2012-11-02 Thread Jarmo Pertman
They can't be identified by Watir. Watir can only interact with html elements. Jarmo Pertman - IT does really matter - http://itreallymatters.net On Friday, November 2, 2012 8:15:29 AM UTC+2, Inder Pal wrote: > > hi all, > I am using Watir for automation testing of our website. Recently >

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

Re: [wtr-general] Random numbers

2012-11-02 Thread Oscar Rieken
This is really more a ruby question than a watir one. I suggest you look into http://www.ruby-doc.org/core-1.9.3/Array.html#method-i-sample number_from_array = %w{2 3 9 55 11} number_from_array.sample On Fri, Nov 2, 2012 at 6:00 AM, Adrian Killens wrote: > How would you write something to gene

[wtr-general] Random numbers

2012-11-02 Thread Adrian Killens
How would you write something to generate a random number that aren't sequential. E.g. generate a random number picked from these four: 10, 9, 55, 3 Cheers Aidy -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com h

Re: [wtr-general] undefined method `exists?' for link (PageObject gem)

2012-11-02 Thread Željko Filipin
Try this: Then /^I should have access to my account$/ do on(LoginPage).signout_element.should exist end Explanation: on(LoginPage).signout # clicks the link on(LoginPage).signout_element # returns the link More information: https://github.com/cheezy/page-object/wiki/Elements Željko -- filip

[wtr-general] Re: How To Find The Absolute Links Behind Javascript...

2012-11-02 Thread Leandro Duarte
Hi, did you find a solution for this one? Thanks a lot, Leandro Em segunda-feira, 10 de março de 2008 10h38min42s UTC+1, Deb escreveu: > Here Is The page Code > > > onClick="javascript:downloadInvestorReports('20080225');return > false;">February 25, 2008 > onClick="javascript:dow

[wtr-general] does watir classic, not webdriver support IE 10 ?

2012-11-02 Thread bobby sharma
does watir classic support IE 10 on win 8 box ? -- Before posting, please read http://watir.com/support. 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 on Windows XP Pro Sp3 doesn't work

2012-11-02 Thread Dinanath Basumatary
Downgrading win-process works On Saturday, 8 September 2012 03:19:04 UTC+5:30, Željko Filipin wrote: > > On Fri, Sep 7, 2012 at 5:15 PM, Emanuele Mandaglio > > > wrote: > > ffi (1.1.5) > > > C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.1.0/lib/watir-classic/browser.rb:89:in > > `ev