It was a comment to someone else about another conversation. All of the code examples in guides and blog posts on the Watir site should be copy/pasted from code that's been actually verified in our project.
And the code I wrote for the blog does not do that. :( Thanks for pointing it out, it's a good reminder for me not to cut corners when I write these things. :) On Thursday, August 17, 2017 at 12:29:21 PM UTC-5, [email protected] wrote: > > > *See @js ? This is what I get for not copy/pasting the specs I write into > the documentation / blogs, like I told you to do. :-D* > > I don't understand what you have written here > > *Yeah, I think column header should return text and it currently does not. > This would fix that: https://github.com/watir/watir/pull/628 > <https://github.com/watir/watir/pull/628>* > *So maybe soon this will work. :-/* > > Okay, that's great! > > > On Thursday, August 17, 2017 at 10:30:24 PM UTC+5:30, Titus Fortner wrote: >> >> See @js ? This is what I get for not copy/pasting the specs I write into >> the documentation / blogs, like I told you to do. :-D >> >> Yeah, I think column header should return text and it currently does not. >> This would fix that: https://github.com/watir/watir/pull/628 >> So maybe soon this will work. :-/ >> >> On Thu, Aug 17, 2017 at 2:29 AM, <[email protected]> wrote: >> >>> Titus, >>> cell_name = browser.td(text: "John Smith") >>> cell_name.column_header >>> >>> # => "Full Name" >>> >>> >>> >>> It's not returning the string(Full Name) as you have explained, it's >>> returning table row object. >>> >>> >>> >>> On Thursday, August 17, 2017 at 12:42:40 PM UTC+5:30, Titus Fortner >>> wrote: >>> >>>> Good catch. Only a tr can have a cell method. >>>> The correct call is therefore: >>>> browser.td(text: "John Smith").column_header >>>> >>>> I'll update the blog post about it. >>>> >>>> >>>> On Thursday, August 17, 2017 at 1:49:37 AM UTC-5, >>>> [email protected] wrote: >>>>> >>>>> Lastest version of WATIR has the facility interacting the table in a >>>>> different way >>>>> >>>>> # Get the title of the first row for the located cell >>>>> cell_name = browser.cell(text: "John Smith") >>>>> cell_name.column_header >>>>> >>>>> >>>>> But when I try to write the code as given below, >>>>> >>>>> >>>>> cell_name = @b.cell(text: " 349") >>>>> puts cell_name.column_header >>>>> >>>>> >>>>> It throws the following error >>>>> >>>>> >>>>> JavaScript error: http:// >>>>> d1qsl9m0ul9cce.cloudfront.net/js/min-cycle-expand-121114.js, line 2: >>>>> Error: Syntax error, unrecognized expression: 'h3.expand:first' >>>>> JavaScript warning: http:// >>>>> pagead2.googlesyndication.com/pagead/js/lidar.js, line 2: mutating >>>>> the [[Prototype]] of an object will cause your code to run very slowly; >>>>> instead create the object with the correct initial [[Prototype]] value >>>>> using Object.create >>>>> JavaScript error: http:// >>>>> assets.adobedtm.com/7f4f507b059aa0b92e47c370242bd176d12a111f/satelliteLib-ee9fa188e6c905c33df5c26f5843db7c7c178b3b.js, >>>>> >>>>> line 12: TypeError: this.iframe is null >>>>> C:/Users/rajagopalan.m/RubymineProjects/SeleniumLearning/Contact/ >>>>> Example1.rb:11:in `execute'JavaScript error: , line 0: uncaught >>>>> exception: [object Object] >>>>> JavaScript error: , line 0: uncaught exception: [object Object] >>>>> JavaScript error: , line 0: uncaught exception: [object Object] >>>>> JavaScript error: , line 0: uncaught exception: [object Object] >>>>> JavaScript error: , line 0: uncaught exception: [object Object] >>>>> JavaScript error: , line 0: uncaught exception: [object Object] >>>>> JavaScript error: , line 0: uncaught exception: [object Object] >>>>> JavaScript error: , line 0: uncaught exception: [object Object] >>>>> : undefined method `cell' for #<Watir::Browser:0x2cb3ab8> >>>>> (NoMethodError) >>>>> from >>>>> C:/Users/rajagopalan.m/RubymineProjects/SeleniumLearning/Contact/Example1.rb:16:in >>>>> >>>>> `<top (required)>' >>>>> >>>>> >>>>> >>>>> Can you guide me how to use this syntax? >>>>> >>>>> >>>>> >>>>> -- >>> -- >>> Before posting, please read http://watir.com/support. In short: search >>> before you ask, be nice. >>> >>> [email protected] >>> http://groups.google.com/group/watir-general >>> [email protected] >>> >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "Watir General" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected] --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
