title: Calling a String value from one class to another class
body: <p>Can anyone help me to call or retrieve the string "fam_acc_data" value from a class create_family child_tab to another class parent_search_process class?? Many thanks in advance. </p>
  
  <pre><code>@Test(dependsOnMethods = "parent_form_inputs")
        public create_family child_tab(String parent_form2_error_image_path) throws IOException
        {
           driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);
  
           if(driver.findElement(child_link).isDisplayed())
           {
  
               System.out.println("Parent Information Added Successfully");
               System.out.println("");    
  
               String fam_acc_data = driver.findElement(fam_acc_key).getText();
           }
           else
           {
               System.out.println("Some Error Occured Will Parent Creation");
               System.out.println("");
  
               File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);
               FileUtils.copyFile(scrFile, new File(parent_form2_error_image_path));
               System.out.println("Refer the Screen Shot Saved in: " + parent_form2_error_image_path);
               System.out.println("");
  
           }
  
           return this;
        }
  </code></pre>