Appium以不同方式处理按钮的可见性

时间:2015-12-31 06:06:37

标签: ios appium

我的aspx页面中有两个按钮。

按钮1

<input type="submit" name="ctl00$ctl00$ctl00$Main$Main$Main$customerPage$btnCustomerNewCustomerQuote" value="Quote" onclick="schCust.btnCustomerNewCustomerQuote_onclick(); return false;" id="btnCustomerNewCustomerQuote" title="new quote">

按钮2

<input type="submit" name="ctl00$ctl00$ctl00$Main$Main$Main$customerPage$btnCustomerNewCustomer" value="Appt" onclick="schCust.btnCustomerNewCustomer_onclick(); return false;" id="btnCustomerNewCustomer" title="new Appointment">

问题是appium检查器xml读取按钮1为可见而按钮2为不可见。

<UIAButton name="Quote" label="New Customer - Quote" value="" dom="[object Object]" enabled="true" valid="true" visible="true" hint="Create a new customer quote" path="/0/0/1/1/4" x="909.0000013113407" y="599.0000397336529" width="26.00000607588322" height="139.00000113649605">
</UIAButton>

<UIAButton name="Appt" label="New Customer - Appt" value="" dom="[object Object]" enabled="true" valid="true" visible="false" hint="Create a new customer and appointment" path="/0/0/1/1/5" x="908.9999952354575" y="745.0000397336527" width="26.00000576990351" height="132.00000113649605">

我正在使用 Appium 1.4.13

iOS:9.1

xcode:7.2

0 个答案:

没有答案