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
Hi, I can't figure this out. I am trying to verify a links exists on a page, after user logs in, using .exists? method. It works when I use @browser.link(:text = Sign Out) . to define the element but i want define link using PageObjedt gem using link(:signout, :text = 'Sign Out') Any ideas as

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