You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to extract <tr>s whose child <td class="a"> contains a value greater than 7. I would also like to throw away <td class="c"> since it's irrelavant. The result should be like
And finally the result is extracted to text "10 ...".
Is this possible? How should I do it?
I know that I can extract <tr> with XPATH //tr[td[@class="a"]/text()>7]. But how do I remove <td class="c">?
XPath seems unable to do that. Will "extract text" help? But the html tags are already thrown away when the extraction happens. Maybe I should just remove all <td class="c"> using "Execute JavaScript before change detection"?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For example, from the web page
I want to extract
<tr>
s whose child<td class="a">
contains a value greater than 7. I would also like to throw away<td class="c">
since it's irrelavant. The result should be likeAnd finally the result is extracted to text "10 ...".
Is this possible? How should I do it?
I know that I can extract
<tr>
with XPATH//tr[td[@class="a"]/text()>7]
. But how do I remove<td class="c">
?XPath seems unable to do that. Will "extract text" help? But the html tags are already thrown away when the extraction happens. Maybe I should just remove all
<td class="c">
using "Execute JavaScript before change detection"?Many thanks!
Beta Was this translation helpful? Give feedback.
All reactions