title: How to validate that clicking on a link shows a particular section on screen from a very large webpage
body: <p>I am testing a very large webpage and when I am clicking on a menu item, the related section of the webpage should appear on the screen. Consider the following code:</p>
  
  <pre><code>import org.openqa.selenium.By;
  import org.openqa.selenium.WebDriver;
  import org.openqa.selenium.chrome.ChromeDriver;
  
  public class WikipediaTest {
  private WebDriver driver;
  public static void main(String[] args) throws InterruptedException {
      // TODO Auto-generated method stub
  
      System.setProperty("webdriver.chrome.driver", "C:/soft/chromedriver.exe");
      WebDriver driver = new ChromeDriver();
      driver.manage().window().maximize();
  
      driver.get("https://en.wikipedia.org/wiki/Main_Page");
      driver.findElement(By.id("searchInput")).sendKeys("WebDriver");
      driver.findElement(By.xpath("//*[@type='submit']")).click();
      Thread.sleep(2000 );
      driver.findElement(By.partialLinkText("Selenium Remote Control")).click();;
      Thread.sleep(5000); 
  
      // as expected, the section "Selenium Remote Control" section is being displayed on the screen.   
      // I am looking for a way to validate that the section or the text "Selenium Remote Control" is actually visible on the current screen. 
  
      driver.quit();}
  </code></pre>
  
  <p>}</p>
  
  <p>I am stuck with the part where I can validate that "Selenium Remote Control" is shown on the current screen. My project has many tests like this and I request for support.    </p>
  
  <p>We are using Selenium with Java (and Appium on mobile devices) to test this app. Thanks</p>