title: How can I identify the language on a specific text using Selenium Webdriver
body: <p>I'm new at this (only a week) and i've searched all over the net for this one. I need to get the text and then identify the language that's written on, like in this case 'portuguese'. </p>
  
  <p>This is the div within the html I'm given:</p>
  
  <pre><code>&lt;div class="episode-toggle" style="display: none;"&gt;
  &lt;div class="formattedTime"&gt;Hora de início/fim:  02:05 &amp;nbsp;-&amp;nbsp; 03:00 &lt;/div&gt;
  &lt;div class="parental rating_R-10"&gt;Classificação Indicativa: 10&lt;span class="path1"&gt;&lt;/span&gt;&lt;span class="path2"&gt;&lt;/span&gt;&lt;/div&gt;
  &lt;div&gt;Sinopse: Playlist MTV é uma seleção com os melhores clipes 
  relacionados a um estilo musical específico. Acompanhe agora a melhor 
  seleção de clipes da música Pop.&lt;/div&gt;
  &lt;div class="origin"&gt;País de origem: United States&lt;/div&gt;
  &lt;div class="prodYear"&gt;Ano de produção: 2017&lt;/div&gt;&lt;/div&gt;
  </code></pre>
  
  <p>This is what's on my selenium/java project:</p>
  
  <pre><code>    WebDriver driver = new ChromeDriver();
      driver.get("http://www.mtv.com.br/horarios");
      myString = driver.findElement(By.xpath("//div[@class='episode-toggle']")).getText();
      System.out.println(myString);}
  </code></pre>
  
  <p>Any idea how can I do it (if there's any way) be it with selenium or other software?</p>
  
  <p>Thanks!</p>