|
<input name="submit" onclick="return ChangeFrame2()" type="image" src="../../images/ chaxun1.gif" complete="complete"
<input name="submit" onclick="return ChangeFrame2()" type="image" src="../../images/ chaxun3.gif" complete="complete"
如何用watir定位这2个图片按钮???
本人尝试以下几种方法,都失败:
1. ie.button(:name,"submit").click
2. ie.image(:src,/chaxun1/).click
3. ie.button(:src,/chaxun1/).click
4. ie.button(:index,1).click
分别返回:
1.in `assert_exists': Unable to locate element, using :name, "submit"
2. in `assert_exists': Unable to locate element, using :src, /chaxun1/
3.in `assert_exists': Unable to locate element, using :src, /chaxun1/
4.in `assert_exists': Unable to locate element, using :index, 1
希望高手们 给予指点。。。 |
|