• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
金大鑫要坚持
博客园    首页    新随笔    联系   管理    订阅  订阅

随笔分类 -  Python

主要是看虫师的。当然也看一些其他的python。
【playwright学习】wait_for_url的三种传参方法 in github create issue test

摘要:from playwright.sync_api import sync_playwright,Page,Playwright,Browser,expect import pytest import random import re @pytest.fixture(scope="module",au 阅读全文
posted @ 2024-07-03 12:10 金大鑫要坚持 阅读(379) 评论(0) 推荐(0)
【playwright学习】fixture和closure学习

摘要:学习的话主要材料是官网:https://playwright.dev/python/docs/auth 基础的话,像我一样薄弱就可以了。会一些java,但python会的不多,用得很少。上手贼容易,但是selenium也不怎么难 在学习之前,要弄清楚@pytest.fixture,closure(n 阅读全文
posted @ 2024-07-03 11:44 金大鑫要坚持 阅读(96) 评论(0) 推荐(0)
Selenium Edge Driver Python 自动化测试

摘要:Finally I got it. 没有自动化过edge,今天被小坑了一下,但是还好现在弄好了。 1. 查看edge 版本,我的是14.14393 2. https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/ 下载e 阅读全文
posted @ 2018-01-18 13:22 金大鑫要坚持 阅读(9079) 评论(0) 推荐(1)
【Python学习】yield send我就说这么多

摘要:OUTPUT: yield1testm = Noneyield2test File "C:\pytest\Sele\Generator.py", line 36, in <module> result.send('test')TypeError: can't send non-None value 阅读全文
posted @ 2017-10-26 11:25 金大鑫要坚持 阅读(1393) 评论(0) 推荐(0)
【Python学习】iterator 迭代器小练习

摘要:http://anandology.com/python-practice-book/iterators.html Problem 1: Write an iterator class reverse_iter, that takes a list and iterates it from the 阅读全文
posted @ 2017-10-25 19:25 金大鑫要坚持 阅读(590) 评论(0) 推荐(0)
Python 写了个小程序,耗时一天,结果才100多行

摘要:from selenium import webdriver import selenium.webdriver.support.ui as ui from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.common.exce... 阅读全文
posted @ 2017-10-25 11:57 金大鑫要坚持 阅读(1292) 评论(0) 推荐(0)
【Python学习】函数参数传递方法四种(位置,关键字,默认值,包裹位置,包裹关键字传递)

摘要:1. 位置传递: 2. 关键字传递 3. 默认值参数 调用: 4. 包裹传递 调用: 输出: 5. 解包 阅读全文
posted @ 2016-11-30 12:03 金大鑫要坚持 阅读(3888) 评论(0) 推荐(0)

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3