Re: [wtr-general] Using watir with html 5

2013-04-15 Thread gary
if @b.footer(:index, 1).exists? puts yeah else puts nay end undefined method `footer' for nil:NilClass (NoMethodError) On Thursday, 11 April 2013 18:07:32 UTC+1, Željko Filipin wrote: On Thu, Apr 11, 2013 at 7:02 PM, gary mrgary...@googlemail.comjavascript: wrote: Hopefully this is

Re: [wtr-general] Using watir with html 5

2013-04-15 Thread Željko Filipin
On Mon, Apr 15, 2013 at 8:56 AM, gary mrgaryengl...@googlemail.com wrote: if @b.footer(:index, 1).exists? undefined method `footer' for nil:NilClass (NoMethodError) The error message says @b variable is not defined. Željko -- -- Before posting, please read http://watir.com/support. In

Re: [wtr-general] Using watir with html 5

2013-04-15 Thread Oscar Rieken
watir-classic = http://rubydoc.info/github/watir/watir-classic/Watir/Container watir-webdriver = http://watir.github.io/watir-webdriver/doc/Watir/Container.html they both contain footer(s) and header(s) On Mon, Apr 15, 2013 at 6:02 AM, Željko Filipin zeljko.fili...@gmail.comwrote: On Mon, Apr

Re: [wtr-general] Using watir with html 5

2013-04-15 Thread gary
Sorry guys, my bad, wrong index. Should've been using @b.footer(:index, 0).exists? thanks anyway, G On Monday, 15 April 2013 13:11:31 UTC+1, Oscar.Rieken wrote: watir-classic = http://rubydoc.info/github/watir/watir-classic/Watir/Container watir-webdriver =

Re: [wtr-general] Using watir with html 5

2013-04-15 Thread Željko Filipin
On Mon, Apr 15, 2013 at 3:25 PM, gary mrgaryengl...@googlemail.com wrote: Should've been using @b.footer(:index, 0).exists? No. You should define @b variable _before_ you use it. Show us more code so we will be able to help you more. Željko -- -- Before posting, please read

[wtr-general] How do I set an input MULTIPLE files with Watir?

2013-04-15 Thread Karoline Leite
Hi ! I'm trying to use an INPUT FILE, but I'm receiving error like unable to locate {:name=original, :tag_name=input, :type=file} My page has an DIV with an FORM, and the FORM has an INPUT FILE element. The input file has an attribute MULTIPLE... I'm trying: *@browser.div(:class, ui-dialog

[wtr-general] Re: How do I set an input MULTIPLE files with Watir?

2013-04-15 Thread Dan
What about just the below? @browser.file_field(:name = original).when_present.set *my_image* On Monday, April 15, 2013 11:07:40 AM UTC-4, Karoline Leite wrote: Hi ! I'm trying to use an INPUT FILE, but I'm receiving error like unable to locate {:name=original, :tag_name=input, :type=file}

Re: [wtr-general] How do I set an input MULTIPLE files with Watir?

2013-04-15 Thread Željko Filipin
On Mon, Apr 15, 2013 at 5:07 PM, Karoline Leite karolxavierle...@gmail.comwrote: How do I set this input file ? This worked for me: browser.file_field(:name = original).set /path/to/file Željko -- https://leanpub.com/watirbook -- -- Before posting, please read http://watir.com/support. In

Re: [wtr-general] Using watir with html 5

2013-04-15 Thread Chuck van der Linden
On Monday, April 15, 2013 6:25:40 AM UTC-7, gary wrote: Sorry guys, my bad, wrong index. Should've been using @b.footer(:index, 0).exists? thanks anyway, G Yes, zero based indexing these days. might also have been good to include where you created @b although in the context of watir

Re: [wtr-general] Watir and Jenkins

2013-04-15 Thread Chuck van der Linden
On Friday, April 12, 2013 2:04:38 PM UTC-7, Joe Fl wrote: okay, I have solved my problem. I found it here http://stackoverflow.com/questions/10983307/jruby-watir-is-hanging-when-launching-browser We originally had done it for our cukes. Thanks for everyones help though. Glad you got it

[wtr-general] Re: How do I set an input MULTIPLE files with Watir?

2013-04-15 Thread Chuck van der Linden
Two potential solutions 1) ask the developer what action unhides the element so that a normal user can interact with it.. e.g. mouseover? Execute that action first, then set the value 2) use execute_script to execute some jquery or other JS code to change the style on that element so that

Re: [wtr-general] Re: JSON API using cucumber and watir webdriver

2013-04-15 Thread Chuck van der Linden
Thanks for the heads up on that... (dammit) I think Z is already checking with the Kondoot folks to try and figure out what happened to our videos On Thursday, April 11, 2013 5:02:25 AM UTC-7, Oscar.Rieken wrote: I agree with chuck to me it seems testing a webservice with a tool made for

[wtr-general] Re: Watir webdriver - Autoit

2013-04-15 Thread Chuck van der Linden
For a true popup the link given earlier is what is recommended. there are many ways to create something that looks like a popup but is just part of the DOM, you can usually tell those because the developer tools will 'see' them (e.g. you can right click and inspect element) for those you