I'm not sure what's going on but your first step should be to check if this is returning null desktop. BrowserApplication find("/BrowserApplication[2]") If that returns the BrowserApp as expected then check if getHorizontalBar() returns the expected object or null.
↧