- Appium Essentials
- Manoj Hans
- 209字
- 2021-07-23 19:27:10
Conventions
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text are shown as follows: "After installation, run the command appium-doctor
to ensure that we are ready with Appium."
A block of code is set as follows:
@BeforeClass public void setUp() throws MalformedURLException{ //Set up desired capabilities DesiredCapabilities caps = new DesiredCapabilities(); File app=new File("path of the apk"); caps.setCapability(MobileCapabilityType.APP,app); caps.setCapability(MobileCapabilityType.PLATFORM_VERSION, "4.4"); caps.setCapability(MobileCapabilityType.PLATFORM_NAME, "Android"); caps.setCapability(MobileCapabilityType.DEVICE_NAME, "Android emulator"); caps.setCapability("avd","Name of the AVD to launch"); caps.setCapability(MobileCapabilityType.APP_PACKAGE, "package name of your app (you can get it from apk info app)"); caps.setCapability(MobileCapabilityType.APP_ACTIVITY, "Launch activity of your app (you can get it from apk info app)"); caps.setCapability(MobileCapabilityType.BROWSER_NAME, "Browser"); // In case of web-apps driver = new AndroidDriver (new URL("http://127.0.0.1:4723/wd/hub"), caps); driver.manage().timeouts().implicitlyWait(30,TimeUnit.SECONDS); }
Any command-line input or output is written as follows:
android create avd –n <name of the AVD> -t <targetID>
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "Click on Advanced system settings."
推薦閱讀
- Spring 5企業(yè)級(jí)開發(fā)實(shí)戰(zhàn)
- PyQt從入門到精通
- Reactive Programming with Swift
- Three.js開發(fā)指南:基于WebGL和HTML5在網(wǎng)頁上渲染3D圖形和動(dòng)畫(原書第3版)
- Android Application Development Cookbook(Second Edition)
- 深入淺出Android Jetpack
- 零基礎(chǔ)入門學(xué)習(xí)Python(第2版)
- 編寫高質(zhì)量代碼:改善Objective-C程序的61個(gè)建議
- Scratch·愛編程的藝術(shù)家
- Python從入門到精通(第3版)
- IDA Pro權(quán)威指南(第2版)
- FPGA嵌入式項(xiàng)目開發(fā)實(shí)戰(zhàn)
- ASP.NET求職寶典
- 從零開始學(xué)Selenium自動(dòng)化測(cè)試:基于Python:視頻教學(xué)版
- Python硬件編程實(shí)戰(zhàn)