Clear text from textarea with selenium

后端 未结 9 1311
时光说笑
时光说笑 2020-12-02 09:13

I\'ve got some tests where I\'m checking that the proper error message appears when text in certain fields are invalid. One check for validity is that a certain textarea el

9条回答
  •  栀梦
    栀梦 (楼主)
    2020-12-02 09:31

    driver.find_element_by_xpath("path").send_keys(Keys.CONTROL + u'\ue003') worked great with FireFox

    • u'\ue003' is a BACK_SPACE for those like me - never remembering it)

提交回复
热议问题