Hello everyone,
I'm trying to scrape some values from all the <tr>
elements (in this example below .display and .desc).
I'm using the Click Selector for the 3rd <tr>
element in the example.
Is there a way to group both selector & click selector values in one row?
In the example below both the clicked <tr>
and its newly appeared sibling in one chunk containing .display (from the clicked element) and .desc (from the one that just appeared)?
<tr class="item expandable">
<td><span class="display">07.08.</span></td>
<td class="desc">I need to scrape this</span></td>
<td class="amount">
<fin-amount>-57.00</fin-amount>
<span class="currency"></span>
</td>
</tr>
/*****************/
<tr class="item expandable">
<td><span class="display">07.08.</span></td>
<td class="desc">
NOT the actual value I need to get
</td>
<td class="amount">
<fin-amount>-57.00</fin-amount>
<span class="currency">USD</span>
</td>
</tr>
/* This will reveal itself upon clicking on the previous <tr> */
<tr class="item expandable detail">
<td class="desc">
I need to scrape this along with some values of the previous TR sibling
</td>
</tr>
/****************/
<tr class="item expandable">
<td><span class="display">07.08.</span></td>
<td class="desc">I need to scrape this</span></td>
<td class="amount">
<fin-amount>-57.00</fin-amount>
<span class="currency"></span>
</td>
</tr>
Thanks in advance