You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use Karma and BrowserStack to test FingerprintJS v3 in many browsers. Fingerprint must persist between regular and incognito mode of browser, therefore we should run our tests in incognito browsers too.
But I haven't succeeded to start an incognito browser on BrowserStack. We are trying to solve it with the BrowserStack support. This is what I've got so far: https://github.com/Finesse/karma-browserstack-example/blob/incognito/karma.conf.js. I've tried many other parameters of BrowserStack custom launchers, they all have started browsers in regular mode. Does anybody have similar experience? We will appreciate a lot if you help to setup the incognito testing.
A similar setup that uses Selenium to control a BrowserStack browser directly works as expected:
Python code
fromseleniumimportwebdriverfromselenium.webdriver.common.keysimportKeysfromselenium.webdriver.common.byimportByfromselenium.webdriver.common.desired_capabilitiesimportDesiredCapabilitiesfromtimeimportsleepfromdatetimeimportdatetimeimportosdesired_cap= {
"browser": "Chrome",
"goog:chromeOptions": {
"args": ["incognito", ],
"w3c": False
},
}
driver=webdriver.Remote(
# The environment variable value must be 'http://your-username:your-password@hub-cloud.browserstack.com/wd/hub'command_executor=os.environ.get('BROWSERSTACK_HUB_URL'),
desired_capabilities=desired_cap
)
print("Session: https://automate.browserstack.com/dashboard/v2/sessions/"+driver.session_id)
print("protocol w3c:"+str(driver.w3c))
driver.get("https://google.com/")
driver.quit()
A fallback solution is to run incognito browsers in the CI directly like it's done in v2. But in contrast to v2, there should be multiple versions of browsers.
The text was updated successfully, but these errors were encountered:
We use Karma and BrowserStack to test FingerprintJS v3 in many browsers. Fingerprint must persist between regular and incognito mode of browser, therefore we should run our tests in incognito browsers too.
But I haven't succeeded to start an incognito browser on BrowserStack. We are trying to solve it with the BrowserStack support. This is what I've got so far: https://github.com/Finesse/karma-browserstack-example/blob/incognito/karma.conf.js. I've tried many other parameters of BrowserStack custom launchers, they all have started browsers in regular mode. Does anybody have similar experience? We will appreciate a lot if you help to setup the incognito testing.
A similar setup that uses Selenium to control a BrowserStack browser directly works as expected:
Python code
A fallback solution is to run incognito browsers in the CI directly like it's done in v2. But in contrast to v2, there should be multiple versions of browsers.
The text was updated successfully, but these errors were encountered: