Comments (6)
已增加对应的断言方法。
- 断言元素是否存在:
self.assertElement(css="#kwasdfasdfa")
如果元素不存在,断言失败。
- 断言元素是否不存在:
self.assertNotElement(css="#kwasdfasdfa")
如果元素存在,断言失败。
from seldom.
version 1.10.0
版本已发布!可以再该版本使用这两个方法。
from seldom.
实际上想判断一个PO中的元素不存在,而不是再用例中再去写“css=XXXXX”
from seldom.
self.assertNotElement(page_login.input_email, msg="XX元素未消失")
类似于这个使用方式,方便封装一个么,期望常用的定位元素不出现具体用例中,都使用PO中封装好的
from seldom.
使用try catch, 暂时解决问题
from seldom.
已找到解决办法,谢谢
from seldom.
Related Issues (20)
- seldom是否能与ATX配合使用 HOT 1
- 【优化】 seldom_log.log 过大的问题 HOT 1
- 【bug】 seldom(webdriver_manager) 安装浏览器驱动错误 HOT 1
- 【问题】 seldom 不支持 selenium 4.10 HOT 1
- seldom是否可以把三种自动化框架分开安装,即在安装的时候指定装某一个或多个方向的框架 HOT 1
- [问题] 获取当前时间不一致的问题 HOT 1
- 【bug】 diff_json 对比方法错误 HOT 2
- seldom结合其他测试库比如playwright使用时,如何截图生成到测试报告中 HOT 3
- 【问题】confrun.py修改默认配置未生效,怎么让报告默认语言为中文 HOT 2
- 【需求】支持录制功能
- 【需求】 appium 2.0 支持 HOT 1
- 【问题】测试报告中,当我截图数量过多时,不能显示全部图片 HOT 1
- 【需求】支持更多接口类型的测试
- 【问题】 self.max_window() 方法报错,虽然执行成功了,但是有个报错,浏览器并没有最大化 HOT 3
- 能不能把开启headless模式加入到confrun.py配置内呢? HOT 1
- AttributeError: 'dict' object has no attribute 'to_capabilities' HOT 2
- 【问题】使用python命令运行一个接口脚本时,为什么每个test方法运行前都会把start运行一遍 HOT 1
- Web UI 自动化测试建议可以手动初始化 driver HOT 1
- 【bug】测试用例脚本中不能使用变量id,会与源码中冲突
- 【需求】seldom+uiautomator2,使用po模式时,elem事件的describe的描述中不打印出来
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from seldom.