Clear text from textarea with selenium

后端 未结 9 1324
时光说笑
时光说笑 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:38

    It is general syntax

    driver.find_element_by_id('Locator value').clear();
    driver.find_element_by_name('Locator value').clear();
    

提交回复
热议问题