zoukankan      html  css  js  c++  java
  • robotframework_酷我音乐_That Girl

    *** Settings ***
    Library Selenium2Library
    
    *** Test Cases ***
    music
        # 打开浏览器
        Open Browser https://www.baidu.com/ gc
        # 智能等待
        Set Browser Implicit Wait 30
        # 浏览器最大化
        Maximize Browser Window
        Input Text id=kw That Girl
        Click Button id=su
        Sleep 3s
        Click Element xpath= //*[contains(text(),"酷我音乐")]
        # 断言文本
        Wait Until Page Contains 在线试听 30s
        Click Element xpath=//div[@class='op-musicsong c-row c-border']/div/div[3]/div[2]/div[3]/a
        Select Window new
        Wait Until Page Contains That Girl
        Click Element id=wp_playBtn
        Sleep 60
        ${title} Get Title
        # 断言
        Should Contain ${title} That Girl-Olly Murs-单曲-酷我音乐-好音质用酷我
        # 关闭浏览器
        Close All Browsers

    引用"虫师":生活依旧,工作依旧,学习依旧,趁着对技术还热情,继续学习与总结。
  • 相关阅读:
    403
    311
    401
    310
    308
    309
    307
    304
    3-1
    2-11
  • 原文地址:https://www.cnblogs.com/lixy-88428977/p/9366683.html
Copyright © 2011-2022 走看看