puke3615 / selenium_robot

基于selenium框架的robot封装,支持快速生成浏览器自动化脚本

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

selenium-robot

基于selenium框架的robot封装,支持快速生成浏览器自动化脚本

快速开始

robot = Robot(
    Open('https://www.zhihu.com/'),
    Click('登录'),
    Input('手机号或邮箱', username),
    Input('密码', password),
    Click('登录', choose_func=lambda elements: elements[-1])
)
robot.setup(browser)

运行效果图

About

基于selenium框架的robot封装,支持快速生成浏览器自动化脚本

License:Apache License 2.0


Languages

Language:Python 100.0%