diff --git a/packages/selenium-ide/package.json b/packages/selenium-ide/package.json index c666b0efa..5900a672a 100644 --- a/packages/selenium-ide/package.json +++ b/packages/selenium-ide/package.json @@ -1,6 +1,6 @@ { "name": "@seleniumhq/selenium-ide", - "version": "4.0.0-alpha.50", + "version": "4.0.0-alpha.51", "private": true, "description": "Selenium IDE electron app", "author": "Todd ", diff --git a/packages/selenium-ide/src/browser/windows/PlaybackWindow/preload/locator-builders.ts b/packages/selenium-ide/src/browser/windows/PlaybackWindow/preload/locator-builders.ts index 6a59fb382..67eea769c 100644 --- a/packages/selenium-ide/src/browser/windows/PlaybackWindow/preload/locator-builders.ts +++ b/packages/selenium-ide/src/browser/windows/PlaybackWindow/preload/locator-builders.ts @@ -24,10 +24,10 @@ type LocatorFunction = (e: HTMLElement, ctx?: any) => string | null export default class LocatorBuilders { constructor(window: Window) { this.window = window - this.setLocatorsOrderFromState() } listenForChanges() { + this.setLocatorsOrderFromState() this.window.sideAPI.recorder.onLocatorOrderChanged.addListener( LocatorBuilders.setPreferredOrder )