title: Cannot find element and get text using Selenium WebDriver
body: <p>I'm trying to find element so that I can grab text and save it as a string using selenium webdriver however I'm getting a no such element exception. </p>
  
  <p><strong>JAVA:</strong></p>
  
  <pre><code>WebDriver driver = new ChromeDriver();              
          driver.get("https://ld2025.wdf.sap.corp/sap/bi/launchpad/#item_type=HANALYTIC");
          try{
              Thread.sleep(10000);
          }catch(InterruptedException e){
              System.out.println("got interrupted!");
          }
          WebElement searchBox = driver.findElement(By.xpath("//*[@id='itemNameLbl_608963021']"));
          searchBox.click();
  
          driver.switchTo().defaultContent();
          try{
              Thread.sleep(15000);
          }catch(InterruptedException e){
              System.out.println("got interrupted!");
          }
         WebElement searchBox2 = driver.findElement(By.xpath("//*[@id='UIComp_1']/svg/g[3]/g/g/text"));
  
          String number = searchBox2.getText();
          System.out.println(number);
  </code></pre>
  
  <p>HTML code link(not enough reputation to post images):</p>
  
  <p><a href="http://imgur.com/uEO0FU6" rel="nofollow">http://imgur.com/uEO0FU6</a></p>