How can I change IP Geographic location in Java JUnit with Appium?

How can I change IP Geographic location in Java JUnit with Appium?

Hi Tim!

To change IP Geographic location in JUnit while performing Appium testing, you need to add the below capability in your test script -

//ADD GEOLOCATION BASED ON COUNTRY CODE
        capabilities.setCapability("geoLocation","fr");

Please check out the below GitHub repo for the same

https://github.com/himanshuseth004/junit-appium-ip-geolocation