0

使用 selenium(python) 在 chrome 中自动执行SFDC时,我在日历框中输入日期时遇到问题。我没有使用日历中的 DatePick,而是将日期作为 Send_Keys 发送。第一次工作,但是当尝试进入第二个字段时,它会多次填充两个字段。例如,如果我第三次运行代码,它会用 3 个日期实例填充字段。

action.move_to_element_with_offset(em,600,209).click().send_keys("7/1/2018").perform()
action.move_to_element_with_offset(em,750,209).click().send_keys("7/1/2018").perform()

截图:

4

0 回答 0