appium / appium-for-mac

[deprecated] Application for automating a mac app with JSON wire protocol
Apache License 2.0
193 stars 70 forks source link

Unable to perform mouse actions on mac #100

Open rajudevolla opened 3 years ago

rajudevolla commented 3 years ago

Hi Team,

I am not able to perform mouse actions like mouse up and down using appium for mac. I have tried the below options.

1.http://appium.io/docs/en/commands/interactions/mouse/moveto/

  1. Tried to use scroll from iOS driver, that is also not wokring

Requesting to look into this.

milindmaha commented 3 years ago

If you are using java client, update the capabilities by setting caps.setCapability("forceMjsonwp", true)

import org.openqa.selenium.interactions.Actions;

@Test void someTestFunction() { Actions actions = new Actions(driver); actions.moveToElement(); actions.clickAndHold(); actions.moveToElement(); actions.perform(); }

pramodl7713 commented 3 years ago

@milindmaha Even caps.setCapability("forceMjsonwp", true) is not working any other soultion

milindmaha commented 3 years ago

@pramodl7713 What's the error you got?