title: Selenium Webdriver How to switch between different Firefox windows
body: <p>In order to login to the conference as 4 different roles, for each role I wrote </p>
  
  <pre class="lang-java prettyprint-override"><code>System.setProperty("webdriver.firefox.profile", "default");
  FirefoxDriver driver = new FirefoxDriver();
  driver.manage().timeouts().implicitlyWait(120, TimeUnit.SECONDS);
  driver.get("link to the conference");
  </code></pre>
  
  <p>How can I switch between Firefox windows then? Windows titles are the same.
  Thanks</p>