How to bypass location popup in mobile devices

I am getting this location pop up that I want to bypass in android and safari devices

Could you please share a way to do that

2 Likes

Hello Richard,

Hope you are doing well.

You could bypass the location in android and iOS devices by creating an appium driver.

> public static AppiumDriver driver;
> 
> driver = new AndroidDriver(new URL(gridURL), capability);

Then you would need to use this script to bypass the location.

> driver.context("NATIVE_APP");
> 
> driver.findElement(MobileBy.xpath("//*[@class='android.widget.Button'][2]")).click();

Hope the solution provided helps you to bypass the location.

Thanks

2 Likes