方法一:获取input的文本值

<input class="form-text-normal" >星河学院</input>

 
chrome.findElement( By.id("txtName")  ).getText();  
 
 
方法二:获取input中value的值
<input class="form-text-normal" >
 
chrome.findElement(By.id("txtName")  ).getAttribute("value") ;

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2022-12-23
  • 2022-02-15
相关资源
相似解决方案