You will have to modify the capability based on your phone and requirement. Now to check if the Appium is running: > from appium import webdriver > capability = > wd = webdriver.Remote(‘ capability) If you are not using Python then you can skip from here. I will be using Python for testing Appium. Verify the environment variables are set by checking Edit Configuration. You can download the latest appium-desktop from: $ wget $ sudo chmod +x Appium-Server-GUI-linux-1.22.0.AppImage We can proceed with the Appium without the GUI. If you don’t want to install GUI then skip the stage. You can use CLI to start Appium: $ appium -a localhost -p 4373įor more CLI refer here: Downloading Appium-Desktop Now update npm: $ sudo npm install -g npm Installing Dependencies $ sudo apt-get install build-essential curl git m4 ruby texinfo libbz2-dev libcurl4-openssl-dev libexpat-dev libncurses-dev zlib1g-dev Installing Appium $ npm install -g appium Starting Appium $ curl -fsSL | sudo -E bash - $ sudo apt-get install -y nodejs If it's not already installed use the following command. Since there are thousands of things that can go wrong with node, if you see any issue during installation then uninstall all the previous node versions before proceeding: $ sudo apt remove -purge npm* $ sudo apt remove -purge node* $ sudo apt autoremove If you already have the node in your system then skip this step. Now to reload our changes: $ source ~/.bashrc Installing Node $ sudo add-apt-repository ppa:maarten-fonville/android-studio $ sudo apt update $ sudo apt install android-studio Exporting JAVA_HOME and ANDROID_HOMEĮdit ~/.bashrc and add the following in the end of the file: export ANDROID_HOME=/home/umang/Android/Sdk export PATH=$PATH:$ANDROID_HOME/tools export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre export PATH=$PATH:$JAVA_HOME/bin If you already have android studio skip the following step. If you already have JDK installed then skip this stage: $ sudo add-apt-repository -y ppa:webupd8team/java $ sudo apt-get update $ sudo apt install openjdk-11-jdk Installing Android Studio A Quick Guide to install Appium in Linux using Node Installing JDK
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |