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.

Reply via email to