Skip to content

Commit

Permalink
兼容性更新:
Browse files Browse the repository at this point in the history
为了兼容最新的seldom1.9.0 与 poium1.0.0修改如下:
seldom修改了邮件的引入方式from seldom import SMTP
poium修改了Element,Elements类
  • Loading branch information
BarryYBL committed Jan 13, 2021
1 parent a7d7fec commit cedf78f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions PageObject/loginPage.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*-coding:utf-8-*-
# 用于登录页元素定位
from models import Url
from poium import Page, NewPageElement
from poium import Page, Element


class login(Page):
Expand All @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion models/mail.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from seldom.mail import SMTP
from seldom import SMTP
import time

# 配置e-mail信息
Expand Down

0 comments on commit cedf78f

Please sign in to comment.