摘要: selenium获取input时候,发现type=”hidden” 的input无法修改value,经牛人指点,可以使用js修改首先html源文件如下,设置为text 、hidden、submit 1 2 3 this is a test 4 10 11 12 13 Name: 14 Email: 15 16 17 18 19 View Code 在浏览器加载之后如下:这时候email 不能对外显示使用selenium,代码如下 1 import org.openqa.selenium.Alert; 2 import org.openqa.selenium.Javascr... 阅读全文
posted @ 2014-03-12 22:23 to be crazy 阅读(18719) 评论(2) 推荐(0) 编辑