WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

Unable to Context Click on the Icon present in System Tray

Open dishantrath opened this issue 4 years ago • 2 comments

I have to Automate Citrix Receiver (ideally present in system tray). I have to grab the version number it has. But when I try to Context Click the icon, it is not responding. And the strange thing is that it responds when I go through the debug mode.

action.ContextClick(DesktopSession.FindElementByXPath("//Button[@Name='Citrix Workspace']")).Perform();

Could you please help me with how to perform the above action?

I tried with session.mouse.ContextClick() but that too didnt respond.

dishantrath avatar Mar 16 '21 05:03 dishantrath

Hi @dishantrath I suspect there could be two reasons for this:

  1. Your xpath is incorrect. n should be replaced with N //Button[@Name='Citrix Workspace']
  2. ActionChains(driver); Check that driver passed to ActionChains is DesktopSession driver object

shoaibmansoor avatar Mar 17 '21 15:03 shoaibmansoor

I would love to learn how to open an app that's running in system tray in javascript. Any help is appreciated

khapuhetti avatar Jun 03 '22 20:06 khapuhetti