问题
rt
参考下
@{contexts} Get Contexts #获取原生app跟webview的名称
Log Many @{contexts} #打印出原生app跟webview名称
${cur_context} Get Current Context #得到当前app内容
log ${cur_context} #打印当前app内容名称
Switch To Context WEBVIEW_aye_com.aye_aye_paste_android #切换到webview
${cur_context} Get Current Context #得到当前app内容
log ${cur_context} #打印当前app内容名称
${page} Log Source #获取当前webview的源码
log ${page} #打印当前webview的源码
Page Should Contain Text 立即购买
Click Element xpath=//div[contains(@class,'addPurchase')] #立即购买
Wait Until Page Contains 确定
Click Element xpath=//div[contains(@class,'addPurchase')] #确定
Wait Until Page Contains 结算
Click Element xpath=//a[@class="am-button am-button-warning"] #结算
Wait Until Page Contains
Click Elementxpath=//a[@class="am-button am-button-primary"]
大佬,这个值是怎么得到的?