title: How to finding webElement (on Facebook) using selenium using java
body: <p>I'm create a test Script where i post on my wall in Facebook but I was unable to locate the element <code>(getting an NoSuchElementException)</code> even though the element exist and I was trying to find a <code>cssSelector</code> using FirePath. <br></p>
  
  <p><a href="https://i.stack.imgur.com/3mi43.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3mi43.png" alt="enter image description here"></a></p>
  
  <p>I can't find any of the elements ('post', 'photo/video', and etc) or write on the wall. <br>
  I have tried below mentioned code:</p>
  
  <pre><code>@Test
  public void doTest(){
      driver.get("https://www.facebook.com/");
      driver.findElement(By.id("email")).sendKeys("kryptonitecricket@gmail.com");
      WebElement element= driver.findElement(By.id("pass"));
      element.sendKeys("windcore123");
      element.submit();
      doThread();
  
      WebElement element1;
       element1= driver.findElement(By.id("pagelet_composer"));
      element1.click();
      element1=driver.findElement(By.cssSelector("#mainContainer&gt;#contentCol"........);
      WebElement element2=driver.findElement(By.cssSelector("._1mf7._4jy0._4jy3._4jy1._51sy.selected._42ft"));
      element2.click();
  }
  </code></pre>
  
  <p>I am very new to selenium and testing
  Thank you    </p>