title: Selenium Webdriver warning - Invalid token "screen"
body: <p>I am new in Selenium Webdriver. When i use this code then i got both output and an WARNING. Please help me, How can i ignore this warning. My code is:</p>
  
  <pre><code>package com.webdriver.Webdriver;
  
  import org.openqa.selenium.By;
  import org.openqa.selenium.WebDriver;
  import org.openqa.selenium.WebElement;
  import org.openqa.selenium.htmlunit.HtmlUnitDriver;
  
  public class Example {
  
      public static void main(String[] args) {
          // Create a new instance of the html unit driver
          // Notice that the remainder of the code relies on the interface,
          // not the implementation.
          WebDriver driver = new HtmlUnitDriver();
          // And now use this to visit Google
          driver.get( "https://mobile.twitter.com/andres/about" );
          // Find the text input element by its name
          //WebElement element = driver.findElement(By.xpath("//title"));
          WebElement element = driver.findElement(By.xpath("//div[@class='footer']/strong/a"));
          String s=element.getText();
          // Enter something to search for
          //element.sendKeys( "Cheese!" );
          // Now submit the form. WebDriver will find the form for us from the element
          //element.submit();
          // Check the title of the page
          System.out.println( "Page title is: " + driver.getTitle());
          System.out.println(s);
          driver.quit();
          }
  
  }
  </code></pre>
  
  <p>WARNING:</p>
  
  <blockquote>
    <p>Nov 30, 2011 2:54:23 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler error</p>
    
    <p>WARNING: CSS error: [1:1724] Error in @media rule. Invalid token "screen". Was expecting one of: , , .</p>
    
    <p>Nov 30, 2011 2:54:23 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler warning</p>
    
    <p>WARNING: CSS warning: [1:1724] Ignoring the whole rule.</p>
    
    <p>Nov 30, 2011 2:54:23 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler error</p>
    
    <p>WARNING: CSS error: [1:1908] Error in @media rule. Invalid token "screen". Was expecting one of: , , .</p>
    
    <p>Nov 30, 2011 2:54:23 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler warning</p>
    
    <p>WARNING: CSS warning: [1:1908] Ignoring the whole rule.</p>
    
    <p>Nov 30, 2011 2:54:23 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler error</p>
    
    <p>WARNING: CSS error: [1:3437] Error in @media rule. Invalid token "screen". Was expecting one of: , , .</p>
    
    <p>Nov 30, 2011 2:54:23 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler warning</p>
    
    <p>WARNING: CSS warning: [1:3437] Ignoring the whole rule.</p>
    
    <p>Page title is: Twitter
    Refresh now</p>
  </blockquote>
  
  <p>Thanks</p>