如何在机器人框架硒库中处理React Picker Wheel

问题描述

我需要选择10:00

enter image description here

代码是:

<div class="rmc-picker">
   <div class="rmc-picker-mask" style="background-size: 100% 78px;"></div>
   <div class="rmc-picker-indicator " style="top: 78px;"></div>
   <div class="rmc-picker-content" style="padding: 78px 0px; transform: translate3d(0px,0px,0px);">
      <div class="rmc-picker-item rmc-picker-item-selected ">08</div>
      <div class="rmc-picker-item ">09</div>
      <div class="rmc-picker-item ">10</div>
   </div>
</div>

我想从目标位置获得(x,y)位置并使用“按偏移量拖放”,但是它不起作用。 仍然是08.00

    ${x8}    Get Horizontal Position    (//*[text()="08"])[1]
    ${y8}    Get Vertical Position    (//*[text()="08"])[1]
    ${x10}    Get Horizontal Position    (//*[text()="10"])[1]
    ${y10}    Get Vertical Position    (//*[text()="10"])[1]
    ${id_time_from_hour}=    Set Variable    time_from_hour
    Drag And Drop By Offset    (//*[text()="08"])[1]    ${x10}    ${y10}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)