Selenium包装以添加其他功能
pytanium的Python项目详细描述
python中的前端web测试工具
为什么
我们需要一个结合现有优势的前端测试工具。 工具
比较
假设以下未列出的特性在工具中是相同的, 即跨浏览器测试
Capability | Description | Selenium | Sahi | Watir | pytanium |
---|---|---|---|---|---|
Easy HTTPS | Auto-accept SSL certs | Yes | Pro only | Yes | Yes |
Prevent alerts/confirms/prompts | Doesn’t block on these events | No | Yes | No | Yes* |
Prevent print | Doesn’t block on print | No | Yes | No | Yes* |
AJAX waits | Waits for AJAX calls to complete | No | Yes | No | Yes* |
File downloads | Allows files to be saved | No | Yes | No | No |
Relational identifiers | Identify objects using in, near, contains etc | No | Yes | No | To do |
Recorder/Object spy | Easy identification of elements | Yes | Yes | No | To do |
Languages | Programming languages | Many | JavaScript/Java/Ruby | Ruby | Python |
Cross-domain support | Consistent cross-domain support | Yes | Occasional configuration | Yes | Yes |
Debugging | Breakpoints and introspection | Yes | Sort of** | Yes | Yes |
Technology | Browser interaction method | Native | JavaScript events | Native | Native |
*只要在文档被 已加载
**sahi支持逐行运行脚本。为了反省, 脚本暂停时必须执行javascript。
如何
pytanium使用python binding for selenium。提供 selenium通常不包含的特性(ajax等待、阻塞 pytanium几乎每次调用 浏览器。这对性能没有明显的影响。
语言功能
pytanium使得从硒、sahi或watir很容易转换。在做的时候 因此,它从这些工具中支持许多相同的语法。
硒
如果你在写selenium with python你不需要改变你的 现有的代码,它是语法正确的密码。
sahi
pytanium的特征很大程度上受到sahi的启发,所以很多sahi的 语法有效。
记录器/对象间谍
萨希有一个出色的目标间谍和录音机。比重瓶记录器 将是一个带有pytanium支持的sahi开源分支。
许可证
lgpl