代码拉取完成,页面将自动刷新
#-*- 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")
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。