I am automating the flex application using Selenium Flex API, everything works fine but If machine is locked then sometimes below mentioned line doesn't work. It returns true but somehow the action on the click of button doesn't show up.
button.dispatchEvent(new MouseEvent(MouseEvent.CLICK))