예제 #1
0
class BaiduPage(Page):
    search_input = CSSElement("#kw", describe="百度搜索框")
    search_button = CSSElement("#su", describe="百度按钮")
    icp = CSSElement("#cp", describe="备案信息")
    search_key = CSSElement(".res-gap-right16", describe="")
    setting_dropdown_box = CSSElement("#s_user_name_menu", describe="设置下拉框")
    setting = CSSElement("#s-usersetting-top", describe="设置")
예제 #2
0
class RunoobPage(Page):
    iframe = NewPageElement(css="#iframeResult")
    div = CSSElement("html > body > div")
예제 #3
0
class SoPage(Page):
    setting = CSSElement("#hd_setting", describe="搜索设置")
    search = CSSElement("#search-button", describe="搜索按钮")
예제 #4
0
class BaiduPage(Page):
    search_input = CSSElement("#kw", describe="百度搜索框")
    search_button = CSSElement("#su", describe="百度按钮")
    icp = CSSElement("#cp", describe="备案信息")
    search_key = CSSElement(".res-gap-right16", describe="")
예제 #5
0
파일: demo.py 프로젝트: ZYG-Test/WebTest
class BaiduIndexPage(Page):
    search_input = CSSElement('#kw')
    search_button = CSSElement('#su')
예제 #6
0
class BaiduPage(Page):
    setting = PageElement(css='div#u1 > a.pf')
    search_setting = PageElement(css=".setpref")
    search_setting_hint = CSSElement(css="#sugConf th")