Comments (4)
drissionPage 本身就有page 的概念。从他的语法看。 语法本身也没很精简
from DrissionPage import ChromiumPage
# 创建页面对象,并启动或接管浏览器
page = ChromiumPage()
# 跳转到登录页面
page.get('https://gitee.com/login')
# 定位到账号文本框,获取文本框元素
ele = page.ele('#user_login')
# 输入对文本框输入账号
ele.input('您的账号')
# 定位到密码文本框并输入密码
page.ele('#user_password').input('您的密码')
# 点击登录按钮
page.ele('@value=登 录').click()
所以,我觉得没必要用 poium 的语法糖再给他包一层。
from poium.
from poium.
使用了几个月,已经从drissionPage踩坑归来。本身是好工具,但不是真正意义上的UI和HTTPS结合,因为他们还是不共session!但是两者单独拧出来确实很是优雅的自动化解决方案
from poium.
DrissionPage本身就是POM封装。
比selenium快正常,它不是基于chromedriver的,能稳定过cloudflare。
from poium.
Related Issues (20)
- 能不能加一个把日志同时输出到文件啊
- execut_script() TypeError:Object of type Element is not json serializable HOT 1
- log 输出乱码[32mINFO ✅ Find element: id=kw [0m 怎么去掉? HOT 2
- poium 能和 behave 一起使用吗
- 【功能】CSSElement 提供获取输入框内容的方法 HOT 1
- 【功能】实现移动端口keyevent 操作 HOT 1
- 【升级】支持selenium 4.0 版本 HOT 1
- Element.get_attribute(name)不可用 HOT 2
- Element.value_of_css_property的返回值应是property_value而非property_name HOT 3
- [提问]如何使用Elements class来获取元素的个数
- 单个元素的定位,返回类型是poium Element,导致调selenium的drag_and_drop 报错move_to requires a WebElement HOT 1
- Elements定位元素时,执行时,没有输出log.info HOT 1
- 用golang重写poium难吗 HOT 1
- 页面跳转后元素定位怎么处理? HOT 4
- 有方法可以判断element不存在吗? Element()初始化会报index out of range HOT 3
- 能否把__get_element()方法public出来,以便扩展和调用。
- open()报错 HOT 3
- Element.select_all 方法缺少grid的判断
- 返回的类型为什么会没统一
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 poium.