Skip to main content
No Result Found

Enable GeoComply App Support in BrowserStack

Learn how to use the geoComplyApp capability in BrowserStack Automate to support GeoComply-based location verification in test sessions.

The geoComplyApp capability is a Enterprise only offering. Reach out to our support team to enable this feature.

Some websites require users to verify their physical location through the GeoComply app. You can use the geoComplyApp capability to enable GeoComply-based location verification on Automate sessions. This feature is intended for users who want to test websites requiring compliance with GeoComply on Automate Desktop sessions.

The geoComplyApp capability is currently supported only for Chrome, and Edge browser versions supporting GeoComply running on MacOS Ventura or higher.

Capability Description Value
geoComplyApp Use this capability to enable Geocomply installation on the terminal in your Automate session. true

If you are using BrowserStack SDK, you can set the following capabilities in the browserstack.yml file:

browserstack.yml
Copy icon Copy

You can use either Selenium 4 or Selenium Legacy JSON to organize your tests.

BrowserStack SDK is a plug-n-play solution that takes care of all the integration steps for you. Using the BrowserStack SDK is the recommended integration method for your project. To know more, visit the SDK core concepts page.

Use the geoComplyApp capability enabled as shown in the following code sample:

desiredCapabilities.setCapability("browserstack.geoComplyApp", "true");
var capabilities = {
  "browserstack.geoComplyApp": "true",
};
ChromeOptions capability = new ChromeOptions();
capability.AddAdditionalCapability("browserstack.geoComplyApp", "true");
desired_cap = {
  "browserstack.geoComplyApp": "true",
}

Use the geoComplyApp capability enabled as shown in the following code sample:

DesiredCapabilities capabilities = new DesiredCapabilities();
HashMap<String, Object> browserstackOptions = new HashMap<>();

// For enabling GeoComply App
browserstackOptions.put("geoComplyApp", true);
capabilities.setCapability("bstack:options", browserstackOptions);
var capabilities = {
   "browserName" : "Chrome",
   'bstack:options' : {
     "geoComplyApp" : "true",
  }
}
Dictionary<string, object> bstackOptions = new Dictionary<string, object>();
ChromeOptions capabilities = new ChromeOptions();
bstackOptions.Add("geoComplyApp", "true");
capabilities.AddAdditionalOption("bstack:options", bstackOptions);
desired_cap = {
   "browserName" : "Chrome",
   'bstack:options' : {
     "geoComplyApp" : "true",
  }
}

When the geoComplyApp capability is enabled, the GeoComply app will be installed on the terminal for that session.

Limitation

  • The wsLocalSupport capability cannot be used along with geoComplyApp capability.

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback!

Talk to an Expert
Download Copy Check Circle