1. 获取input中value的值
html代码
<input id = "_easyui_textbox_input5" type = "text" class ="textbox-text autocomplete="off" validatebox-text" name = "deptName"value = "1111" >
定位方法:
driver.findElement(By.id("_easyui_textbox_input5")).getAttribute("value");
2. 获取input的文本值
html代码
<input id = "_easyui_textbox_input5" type = "text" class ="textbox-text validatebox-text" autocomplete="off"name = "deptName" >1