How to change IP geographic location in Python Behave with Appium on LambdaTest?

I need a sample repo to change IP geographic location in Python Behave using Appium on LambdaTest.

Hello Devan,

You have the ability to geoLocation in the capabilities in your automation script in Appium Python Behave.

Here is an example of how to set geoLocation in the capabilities in your automation script:

app_android_desired_caps = {
    "deviceName":"Galaxy S20",
    "platformName":"Android",
    "platformVersion":"10",
    "build":"Python Behave - Android",
    "name":"Sample Test Android",
    "isRealMobile":True,
    "network":True,
    "visual":True,
    "video":True,
    "app":"lt://", #Enter app_url here

    #ADD GEOLOCATION BASED ON COUNTRY CODE
    "geoLocation":"fr"


}

app_ios_desired_caps = {
    "deviceName":"iPhone 12",
    "platformName":"ios",
    "platformVersion":"14",
    "build":"Python Behave - iOS",
    "name":"Sample Test iOS",
    "isRealMobile":True,
    "network":True,
    "visual":True,
    "video":True,
    "app":"lt://", #Enter app_url here

    #ADD GEOLOCATION BASED ON COUNTRY CODE
    "geoLocation":"fr"

}

You can download and configure the GitHub repo:

Hello Devan,

You can easily set geoLocation in the capabilities in your automation script in Appium Python Behave.

Here is an example of how to set geoLocation in the capabilities in your automation script:

app_android_desired_caps = {
    "deviceName":"Galaxy S20",
    "platformName":"Android",
    "platformVersion":"10",
    "build":"Python Behave - Android",
    "name":"Sample Test Android",
    "isRealMobile":True,
    "network":True,
    "visual":True,
    "video":True,
    "app":"lt://", #Enter app_url here

    #ADD GEOLOCATION BASED ON COUNTRY CODE
    "geoLocation":"fr"


}

app_ios_desired_caps = {
    "deviceName":"iPhone 12",
    "platformName":"ios",
    "platformVersion":"14",
    "build":"Python Behave - iOS",
    "name":"Sample Test iOS",
    "isRealMobile":True,
    "network":True,
    "visual":True,
    "video":True,
    "app":"lt://", #Enter app_url here

    #ADD GEOLOCATION BASED ON COUNTRY CODE
    "geoLocation":"fr"

}

You can download and configure the GitHub repo: