Robot Framework Learning Notes

Source: Internet
Author: User

Note: 1 You can find the subset absolute path by the nearest ID 2 note the Click Element and click Button3 encounters a page jump mask, masking the selected element, can be resolved by maximizing the screen to temporarily resolve the 4 encounter cannot find the corresponding element, sometimes need sleep for a period of time, Wait for the page element to complete loading.      Open Browser    http://ct.fat4.qa.nt.ctripcorp.com/m    chrome    Sleep    5    Click element    xpath=//div[@id = ' App-ad ']/span[1]/i[@class = ' I-close ']    sleep    2    Click Element    css= #bootOmit     Sleep &nbsp ;  4    Input text    id=account    ******    input text    ID=PASSWO Rd    ******    sleep    2    Click button    id=login    Slee P    5    Click Element    css=.u-icon-flight    sleep    6    Click Element    css=.date    sleep    5    Click Element    xpath=//di v[@id = ' Div_calendar ']/div[3]/ul[3]/li[3]    Sleep    5    Click button    id=btn_search    sleep   & nbsp;40    Click element    xpath=//ul[@id = ' dflightlist ']/li[1]/div[1]/div[1]    sleep & nbsp  8    Click button    xpath=//ul[@id = ' dflightlist ']/li[1]/div[2]/div[5]/div[2]/button[@ class= ' Btn-book ']    sleep    20    Click Element    id=pg_passengerpass_add& nbsp   Sleep    20    Click element    xpath=//div[@id = ' choicepassengerlist ']/div[1]/div [1]/span[1]    Sleep    2    Click element    xpath=//article[@id = ' Pg_ Choicepassenger ']/div[1]/span[1]/i[@class = ' u-icon-sideb nav-confirm ']    sleep    2    Click Element    xpath=//div[@id = ' auth_1 ']/div[@class = ' g-col-w66 ']    sleep    2  & nbsp Click Element    xpath=//ul[@id = ' SelectlIst ']/li[1]/span[1]    sleep    2    Click element    xpath=//div[@id = ' auth_2 ') /div[@class = ' g-col-w66 ']    sleep    2    Click element    xpath=//ul[@id = ' SelectList ']/li[1]/span[1]    sleep    2    Click element    xpath=//div[@id = ' Pg_passengerpass_list ']/div[1]/div[1]/span[2]/span[@class = ' u-icon-deletetoggle Red fadeOut ']    sleep    2    Click Element    id=span_birth    sleep    2    Click Button    id=SelectConfirm    sleep    2    Click Element    xpath=//ar ticle[@id = ' Pg_editorpassenger ']/div[1]/span[1]/i[@class = ' u-icon-sideb nav-confirm ']    sleep    2    Input Text    id=contacttel1    180000000000    sleep    2&N Bsp   Click button    id=pricebarsubmit

Robot Framework Learning notes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.