Sahi Pro Fix for Firefox 86

Published on 7th March 2021 blog, Fix, General Support

With the release of Firefox 86 version, Firefox has changed the behavior of window.name.

Sahi Pro identifies popups based on window.name, and previously, it would persist across the domain until someone explicitly changes it.

Due to the recent change in Firefox 86, the behavior of window.name is such that it resets every time one navigates to a different domain which breaks the Sahi Pro popup identification.

The First Statement will fail and show the below error when you run any test on Firefox 86 and above.

_setValue(_textbox(“user”), “test”) [12100 ms]

Window/Domain not found: popupNameFromStep= derivedName=Login; windowName=sahi_2014ca370e1370415c0aa4c0a0388f71dbfb; windowTitle=Login; windowURL=http://sahitest.com/demo/training/login.htm; wasOpened=1; sahiWinId=sahiWinId_1; appName=; windowNameUUID=sahi_c7702be30f0b8042cb0aad307e246ba6162f; isIFrame=0

To fix this, please follow the steps below.

– Take a backup of <Sahi Pro>/config/ff_profile_template/prefs.js.

– Add the below line in <Sahi Pro>/config/ff_profile_template/prefs.js file.
user_pref(“privacy.window.name.update.enabled”, false);

– Delete the <Sahi Pro>/userdata/browser/ff folder.

– Restart Sahi Pro and check.