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   ; 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