1 Star 0 Fork 0

橙子 / appium_test

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CreateFont.py 1.62 KB
一键复制 编辑 原始数据 按行查看 历史
橙子 提交于 2018-05-17 12:00 . AppiumTest_shoujizaozi
#-*- coding:utf-8 -*-
# __author__ = "xcz"
# __version__ = "v1.0.1"
import os
import sys
import time
from configparser import ConfigParser
from selenium import webdriver
from appium import webdriver
from conf.appium_config import appium_start
from common.unlock import unlocks
from common.utils import *
import datetime
from common.Action import *
from Home import *
nowtime=datetime.datetime.now().strftime("%Y%m%d%H%M%S")
#读取config.ini
log_=ConfigParser()
log_.read("conf/logs_conf.ini")
cfg = ConfigParser()
cfg.read("conf/element_.ini")
# print cfg.sections()
shouye = cfg.options("chuangjianrukou")
# print shouye
home_path=os.getcwd()
nowtime=datetime.datetime.now().strftime("%Y%m%d%H%M%S")
class El_chuangjianziti(object):
"""docstring for chuangjianziti"""
def __init__(self, arg):
super(El_chuangjianziti, self).__init__()
self.arg = arg
def writefont(self,fontname):
el_id_click(self.arg,cfg.get('chuangjianrukou','el_writefont'))
time.sleep(5)
f=open(home_path+"/"+log_.get('log','path')+"/nologin.xml","w")
f.write(self.arg.page_source)
f.close()
screenshot(self.arg,"writefont")
def camrefont_pen(self,fontname):
el_id_click(self.arg,cfg.get('chuangjianrukou','el_camerafont2'))
time.sleep(5)
print(self.arg.page_source)
screenshot(self.arg,"camrefont_pen")
def camrefont_brush(self,fontname):
el_id_click(self.arg,cfg.get('chuangjianrukou','el_camerafont1'))
time.sleep(5)
print(self.arg.page_source)
screenshot(self.arg,"camrefont_brush")
def works(self):
el_id_click(self.arg,cfg.get('chuangjianrukou','el_works'))
time.sleep(5)
print(self.arg.page_source)
screenshot(self.arg,"works")
Python
1
https://gitee.com/xuchengzhi/appium_test.git
git@gitee.com:xuchengzhi/appium_test.git
xuchengzhi
appium_test
appium_test
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891