From cedf78ff6c66d108becde3387ea2018a0e54da77 Mon Sep 17 00:00:00 2001 From: BarryYBL <2652612315@qq.com> Date: Wed, 13 Jan 2021 20:00:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E6=80=A7=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=EF=BC=9A=20=E4=B8=BA=E4=BA=86=E5=85=BC=E5=AE=B9=E6=9C=80?= =?UTF-8?q?=E6=96=B0=E7=9A=84seldom1.9.0=20=E4=B8=8E=20poium1.0.0=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=A6=82=E4=B8=8B=EF=BC=9A=20seldom=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=BA=86=E9=82=AE=E4=BB=B6=E7=9A=84=E5=BC=95=E5=85=A5=E6=96=B9?= =?UTF-8?q?=E5=BC=8Ffrom=20seldom=20import=20SMTP=20poium=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=BA=86Element,Elements=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PageObject/loginPage.py | 6 +++--- models/mail.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/PageObject/loginPage.py b/PageObject/loginPage.py index adffa84..3101350 100644 --- a/PageObject/loginPage.py +++ b/PageObject/loginPage.py @@ -1,7 +1,7 @@ # -*-coding:utf-8-*- # 用于登录页元素定位 from models import Url -from poium import Page, NewPageElement +from poium import Page, Element class login(Page): @@ -10,8 +10,8 @@ class login(Page): url = Url.baseUrl # 示例 - search_input_loc = NewPageElement(id_='kw') - search_button_loc = NewPageElement(id_='su') + search_input_loc = Element(id_='kw') + search_button_loc = Element(id_='su') # 操作方法封装 def search_input(self, key): diff --git a/models/mail.py b/models/mail.py index d678b9c..55c7c3c 100644 --- a/models/mail.py +++ b/models/mail.py @@ -1,4 +1,4 @@ -from seldom.mail import SMTP +from seldom import SMTP import time # 配置e-mail信息