ADB command for YouTube and Browsing

Let us see how we can automate the YouTube and browsing

1. Launching YouTube and play video

To do so we have to fire below adb shell command

adb shell am start  https://www.youtube.com/watch?v=6bGdIAf2J_k
here am start will start the YouTube app and will pass the url v=6bGdIAf2J_k the video path.


2. Launching YouTube in Chrome Browser

To launch the YouTube in chrome browser you have to fire the below adb command

adb shell am start -n com.android.chrome/com.google.android.apps.chrome.Main "https://youtu.be/6bGdIAf2J_k



2. Launch Browser and go to your favourite websites 

To launch the browser there are two different ways
adb shell input keyevent 64
adb shell input text "https://mobile-automation-testing.blogspot.com" && adb shell input keyevent 66"
Here KeyEvent 64 for launching the browser
         KeyEvent 66 stands for 66 -> KEYCODE_ENTER

The other way to launch the browser is as below
adb shell am start -a android.intent.action.VIEW -d http://https://mobile-automation-testing.blogspot.com
In this you can directly pass the url.

3. Launch Browser and download data

Below is the command used for launching the browser and downloading the online
adb shell am start -a android.intent.action.VIEW -d https://speed.hetzner.de/10GB.bin
4. Launch Browser and play Music online 

Below is the command for launching the browser and playing the music online
adb shell am start -a android.intent.action.VIEW -d http://stream-tx3.radioparadise.com/mp3-192

11 comments:

  1. If you want to to be on the best website, then it means you better read this

    Mobile apptesting company

    ReplyDelete
  2. Thanks for sharing a nice post. It's helping in many ways.

    Mobile App Development Company in New York

    ReplyDelete
  3. Nice and interesting post, I appreciate your hard work. keep it up…!!!Thanks for such useful information, It is true that now if you want to grow your business you will surely need the mobile app testing services for your business. But for that purpose everyone needs best mobile app testing companies.

    ReplyDelete
  4. Great job for publishing such a beneficial web site. Your web log isn’t only useful but it is additionally really creative too. https://www.buyyoutubesubscribers.in/

    ReplyDelete
  5. Nice Blog, When I was read this blog, I learnt new things & it’s truly have well stuff related to developing technology, Thank you for sharing this blog. If Someone wants to know about Top Big Data Companies this is the Right place for you!

    ReplyDelete

Feature Posts

Python Appium - Step by step procedure for capturing screenshot

 Why To capture screenshot? It is as important as your logs. If there is any failure for any test scenario, we can provide screenshot for th...