<table border="0" cellpadding="0" cellspacing="0" class="A490847cc28c94895bcf96e98abdb2b32209xB">
<tbody>
<tr>
<td style="vertical-align:top">
<table border="0" cellpadding="0" cellspacing="0" class="A490847cc28c94895bcf96e98abdb2b32206" cols="8" style="border-collapse:collapse;">
<tbody>
<tr height="0">
<td style="WIDTH:56.91mm;min-width:56.91mm">
</td>
</tr>
<tr valign="top">
<td class="A490847cc28c94895bcf96e98abdb2b32126c Pe5cd046a24fa44ef80e79727141463c6_1_r7">
<div class="A490847cc28c94895bcf96e98abdb2b32126">
Total Tutorials
</div>
</td>
<td class="A490847cc28c94895bcf96e98abdb2b32144c Pe5cd046a24fa44ef80e79727141463c6_1_r7 Pe5cd046a24fa44ef80e79727141463c6_1_r6">
<div class="A490847cc28c94895bcf96e98abdb2b32144">
<div style="WIDTH:19.98mm;">
<div class="A490847cc28c94895bcf96e98abdb2b32141">
<span class="A490847cc28c94895bcf96e98abdb2b32140">
Attendance
</span>
</div>
<div class="A490847cc28c94895bcf96e98abdb2b32143">
<span class="A490847cc28c94895bcf96e98abdb2b32142">
%
</span>
</div>
</div>
</div>
</td>
</tr>
<tr valign="top">
<td class="A490847cc28c94895bcf96e98abdb2b32149cl Pe5cd046a24fa44ef80e79727141463c6_1_r5" style="HEIGHT:6.35mm;">
<div class="A490847cc28c94895bcf96e98abdb2b32149">
CSFf
</div>
</td>
<td class="A490847cc28c94895bcf96e98abdb2b32153cr">
<div class="A490847cc28c94895bcf96e98abdb2b32153">
9
</div>
</td>
<td class="A490847cc28c94895bcf96e98abdb2b32157cr">
<div class="A490847cc28c94895bcf96e98abdb2b32157">
7
</div>
</td>
<td class="A490847cc28c94895bcf96e98abdb2b32161cl">
<div class="A490847cc28c94895bcf96e98abdb2b32161">
0
</div>
</td>
<td class="A490847cc28c94895bcf96e98abdb2b32165cl">
<div class="A490847cc28c94895bcf96e98abdb2b32165">
0
</div>
</td>
<td class="A490847cc28c94895bcf96e98abdb2b32169cr">
<div class="A490847cc28c94895bcf96e98abdb2b32169">
4.0000
</div>
</td>
<td class="A490847cc28c94895bcf96e98abdb2b32173cr">
<div class="A490847cc28c94895bcf96e98abdb2b32173">
4.0000
</div>
</td>
<td class="A490847cc28c94895bcf96e98abdb2b32177cr Pe5cd046a24fa44ef80e79727141463c6_1_r6">
<div class="A490847cc28c94895bcf96e98abdb2b32177">
84.62
</div>
</td>
I am working with python selenium web driver.I want the loop through the table for the text inside the td inside tr tag like this
But problem here is the class name is always changing and xpath and css_selector is also changing.example xpath will be like this .//*[@id='P825048fc6b084257a601fde4805c8c33_1_oReportCell']/table/tbody/tr[2]/td/table/tbody/tr/td/table/tbody/tr[3]/td[8]/div
But the id is changing always.so couldn't apply driver.find_element_by_id().I think regular expressions or BeautifulSoup can be used to solve this.I am beginner to regex.So is there any way this could be solved?
"//*[contains(@id,'oReportCell')]", I presume only the starting numbers change?//*[contains(@id,'oReportCell')]/table/tbody/tr[2]/td/table/tbody/tr/td/table/tbody/tr[3]/td[1]