随笔分类 -  python自动化之POM模型--封装组件

python PublicMethod方法如下<LoggerBase有使用>
摘要:import os import yaml import sys import logging class PubMethod: @staticmethod def read_yaml(file): if os.path.isfile(file): fr = open(file, 'r', enco 阅读全文

posted @ 2020-09-11 20:58 蜗牛·哥 阅读(262) 评论(0) 推荐(0) 编辑

python config/config.ini 配置文件如下
摘要:# this is config file, only store browser type and server URL[browserType]#browserName = FirefoxbrowserName = Chrome#browserName = Ie#browserName = Ed 阅读全文

posted @ 2020-09-11 20:55 蜗牛·哥 阅读(488) 评论(0) 推荐(0) 编辑

python browser engine封装
摘要:# -*- coding:utf-8 -*- import configparser from selenium import webdriver from webdriver_manager.opera import OperaDriverManager from webdriver_manage 阅读全文

posted @ 2020-09-11 20:53 蜗牛·哥 阅读(385) 评论(0) 推荐(0) 编辑

python 页面基类 Page封装 →driver层的封装(最底层的封装Page)
摘要:# coding=utf-8 import time from selenium.common.exceptions import NoSuchElementException from selenium.webdriver import ActionChains from selenium.web 阅读全文

posted @ 2020-09-11 20:49 蜗牛·哥 阅读(876) 评论(0) 推荐(0) 编辑

pyhton 邮件封装
该文被密码保护。

posted @ 2020-07-31 20:51 蜗牛·哥 阅读(5) 评论(0) 推荐(0) 编辑

python 日志封装 logging模块
该文被密码保护。

posted @ 2020-07-22 14:56 蜗牛·哥 阅读(42) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示