兼容性更新:
为了兼容最新的seldom1.9.0 与 poium1.0.0修改如下: seldom修改了邮件的引入方式from seldom import SMTP poium修改了Element,Elements类
This commit is contained in:
parent
a7d7fecf37
commit
cedf78ff6c
|
@ -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):
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from seldom.mail import SMTP
|
||||
from seldom import SMTP
|
||||
import time
|
||||
|
||||
# 配置e-mail信息
|
||||
|
|
Loading…
Reference in New Issue