HTML 代码
<input class="invoice_tt" name="consignee" type="text" value="" maxlength="12">
1.获取input中value的值
self.driver.find_element_by_class_name(‘invoice_tt’).getAttribute("value");
2.获取input的文本值
self.driver.find_element_by_class_name(‘invoice_tt’).getText();
最后
以上就是畅快毛巾最近收集整理的关于selenium获取文本框的内容的全部内容,更多相关selenium获取文本框内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复