Unable to Context Click on the Icon present in System Tray
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.
Hi @dishantrath I suspect there could be two reasons for this:
- Your xpath is incorrect. n should be replaced with N
//Button[@Name='Citrix Workspace'] -
ActionChains(driver); Check that driver passed to ActionChains is DesktopSession driver object
I would love to learn how to open an app that's running in system tray in javascript. Any help is appreciated