ruby - How to get width of an element with xpath Watir in pixels? -


I have a problem getting the width of the "tobis" element with xpath watir. I have this code:

  browser.element (: xpath, "// table [@ onselectstart = 'return false']"). Tbody.tr (: Index, 2) .td. This code gives me "auto", which is fine because this attribute should be set to "auto" so that it is automatically located on the web, but if I look at the firebug, I show the width of the element like i Can I get this value in pixels?   

Try to do something (not tested): Browser.Limit ((xpath, "// table [@ onselectstart = 'return false']). Tbody.tr (: index, 2) .td.table.tbody.wd.size width

See the documentation for more information, and.

Comments

Popular posts from this blog

Out of index C/C++ -

regex - PatternSyntaxException: while using String.ReplaceAll function in java? -

java - Projects which are accessed via multiple (different) IDEs: Ant or Maven? -