You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: showActions() with ShowActionsOptions.setPosition() throws protocol error for all AnnotatePosition values #1912
page.screencast().showActions(
new Screencast.ShowActionsOptions().setPosition(AnnotatePosition.TOP_RIGHT)
);
Expected behavior
showActions() runs without error and action indicators are displayed in the screencast at the specified position.
Actual behavior
Actual Behavior
A protocol-level error is thrown for at least TOP and TOP_RIGHT - i haven't tried every single one.
Error
Error: position: expected one of (top-left|top|top-right|bottom-left|bottom|bottom-right)
name='Error
stack='Error: position: expected one of (top-left|top|top-right|bottom-left|bottom|bottom-right)
at .../playwright-java-.../package/lib/protocol/validatorPrimitives.js:156:13
at .../playwright-java-.../package/lib/protocol/validatorPrimitives.js:122:12
at .../playwright-java-.../package/lib/protocol/validatorPrimitives.js:140:21
at DispatcherConnection.dispatch (.../dispatcher.js:264:21)
Additional context
Directly using a String as per the Documentation, like
new Screencast.ShowActionsOptions().setPosition("top-right")
does not work, as the Method Signature doesn't even allow it.
Activity