Appium Tutorial 7: Create Base class to set capabilities | How to Install app on emulator?

Поделиться
HTML-код
  • Опубликовано: 15 дек 2022
  • #appium #java #mobileautomation #androidautomation
    +Create Base class to set capabilities
    +How to Install app on emulator
    ▬▬▬▬▬▬ In this Video ▶️ ▬▬▬▬▬▬
    Connection step to Appium Server: 1st we need to talk to Appium server so that it interprets the code and invokes the virtual /real devices. To start Appium server go to cmd & type: Appium (will show the Appium version and port number). In Eclipse the code would be:
    AndroidDriver driver=new AndroidDriver(connectionToServerLink, DesiredCapabilitiesObjectName);
    Note: Use Android Driver class to connect Appium Server. Needs to arguments as connectionToServerLink and Capabilities where has all the Capabilities info given.
    If you are using Appium 2.0.0-beta version, recommend to use the following dependency: selenium-api ; selenium-remote-driver
    👉 Appium Error : java. lang. No Class Def Found Error:
    stackoverflow.com/questions/7...
    ▬▬▬▬▬▬ Useful Links 🛠 ▬▬▬▬▬▬
    Blog ► codenboxautomationlab.com/​​
    GitHub Repo ► github.com/codenbox/Appium-An...
    ▬▬▬▬▬▬ Connect with us 👋 ▬▬▬▬▬▬
    💻 Facebook: / ​​
    📱 Twitter: / codenboxteam
    📝 LinkedIn: / sarifuli
    🌟 Please hit on LIKE ❤️ and SUBSCRIBE for more AMAZING content! 🌟

Комментарии • 22

  • @kshamapandey4016
    @kshamapandey4016 6 месяцев назад +1

    How to resolve "Unhandled exception type MalformedURL Exception". I added try and catch block but issue is still there. It also says: The constructor URL(String) is dedicated. I am not getting any import option as well.

  • @sauravkumar6666
    @sauravkumar6666 9 месяцев назад

    You're the best in explaining bcoz your way of teaching is very easy to grasp.
    Keep it up bro...

  • @DadsPrincess1234
    @DadsPrincess1234 7 месяцев назад

    i was unable to see the option called add testng library in auto import?

  • @DadsPrincess1234
    @DadsPrincess1234 7 месяцев назад

    iam unable to paste any apk file in to the eclipse package as well as folder in eclipse....

  • @romaangela9836
    @romaangela9836 5 месяцев назад

    By adding the uiautomator2 ,we are not able to see the options as import. how we can get the import option.

  • @maliknoorkhan2371
    @maliknoorkhan2371 Год назад

    I have not see the option of import uiautomator2options how we can import

  • @sanjaysonule2408
    @sanjaysonule2408 Год назад

    Awesome👍

  • @DailyClips009
    @DailyClips009 11 месяцев назад

    How to prevent is element cannot find on screen?

  • @stern7658
    @stern7658 3 месяца назад +1

    hey man i'm late to the party. I try to right click to run project as testNG but all I got was run configuration where I have to create, manage and run configuration. how to get run as testNG instead of run configuration?

    • @CodenboxAutomationLab
      @CodenboxAutomationLab  3 месяца назад

      Please watch this tutorial: ruclips.net/video/YNvmrVh4dn8/видео.htmlsi=8UBK_uwD9B9ocymD

  • @vishnusashank7239
    @vishnusashank7239 9 месяцев назад +1

    I am getting an error where I am unable to throw an exception for the URL. It is popping up that " The constructor URL(string) is undefined. Could you please tell me the explanation

  • @arunkumarm5439
    @arunkumarm5439 Год назад +1

    I am getting error "does not exist or is not accessible" server response /session 500. Could you give a solution?

    • @CodenboxAutomationLab
      @CodenboxAutomationLab  Год назад +1

      usually this occurs when the Appium server is unable to establish a connection with the device or emulator. Here are a few steps you can follow:
      1)Check if the desired capabilities are set correctly. The desired capabilities include information about the device, the app, and other settings that are used by Appium to launch the app. Make sure that these values are correct.
      2) Restart the Appium server and the emulator following this video: ruclips.net/video/vQnk13m6lSw/видео.html
      3) Check if there are any issues with the network connectivity between the emulator and the Appium server

    • @arunkumarm5439
      @arunkumarm5439 Год назад

      @@CodenboxAutomationLab very thanks 👍. I had checked you mentioned steps. I got a solution. I did mistake on apk file location path. And restart the appium server. Now I can execute test cases. Thanks!

  • @oyetechy9432
    @oyetechy9432 9 месяцев назад

    how to install that apk in emulator?

  • @user-qg2yw8pw8g
    @user-qg2yw8pw8g Год назад +1

    org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. ------>This is the error i am getting while implementing same process and same code

    • @CodenboxAutomationLab
      @CodenboxAutomationLab  Год назад

      Here is the solution: ruclips.net/video/vQnk13m6lSw/видео.html

    • @srikanthsarma802
      @srikanthsarma802 10 месяцев назад

      ​@CodenboxAutomationLab hi sir where we have to download apk files