Skip to content

Currently only pen and touch pointer input source types are supported #764

@valinprogress

Description

@valinprogress

Description

I have a winforms application. I am trying to automate the selection with a mouse in a System.Windows.Forms.ToolStripMenuItem. The dotnet client won't let me, maybe I'm making a mistake? Maybe someone already solved the issue if it is an issue?

Environment

.NET 6 with C#
Appium server version 2.5.1
dotnet-client: Appium.WebDriver 5.0.0-beta02
Selenium.WebDriver 4.5.1
appium-windows-driver
OS Windows 11
npm 10.5.0
Windows Application

Details

See the exception stack trace. I have slightly modified the sample code provided in the README.

Code To Reproduce Issue [ Good To Have ]

var touch = new OpenQA.Selenium.Appium.Interactions.PointerInputDevice(PointerKind.Mouse, "WindowsPC");
var sequence = new ActionSequence(touch);
var move = touch.CreatePointerMove(elementToClick, elementToClick.Location.X, elementToClick.Location.Y, TimeSpan.FromSeconds(10));
var actionPress = touch.CreatePointerDown(MouseButton.Touch);
var pause = touch.CreatePause(TimeSpan.FromMilliseconds(250));
var actionRelease = touch.CreatePointerUp(MouseButton.Touch);

sequence.AddAction(move);
sequence.AddAction(actionPress);
sequence.AddAction(pause);
sequence.AddAction(actionRelease);

var actions_seq = new List<ActionSequence>
	{
		sequence
	};

driver.PerformActions(actions_seq);

Exception stack traces

OpenQA.Selenium.WebDriverException
HResult=0x80131500
Message=Currently only pen and touch pointer input source types are supported
Source=WebDriver
StackTrace:
at OpenQA.Selenium.WebDriver.UnpackAndThrowOnError(Response errorResponse, String commandToExecute)
at OpenQA.Selenium.WebDriver.Execute(String driverCommandToExecute, Dictionary2 parameters) at OpenQA.Selenium.Appium.AppiumDriver.Execute(String driverCommandToExecute, Dictionary2 parameters)
at OpenQA.Selenium.Appium.AppiumDriver.PerformActions(IList`1 actionSequenceList)

Link to Appium logs

Available on request

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions