From e8034cba129c0656a3050a9b103e58dccfe36b3a Mon Sep 17 00:00:00 2001 From: toddtarsi Date: Wed, 18 Oct 2023 01:31:37 -0500 Subject: [PATCH] recorder: move api into connect phase call --- packages/selenium-ide/package.json | 2 +- .../browser/windows/PlaybackWindow/preload/locator-builders.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 )