Sedikit Info Seputar
Mobile Automation: Appium + Selenide (example with Calculator app, Android)
Terbaru 2017
- Hay gaes kali ini team Game Android Apk, kali ini akan membahas artikel dengan judul Mobile Automation: Appium + Selenide (example with Calculator app, Android), kami selaku Team Game Android Apk telah mempersiapkan artikel ini untuk sobat sobat yang menyukai Game Android Apk. semoga isi postingan tentang yang saya posting kali ini dapat dipahami dengan mudah serta memberi manfa'at bagi kalian semua, walaupun tidak sempurna setidaknya artikel kami memberi sedikit informasi kepada kalian semua. ok langsung simak aja sob
Judul:
Berbagi Info Seputar
Mobile Automation: Appium + Selenide (example with Calculator app, Android)
Terbaru
link: Mobile Automation: Appium + Selenide (example with Calculator app, Android)
Berbagi Mobile Automation: Appium + Selenide (example with Calculator app, Android) Terbaru dan Terlengkap 2017
Mobile Automation: Appium + Selenide (example with Calculator app, Android)
How To:
1. add selenide.jar to the project
2. set your driver with WebDriverRunner.setWebDriver(your_driver);
3. write the test with selenide syntax sugar:
Example: standard android Calculator app.
capabilities.setCapability(MobileCapabilityType.APP_PACKAGE, "com.android.calculator2");
capabilities.setCapability(MobileCapabilityType.APP_ACTIVITY, "com.android.calculator2.Calculator");
package test;
import org.openqa.selenium.By;
import org.testng.annotations.*;
import static com.codeborne.selenide.Selenide.$;
import static com.codeborne.selenide.Condition.text;
import utilits.TestBase;
@Test
public void testCalculator(){
$(By.name("2")).click();
$(By.name("+")).click();
$(By.name("4")).click();
$(By.name("=")).click();
$(By.className("android.widget.EditText")).shouldHave(text("6"));
}
}
Lin k to gist[1]
References
- ^ Link to gist (gist.github.com)