Download files in firefox browser using selenium WebDriver

There are situations where we need to Download files from browser, Save in a specified folder on hard disk. We will use browser preferences to [much simpler way] Disable file save dialog set download path Download the latest geckodriver for firefox from https://github.com/mozilla/geckodriver/releases We will use FirefoxOptions to set browser preferences Code implementation ublic class FileDownloadFireFox { public static void main(String[] args)…

Install android apps on emulators

Method 1: Using Google play store (but you need to have google account and google play store should be pre installed) Most of the android real devices (mobiles or tablets), we can install .apk files (android apps) from Google Play store, this can be possible only if .apk files are published for public use. But if .apk…

Navigate back or home screen using Appium

Class AndroidDriver (implements AppiumDriver interface)  has method pressKeyCode(int key) for your handset / emulator to navigate to Home screen or navigating back. the argument key can be any one of the option from below linkhttps://developer.android.com/reference/android/view/KeyEvent.html To navigate to home screen: driver.pressKeyCode(AndroidKeyCode.HOME); Navigate to back screen: driver.pressKeyCode(AndroidKeyCode.BACK); Let’s see how we can implement in code those above…