If this is an iframe issue maybe this post would help you: It might be that you need to switch or use the iframe to access the TestObject.