我尝试使用Python和Selenium webdriver刷新一个页面,直到元素保持启用状态并单击。唯一的问题是刷新页面并进行验证。 这是一个用来做一个提示的日历。该页面的代码摘录如下:
<tr>
<td title="Not able" class="otherMonthDay">30</td>
<td title="Not able" class="otherMonthDay">31</td>
<td title="All busy" class="calendarCellRed">1</td>
<td title="Not able" class="noSelectableDay">2</td>
<td title="All busy" class="calendarCellRed">3</td>
<td title="Not able" class="noSelectableDay">4</td>
<td title="Not able" class="noSelectableDay">5</td>
</tr>
我的代码是:
^{pr2}$我想在页面刷新时单击启用的日期。在
我猜当你执行上面的代码时,你会得到一个NoSuchElementException。在
我的代码是这样的:
希望这有帮助。如果有任何问题,一定要告诉我。在
相关问题 更多 >
编程相关推荐