reading text from textarea in webdriver

前端 未结 3 1884
别那么骄傲
别那么骄傲 2021-02-13 18:12

I am trying to read text from textarea when writing a webdriver test in Java. For some reason I am getting null back when I use .getAttribute():

            


        
3条回答
  •  终归单人心
    2021-02-13 18:58

    I'm using selenium version 3.4 and using element.getAttribute("value") that work for me. The element.getText() would return empty value for TextArea.

提交回复
热议问题