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

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

[wtr-general] Using watir with html 5

2013-04-11 Thread gary
Hi all, Has anyone experience of using the header and footer tags with watir and how to use them to help identify links within them? div id=footer has been replaced by footer but the latest version of watir doesn't appear to work with the new tags? Hopefully this is not too vague?? Many

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

2013-04-11 Thread Željko Filipin
On Thu, Apr 11, 2013 at 7:02 PM, gary mrgaryengl...@googlemail.com wrote: Hopefully this is not too vague?? It is. Please share your code and error messages, if any. Željko -- https://leanpub.com/watirbook -- -- Before posting, please read http://watir.com/support. In short: search before