Skip to content

BrowserStack Local doesn't work with IP geolocation #40

Open
@ghost

Description

Summary

BrowserStack recently release new feature IP geolocation is great option to test website by IP spoofing for different regions. (e.g. GDPR testing) but BrowserStack local doesn't work with browserstack.geoLocation capability.

Expected Behavior

if browserstack.geoLocation capability specified then we expect the network traffic simulation by IP spoofing through local network.

Actual Behavior

All network calls passed without local network as a effect, The http://localhost:XXX is not reachable

Steps to Reproduce the Problem

  1. Start BS Local with some local identifier Test1
  2. Run below java code
		capabilities.setCapability("browser", "Chrome");
		capabilities.setCapability("browserstack.local", "true");
		capabilities.setCapability("browserstack.localIdentifier", "Test1");
		WebDriver driver = new RemoteWebDriver(new URL("http://" + username + ":" + accessKey + "@hub-cloud.browserstack.com/wd/hub"), capabilities);
		driver.get("https://localhost:8080/");

browserstack local arguments

./BrowserStackLocal --key XXXXXXXXXXXX --force --forcelocal --local-identifier Test1

Platform details

  1. browserstack-local-java version: 1.0.3 or 1.0.2
  2. java version: 1.8
  3. os type and version: Mac

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions