I am a bit astonished to find that none of
- element.sendKeys
- element.click
- actions.click.perform
actually seem to fire an onfocus event. (I am using the FirefoxDriver in case its important)
I have an input field which changes its color on receiving focus, and i need to check that change in my test.
So far, the only way that change will actually be triggered is using javascript to set the focus. I find that somewhat hackish though.
Does anyone have any suggestions?
Thank you for your time!