When the browser is out of focus, focus and blue events do not get triggered properly. http://makandracards.com/makandra/12661-how-to-solve-selenium-focus-issues - this article suggests triggering the events explicitly through JavaScript, but whenever I try executing any script, 'window' always refers to Selenium IDE window which is completely pointless in my eye. I want the context of the actual browser window where the test is running.
Take the 2-minute tour
×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
For injecting JavaScript,it's got to include window and document:
Taken from function description in selenium IDE: Note that, by default, the snippet will run in the context of the "selenium" object itself, so this will refer to the Selenium object. Use window to refer to the window of your application, e.g. If you need to use a locator to refer to a single element in your application page, you can use |
||||
|