In my sent message list, I am trying to display the subject fields of all messages using Selenium and JavaScript (not Java) for coding.
Here is the code snippet:
<table class="messages">
<tbody><tr class="section-heading">
<th>
<span class="screenreader-only">Delete</span>
</th>
<th>To</th>
<th>Subject</th>
<th>Sent</th>
</tr>
<tr role="row" id="message-k-s-10043496" tabindex="0" class="message"><td class="mark-for-delete keep-column">
<div class="mark-container">
<input type="checkbox" class="select-message" title="message-selection">
</div>
</td>
<td class="message-metadata to">
NKPContactMbrSvcs
</td>
<td class="message-metadata bottom">
<div class="from mobile-only">
From: <span class="name">Sherlock Robin</span>
</div>
<div class="subject">
Other Questions and Comments
</div>
<div class="from desktop-only">
From: <span class="name">Sherlock Robin</span>
</div>
</td>
<td class="message-metadata keep-column">
<div class="date-received">4:54 PM</div>
</td>
I have a limit of displaying 10 list items on the screen at once.