Home>

Please tell me how to run the first Appium + Selenide test? There is no proper tutorial for beginners. Already installed: "Android Studio" and "Intellij Idea". Also downloaded "selenide-2.3.jar" from https://mvnrepository.com/artifact/com.codeborne/selenide/2.3Downloaded android SDK from - https://developer.android.com/studio/index.html#downloadWhat else is missing for work? And if there is an adequate resource, please discard it for learning and work, but not a story of what it is. thank

  • Answer # 1

    A thisexample doesn't fit?

    public class CalculatorTest {
        @Before
        public void setUp () {
            Configuration.browser= AndroidDriverProvider.class.getName ();
        }
        @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"));
        }
    }
    
  • Answer # 2

    1) I don't see any mention of Appium-serverinstalled and running.
    2) First of all, go through the tutorials on the apium itself to understand what it is and how it works.
    3) There are a couple of articles on the appium tag on Habré.

    pom.xml

    <
    ? xml version= "1.0" encoding= "UTF-8"? >
    <
    project xmlns= "http://maven.apache.org/POM/4.0.0"
             xmlns: xsi= "http://www.w3.org/2001/XMLSchema-instance"
             xsi: schemaLocation= "http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">    <
    parent >
            <
    artifactId >
    appiumTest <
    /artifactId >
            <
    groupId >
    appiumTest <
    /groupId >
            <
    version >
    1.0-SNAPSHOT <
    /version >
        <
    /parent >
        <
    modelVersion >
    4.0.0 <
    /modelVersion >
        <
    artifactId >
    SelenideTests <
    /artifactId >
        <
    dependencies >
            <
    dependency >
                <
    groupId >
    com.codeborne <
    /groupId >
                <
    artifactId >
    selenide-appium <
    /artifactId >
                <
    version >
    1.3 <
    /version >
            <
    /dependency >
            <
    dependency >
                <
    groupId >
    junit <
    /groupId >
                <
    artifactId >
    junit <
    /artifactId >
                <
    version >
    4.12 <
    /version >
                <
    scope >
    test <
    /scope >
            <
    /dependency >
        <
    /dependencies >
    <
    /project >
    

    AND Test from the example.