How do I easily switch back and forth between two pages?
I am writing tests for a client-facing web application. There is a chat widget which indicates if it is online or not. I would like to write a test which logs in as a client and validates that the widget is offline. Then I would like another browser window (or page, doesn't matter) launched which logs into the system as a customer support agent and activates chat and confirms that it looks live from the agent side. Finally, I would like to switch back to the client window and make sure the widget became live.
I have been looking for information on how to do this with variables, but I'm learning as I go, and I've already spent too much time trying to build this test. I hope this is a relatively simple sort of test that others have written before. Can someone tell me the best way to go about this test?