Skip to content

fix: use cache bypass when searchOpenDialogs is used without forceSelect#744

Draft
Nanovsky wants to merge 3 commits into
ui5-community:mainfrom
Nanovsky:autoForceSelect
Draft

fix: use cache bypass when searchOpenDialogs is used without forceSelect#744
Nanovsky wants to merge 3 commits into
ui5-community:mainfrom
Nanovsky:autoForceSelect

Conversation

@Nanovsky

@Nanovsky Nanovsky commented May 4, 2026

Copy link
Copy Markdown
Collaborator

This is tacling a UI5 specific in combination with WDI5 caching when enforceWebDriverClassic is used. UI5 destroys the dialog DOM when the dialog is closed and re-creates the DOM when the dialog is opened again. During this transition WDI5 internal caching holds on to the old DOM and thus resulting in a stale reference error.

The fix is protocol agnostic for future proofing and only use cache bypass for searchOpenDialogs if forceSelect is not explicitly set by the test.

Relevant to #741

This is tacling a UI5 specific in combination with WDI5 caching
when enforceWebDriverClassic is used. UI5 destroys the dialog
DOM when the dialog is closed and re-creates the DOM when the dialog
is opened again. During this transition WDI5 internal caching holds
on to the old DOM and thus resulting in a stale reference error.

The fix is protocol agnostic for future proofing and only auto enables
the forceSelect if it is not explicitly set by the test.

Relevant to ui5-community#741
Separate cache-bypass from per-method re-retrieval for searchOpenDialogs
selectors. Previously, auto-enabling forceSelect caused every method call
to re-retrieve the element, timing out when the dialog was closed.
Now only the control cache is bypassed, while the control instance
retains normal behavior.
@Nanovsky Nanovsky marked this pull request as draft May 4, 2026 12:14
@Nanovsky

Nanovsky commented May 4, 2026

Copy link
Copy Markdown
Collaborator Author

Test is failing because of malformed URL:
Error: resource sap-ui-version.json could not be loaded from https://ui5.sap.com/1-legacy-free/resources/sap-ui-core.js/sap-ui-version.json. Check for 'file not found' or parse errors.

I'll investigate further why this URL is created like that.

@Nanovsky Nanovsky changed the title fix: auto enable forceSelect when searchOpenDialogs is used fix: use cache bypass when searchOpenDialogs is used without forceSelect May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant