[dotnet]: Remove ActionBuilder
type and Create{InputDevice}{Action}
methods
#14873
Labels
ActionBuilder
type and Create{InputDevice}{Action}
methods
#14873
Feature and motivation
Currently, users can perform high-level custom operations with the
Actions
class, as such:The underlying mechanism is the
ActionBuilder
, which is used byActions
like so:ActionBuilder
is a publicly-exposed type. However, there is no way to use it directly - the builder on theActions
type is private, and there is no way to add arbitraryInteraction
s to theActions
class either.Proposal
public class Actions { + public void AddAction(Interaction interaction) }
Alternative proposal 1
Alternatively, users could be able to make their own set of actions directly on the
ActionBuilder
and pass that to anActions
to execute.public class Actions { + public Actions(IWebDriver driver, ActionBuilder builder) }
However, this makes some operations harder because we no longer have access to
GetActive{Pointer|Keyboard|Wheel}
methods.Alternative proposal 2
If we do not want users to be making their own interactions, and instead prefer to expose only higher-level operations directly on the
Actions
class, then we should not expose this functionality to usersUsage example
With the above method, people will be able to add and invoke the entire currently-underutilized set of interactions one can make, such as this:
The text was updated successfully, but these errors were encountered: