Skip to content

Bug: PopUp Blocker does not work with SVG #369

@wurzelkuchen

Description

@wurzelkuchen

Quick Description

Our popup blocker is selecting a css locator and perform a click on it if possible. Unfortunately some customer overlays which disturbs the normal test flow are listening for the click on an SVG element. This kind of element however is not clickable programatically as other elements are and therefore our code fails to click it.

Actual Behaviour

If I try to close a PopUp which has an SVG element as a close listener, the PopUp will not be closed.

Expected Behaviour

If I try to close a PopUp which has an SVG element as a close listener, the PopUp will be closed.

Additional Info

Instead of using .click() we can use popupElement.dispatchEvent(new Event('click')); which should solve the issue.

Metadata

Metadata

Assignees

Labels

bugcodeDoneThe issue is rechecked for development branch

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions