如何在Selenium和Python中选择动态单选按钮?

时间:2017-05-07 10:45:08

标签: python selenium

<div class="ui-widget-content slick-row even" style="top:0px;">
    <div class="slick-cell l0 r0 impl-slick-cell-radiosel">
    <div class="slick-cell l1 r1">AAA</div>
    <div class="slick-cell l2 r2" title="">9999</div>
    <div class="slick-cell l3 r3">---</div>
    <div class="slick-cell l4 r4">17 Apr, 2013</div>
    <div class="slick-cell l5 r5">C02312</div>
    </div>
    <div class="ui-widget-content slick-row odd" style="top:25px;">
    <div class="slick-cell l0 r0 impl-slick-cell-radiosel" title="">
    <input type="radio"/>
    </div>
    <div class="slick-cell l1 r1" title="">BBB</div>
    <div class="slick-cell l2 r2" title="">8950</div>
    <div class="slick-cell l3 r3">---</div>
    <div class="slick-cell l4 r4">04 Apr, 2013</div>
    <div class="slick-cell l5 r5">C3285</div>
    </div>
    <div class="ui-widget-content slick-row even" style="top:50px;">
    <div class="slick-cell l0 r0 impl-slick-cell-radiosel">
    <div class="slick-cell l1 r1" title="">CCC</div>
    <div class="slick-cell l2 r2" title="">7856</div>
    <div class="slick-cell l3 r3">CC</div>
    <div class="slick-cell l4 r4">16 Apr, 2001</div>
    <div class="slick-cell l5 r5">C958</div>
    </div>
    <div class="ui-widget-content slick-row odd" style="top:75px;">
    <div class="ui-widget-content slick-row even" style="top:100px;">
    <div class="ui-widget-content slick-row odd" style="top:125px;">
    <div class="ui-widget-content slick-row even" style="top:150px;">
    <div class="ui-widget-content slick-row odd" style="top:175px;">
    <div class="ui-widget-content slick-row even" style="top:200px;">

我正在尝试选择&#34; slick-cell l2 r2&#34; &#34; 9999&#34;,&#34; slick-cell l2 r2&#34;和&#34; 8950&#34;从按钮列表中,但无法找到选择它们的方法。

0 个答案:

没有答案