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

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -