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

2012-11-08 Thread Barry Horgan
Thanks for the suggestions, many ways to skin a cat! Oscar, I understand your point about an element existing but can still be not visible. Interestingly, both 'should_be present' method caused problems: undefined method `present?' for []:Array (NoMethodError) Both

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

2012-11-01 Thread Barry Horgan
as to why this should happen? Thanks, Barry. ERROR: Scenario: Registered user logs in to account And a user exists When I enter my login details Then I should have access to my account undefined method `exists?' for []:Array

Re: [wtr-general] select_list issue - wrong number of arguments (1 for 0) (ArgumentError)

2012-10-04 Thread Barry Horgan
event is going to make that visible. Watir won't interact with an element that isn't visible to the user, because a real user wouldn't be able to do that either. On Wednesday, October 3, 2012 1:49:52 AM UTC-4, Barry Horgan wrote: I notice that the source html that the select section

Re: [wtr-general] select_list issue - wrong number of arguments (1 for 0) (ArgumentError)

2012-10-02 Thread Barry Horgan
':- https://spreadsheets.google.com/spreadsheet/viewform?formkey=dGtlWGJjbWhuSlAyMHhLdXc2eE0wX2c6MQ Barry. On Monday, September 24, 2012 9:02:25 AM UTC+10, Barry Horgan wrote: still no resolution! get the following error using this code:- def select_redemption_option puts

[wtr-general] Re: Selecting Dropdown via Value

2012-09-27 Thread Barry Horgan
Hi Adrian, could you post the code you used to solve this? I have been trying to get a solution for days and cannot figure out how to select an option from a drop down menu, it is driving me crazy!!! thanks, Barry. On Tuesday, September 25, 2012 9:30:33 PM UTC+10, Adrian Killens wrote

Re: [wtr-general] select_list issue - wrong number of arguments (1 for 0) (ArgumentError)

2012-09-23 Thread Barry Horgan
, waiting for {:tag_name=select, :id=redeumption} to become present (Watir::Wait::TimeoutError) I can see the test running, the drop down is clicked and the options display. On Friday, September 21, 2012 6:30:01 PM UTC+10, Željko Filipin wrote: On Fri, Sep 21, 2012 at 4:03 AM, Barry Horgan

Re: [wtr-general] select_list issue - wrong number of arguments (1 for 0) (ArgumentError)

2012-09-20 Thread Barry Horgan
on a specific value. Works through Selenium IDE using 'select | id=redeumption | label=Single (@driver.find_element(:id, redeumption)).select_by(:text, Single) On Wednesday, September 19, 2012 8:58:38 PM UTC+10, Željko Filipin wrote: On Wed, Sep 19, 2012 at 8:02 AM, Barry Horgan bho

[wtr-general] select_list issue - wrong number of arguments (1 for 0) (ArgumentError)

2012-09-12 Thread Barry Horgan
Hi, i have been struggling to get this to work today, looked through a lot of examples and previous threads but still unable to find a solution. I know it must be something simple - i just can see it! I am using Cheezy's page-object gem trying to select an option from a drop down list on the

Re: [wtr-general] Passing two arguments from feature file to step definition

2012-08-12 Thread Barry Horgan
thanks Željko, that works for me. On Friday, July 20, 2012 6:49:48 PM UTC+10, Željko Filipin wrote: On Fri, Jul 20, 2012 at 2:22 AM, Barry Horgan bho...@spreets.comjavascript: wrote: When I add credits to users account credit_amount expiry_date ... Step definition: def

[wtr-general] Passing two arguments from feature file to step definition

2012-07-20 Thread Barry Horgan
i am having a problem with a feature file that i am currently working on, i want to pass two arguments from one line of the feature file (from table) to my step definition - is this possible? any of the examples i have looked at in The Cucumber Book seem to have one argument per line. Feature

[wtr-general] Re: Segmentation fault when using thread, watir, and Tk

2012-01-13 Thread Barry
things from a console.  From: Barry barry...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Wednesday, January 11, 2012 1:04 PM Subject: [wtr-general] Segmentation fault when using thread, watir, and Tk I use Tk to create GUI to invoke

[wtr-general] Re: use shoes with watir

2012-01-11 Thread Barry
Thanks. I will just use Tk. Barry On Jan 10, 10:35 am, Dave McNulla mcnu...@gmail.com wrote: Sounds like shoes has an unsupportable design. You could try to fix that, but it's probably a lot of work. Your alternative is to use an older ruby/watir. Good luck Dave -- Before posting

[wtr-general] Segmentation fault when using thread, watir, and Tk

2012-01-11 Thread Barry
I use Tk to create GUI to invoke watir. When I click a button, IE window should be opened. To avoid the freezing UI, I put it into a new thread. This worked until everything finished and I closed Tk window. There will be segmentation fault. I am not familar with Thread in Ruby. Should I clean

[wtr-general] Re: use shoes with watir

2012-01-10 Thread Barry
But shoes has a ruby intergrated inside itself. For that ruby, there is no gem executable. On Jan 10, 12:43 am, Dave McNulla mcnu...@gmail.com wrote: can't you just run c:\ gem -v to see the version you are using of gems? And if you are using the wrong one, run c:\ gem update --system Dave

[wtr-general] Re: watir::IE multiple windows always connect to same session

2012-01-09 Thread Barry
if other people could open IE windows in a way as watir-webdriver for Firefox. Barry On Jan 9, 2:58 am, Chuck van der Linden sqa...@gmail.com wrote: if you open multiple IE sessions manually do they share cookies?  if so this is a fundimental IE thing and there's not much we are likely

[wtr-general] Re: watir::IE multiple windows always connect to same session

2012-01-09 Thread Barry
-want-two-cookies Caveat: I haven't tried these instructions. I think I got something working briefly back in 2007 but I ended up not using it as I didn't need to test something like a shopping cart.  From: Barry barry...@gmail.com To: Watir General watir

[wtr-general] Re: watir::IE multiple windows always connect to same session

2012-01-09 Thread Barry
to figure out which window to attach to. i think someone suggested VM as the solution. It might be easier to set up multiple VM instances.  From: Barry barry...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Monday, January 9, 2012 10:01 AM

[wtr-general] use shoes with watir

2012-01-09 Thread Barry
? Thanks, Barry -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com

[wtr-general] Re: watir::IE multiple windows always connect to same session

2012-01-08 Thread Barry
Nobody has this problem? All your IE windows have different sessions with watir? Barry On Jan 6, 10:34 pm, Barry barry...@gmail.com wrote: I tried to open two IE windows at the same time. In watir-webdriver, Firefox alway open them in seperate session. But in Watir, the two IE windows share

[wtr-general] watir::IE multiple windows always connect to same session

2012-01-06 Thread Barry
, new. But all didn't work. require watir browser = Watir::IE.new browser.goto(link) . Thanks! Barry -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general

[wtr-general] password field problem in firefox

2011-12-21 Thread Barry
I tried to log into the website with Watir. But the password field has error [remote server] resource://fxdriver/modules/atoms.js:9380:in `unknown': Element is no longer attached to the DOM Selenium::WebDriver::Error::StaleElementReferenceError). How to solve this problem? require watir-webdriver

[wtr-general] Re: password field problem in firefox

2011-12-21 Thread Barry
It works!! Thanks for your quick response! I set the sleep() because I thought the webpage was not fully loaded. Thanks again. Barry On Dec 21, 10:44 pm, Chuck van der Linden sqa...@gmail.com wrote: Why the long sleep after setting the address? for the password, the field is reacting