Issue Details (XML | Word | Printable)

Key: WTR-420
Type: New Feature New Feature
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Alexey
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Watir

To make a method to fetch only visible text from (sub)elements

Created: 07/Feb/10 11:42 AM   Updated: 07/Feb/10 11:42 AM
Component/s: HTML Controls, Table
Affects Version/s: 1.6.2
Fix Version/s: None

Environment: Win2003, Watir 1.6.2, Ruby 1.8.6


 Description  « Hide

For example we have the following html code:

<table>
  <tr>
    <td id="myelement">
      <div>Text 1</div>
      <div style="display:none;">Text 2</div>
    </td>
  </tr>
</table>

with calling

txt=browser.cell(:id => "myelement").innerText()

we will have txt="Text 1Text 2"
But second div is invisible and user can see only "Text 1".
It is needed to fetch only visible text with new method getVisibleText()



Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.