I'd prefer to not access the private properties of capabilities. Can we think of another way to test for this, or find a series of setting window.name / getting pages that works for all browsers?