python selenium 使用css定位到表格最后一行
<div id="content" class="topbg3"><div class="maycenter">
<div class="mayleft">
<script type="text/javascript"> $(document).ready(function(){ $('.maylan_1_1').addClass('maylan_hover'); }); </script>
<div class="con_right">
<div class="table_top">
<form method="GET" action="http://192.168.0.214:1080/province_telecom_yn/recording">
<div class="tb_bor">
<table width="100%" cellspacing="0" cellpadding="0" border="0" style="border:1px solid #ccc; font-size:12px;">
<tbody>
<!-- <tr> <td colspan="7" valign="middle" class="bot_page" align="left" style="padding-left:13px;border-bottom:1px solid #CCC;"> <input style="display:none;" type="checkbox" name="all_check_box" id="allcheckbox"> </td> -->
<!-- <td colspan="5" valign="middle" class="bot_page" align="right" style="border-bottom:1px solid #CCC;"> 共计<span style="color:#F00;">3</span>条,每页<span style="color:#F00;">5</span>条 </td> -->
<tr>
<tr>
<tr>
<tr>
<tr>
<td class="bot_page" valign="middle" align="left" style="padding-left:13px;" colspan="2">
<td class="bot_page" valign="middle" align="right" colspan="5">
共计
<span style="color:#F00;">3</span>
条,每页
<span style="color:#F00;">5</span>
条
</td>
</tr>
</tbody>
</table>
<div class="div_remark">
python selenium 使用css定位共计?条,要怎么写,注意tr的数目是会变动的
它的xpath:.//*[@id='content']/div/div/table/tbody/tr/td/span 大大们,快来看看,css选择器不懂啊,只要能定位到最后一个tr就好了 已解决,虽然不懂原理,但是能用就好,复制css就可以
页:
[1]