'WebDriverException' occuring when website is tested on native samsung browsers when automating using Appium


#1

When testing a website, following exception occurs on devices:

On Samsung Galaxy Grand Prime (Android 5.1.1):

OpenQA.Selenium.WebDriverException : An unknown server-side error occurred while processing the command. Original error: ‘app’ option is required for reinstall

On Samsung Galaxy S8 (Android 8.0.0):

OpenQA.Selenium.WebDriverException : An unknown server-side error occurred while processing the command. Original error: Could not find package com.android.browser on the device

I used following desired capability to use native browser as is suggested in other discussions but it is also not working.

cap.SetCapability(MobileCapabilityType.BrowserName, MobileBrowserType.Browser);

Appium version - 1.9.1 (automation is done on Mac and language used is C#)

Can someone please suggest any other way to do this?

PS: Above code is working fine for Chrome browser on same set of devices