Re: [wtr-general] Re: :after? and :before? methods not supported for all elements?
I've never actually used :after? or :before? either. We are still reporting issues in Jira, which does need some maintenance soon. Charley Baker blog: http://blog.charleybaker.org/ Lead Developer, Watir, http://watir.com QA Architect, Gap Inc Direct On Thu, Jan 21, 2010 at 1:02 PM, marekj wrote: > Then this :after? usage looks like a bug. > Zeljko, do we still use jira for that? > Where should we log and track this issue? jira? lighthouse? github? > thoughts please? > > marekj > > Watirloo: Semantic Page Objects in UseCases > http://github.com/marekj/watirloo/ > Support Watir Project http://pledgie.com/campaigns/2982 > > > > On Thu, Jan 21, 2010 at 6:38 AM, Željko Filipin > wrote: > > On Thu, Jan 21, 2010 at 9:48 AM, Jarmo Pertman > wrote: > >> then there is an example of using :after? (although not :before?, > >> though this is also available) > > > > I think :before? is deprecated because it did not work. > > > >> In other words - it works okay with span, but not with input field. Is > >> there anywhere most up to date documentation so everyone would know if > >> it's supported or not? If there is some outdated documentation, can it > >> be deleted from the web? > > > > Wiki should be up to date. If something is wrong, please fix it. If you > need > > any help with the wiki, just let me know. > > > > These are the pages that mention :after? > > > > > http://wiki.openqa.org/display/WTR/Watir+Methods+Supported+by+HTML+Element > > http://wiki.openqa.org/display/WTR/How+and+What > > > http://wiki.openqa.org/display/WTR/Ways+Available+To+Identify+HTML+Element > > > > At > > > http://wiki.openqa.org/display/WTR/Watir+Methods+Supported+by+HTML+Element > > you can mark elements that work with :after?. For now, only link is > marked > > as supported. > > > > Željko > > -- > > watir.com - community manager > > watirpodcast.com - host > > > > > > > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Watir General" group. > > To post to this group, send email to watir-general@googlegroups.com > > Before posting, please read the following guidelines: > > http://wiki.openqa.org/display/WTR/Support > > To unsubscribe from this group, send email to > > watir-general-unsubscr...@googlegroups.com > > For more options, visit this group at > > http://groups.google.com/group/watir-general > > > > -- > You received this message because you are subscribed to the Google Groups > "Watir General" group. > To post to this group, send email to watir-general@googlegroups.com > Before posting, please read the following guidelines: > http://wiki.openqa.org/display/WTR/Support > To unsubscribe from this group, send email to > watir-general-unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/watir-general > -- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
Re: [wtr-general] Re: :after? and :before? methods not supported for all elements?
Then this :after? usage looks like a bug. Zeljko, do we still use jira for that? Where should we log and track this issue? jira? lighthouse? github? thoughts please? marekj Watirloo: Semantic Page Objects in UseCases http://github.com/marekj/watirloo/ Support Watir Project http://pledgie.com/campaigns/2982 On Thu, Jan 21, 2010 at 6:38 AM, Željko Filipin wrote: > On Thu, Jan 21, 2010 at 9:48 AM, Jarmo Pertman wrote: >> then there is an example of using :after? (although not :before?, >> though this is also available) > > I think :before? is deprecated because it did not work. > >> In other words - it works okay with span, but not with input field. Is >> there anywhere most up to date documentation so everyone would know if >> it's supported or not? If there is some outdated documentation, can it >> be deleted from the web? > > Wiki should be up to date. If something is wrong, please fix it. If you need > any help with the wiki, just let me know. > > These are the pages that mention :after? > > http://wiki.openqa.org/display/WTR/Watir+Methods+Supported+by+HTML+Element > http://wiki.openqa.org/display/WTR/How+and+What > http://wiki.openqa.org/display/WTR/Ways+Available+To+Identify+HTML+Element > > At > http://wiki.openqa.org/display/WTR/Watir+Methods+Supported+by+HTML+Element > you can mark elements that work with :after?. For now, only link is marked > as supported. > > Željko > -- > watir.com - community manager > watirpodcast.com - host > > > > > -- > You received this message because you are subscribed to the Google Groups > "Watir General" group. > To post to this group, send email to watir-general@googlegroups.com > Before posting, please read the following guidelines: > http://wiki.openqa.org/display/WTR/Support > To unsubscribe from this group, send email to > watir-general-unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/watir-general > -- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
Re: [wtr-general] Re: :after? and :before? methods not supported for all elements?
On Thu, Jan 21, 2010 at 9:48 AM, Jarmo Pertman wrote: > then there is an example of using :after? (although not :before?, > though this is also available) I think :before? is deprecated because it did not work. > In other words - it works okay with span, but not with input field. Is > there anywhere most up to date documentation so everyone would know if > it's supported or not? If there is some outdated documentation, can it > be deleted from the web? Wiki should be up to date. If something is wrong, please fix it. If you need any help with the wiki, just let me know. These are the pages that mention :after? http://wiki.openqa.org/display/WTR/Watir+Methods+Supported+by+HTML+Element http://wiki.openqa.org/display/WTR/How+and+What http://wiki.openqa.org/display/WTR/Ways+Available+To+Identify+HTML+Element At http://wiki.openqa.org/display/WTR/Watir+Methods+Supported+by+HTML+Elementyou can mark elements that work with :after?. For now, only link is marked as supported. Željko -- watir.com - community manager watirpodcast.com - host -- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
Re: [wtr-general] Re: :after? and :before? methods not supported for all elements?
I've never needed to do this type of access for text_field container.text_field(:after? => (element)) is Watir supposed to conform to this syntax? have you tried a comma instead of hash? container.text_field(:after?, (element)) yeah, looking at the code it appers: in span we use TaggedElementLocator while the text_field uses InputElementLocator and they both use diff def match? implementations. Can you provide the html you test against? (well, a relevant snippet) and if indeed this syntax should be the way to access textfield then please open an issue marekj Watirloo: Semantic Page Objects in UseCases http://github.com/marekj/watirloo/ Support Watir Project http://pledgie.com/campaigns/2982 On Wed, Jan 20, 2010 at 8:53 AM, Jarmo Pertman wrote: > Sorry, stacktrace got truncated. Here is full one: > c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/locator.rb:127:in > `before?': wrong number of arguments (0 > for 1) (ArgumentError) > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > locator.rb:127:in `send' > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > locator.rb:127:in `match?' > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > locator.rb:112:in `locate' > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > locator.rb:110:in `each' > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > locator.rb:110:in `locate' > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > locator.rb:108:in `catch' > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > locator.rb:108:in `locate' > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > locator.rb:105:in `each' > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > locator.rb:105:in `locate' > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > container.rb:742:in `locate_input_element' > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > input_elements.rb:5:in `locate' > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > element.rb:49:in `assert_exists' > from (eval):2:in `html' > from S:/ui-tests/blahhh.rb:16 > > -- > You received this message because you are subscribed to the Google Groups > "Watir General" group. > To post to this group, send email to watir-general@googlegroups.com > Before posting, please read the following guidelines: > http://wiki.openqa.org/display/WTR/Support > To unsubscribe from this group, send email to > watir-general-unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/watir-general > -- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general