120329 selenium IDE 导致 Element id not found 原因之一
来源:互联网 发布:淳儿心机知乎 编辑:程序博客网 时间:2024/05/21 08:04
自从去年这个时候转做测试,一直想接触自动化的东西,因为项目一直是前台功能测试,没有使用的机会,也没有可以请教的人,只能自己学了。
之前略微了解了下QTP,无实战经验,只是知道大概,但是感觉用QTP速度很慢。
这两天论坛博客上逛了逛,说selenium速度快,最主要是免费的。于是装了个selenium IDE插件,从录制了解,然后再看selenium rc。
期间就碰到了Element id not found 的问题,开始很奇怪,firedebug下看ID没错,但就是不能识别。后来经过一番折腾,日期录入框采用的是input,按说type可以不写,不写默认为text,考虑是不是没有标注type类型导致的,后来在firedebug下手动新建属性,以此录入框为执行点,Element id not found 的问题没有了。
现将情况图示如下:
录入框:
firedebug下查看ID,及类型。无type类型(开发不规范)
点击右键,新建属性
添加完成
然后以此为运行起点,点击执行
既可以正常执行。
注:手动在firedebug下添加属性,只有停留在该页面时才有效,一旦离开,或者点击上一步、下一步,新建的属性即消失。他只是临时修改,真正修改还需要找到该页面在程序里修改。
- 120329 selenium IDE 导致 Element id not found 原因之一
- 导致Gradle DSL method not found: 'compile()' 的原因之一
- 导致Gradle DSL method not found: 'compile()' 的原因之一
- selenium IDE ,明明存在元素,却找不到元素 ,报错Element not found
- Selenium IDE 报错 Timed out after 50000ms 或 Element ...... not found
- Seledium IDE脚本回放报错Element not found
- 导致jquery.min.map 404 (Not Found)错误的原因
- 错误日志struts2 http 404 not found可能原因之一
- Selenium Webdriver : Element not found in the cache - perhaps the page has changed since it
- selenium之 坑(StaleElementReferenceException: Message: Element not found in the cache...)
- 第二十三节: selenium之 坑(StaleElementReferenceException: Message: Element not found in the cache...)
- selenium:Element is not visible
- 导致Gradle DSL method not found: 'compile()' 的原因及解决方法
- IOS 异常处理 之一 not found ( return type default to "id")
- coreseek(sphinx)错误:WARNING: attribute 'id' not found - IGNORING原因及解决方法
- coreseek(sphinx)错误:WARNING: attribute 'id' not found - IGNORING原因及解决方法
- org.openqa.selenium.ElementNotVisibleException: element not visible
- selenium错误"element not visible"问题
- 高晓松体
- MongoDB的内部构造 From 《MongoDB The Definitive Guide》
- android 中按键响应实例
- POJ 1083 Moving Tables
- 建造者模式(Builder Pattern)
- 120329 selenium IDE 导致 Element id not found 原因之一
- awk命令
- 如何让ASPxButton不PostBack
- Scrum过程中的问题
- 得到自己的帧率
- 设计模式 一 工厂方法Factory Method(工厂模式)
- 解决matlab2012安装时快捷方式和.m文件自动关联的问题
- find命令
- ubuntu安装星际译王及词典