title: How to logout gmail using selenium script?
body: <p>I am writing selenium script for Gmail login and logout functionality. I am able to successfully login using below code.</p>
  
  <pre><code>//Open gmail
           driver.get("http://www.gmail.com");
  
           // Enter userd id
           WebElement element = driver.findElement(By.id("Email"));
           element.sendKeys("xyz@gmail.com");
  
           //wait 5 secs for  userid to be entered
           driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);
  
           //Enter Password
           WebElement element1 = driver.findElement(By.id("Passwd"));
           element1.sendKeys("Password");
  
           //Submit button
           element.submit();
  </code></pre>
  
  <p>But i could not write a script to logout. Could yu please provide me script for logout?</p>
  
  <p>Thanks!</p>