title: How to call <li> id values from the property file using java?
body: <p>Currently I'm working on <strong>Selenium WebDriver</strong> and <strong>Java</strong>. I have a master script which runs all the other scripts. The master script as follows:</p>
  
  <pre><code>import org.openqa.selenium.WebDriver;
  public class MasterScript {
  public static void main(String[] args) throws Exception {
  //*****************************************************
  //   Calling Methods
  //*****************************************************
  LoginOneReports utilObj = new LoginOneReports ();// calling my 1st LoginOneReports.java
  WebDriver driver;
  driver=utilObj.setUp();
  if(utilObj.Login()){
  System.out.println("Login sucessfully completed");
  } else {
  System.out.println("Login failed");
  System.exit(0);
  }
  NewPR utilObj1 = new NewPR(driver);// calling my 2st NewPR.java Here I need to change
  if(utilObj1.test()){
  System.out.println("NewPR KPI page has opened");
  } else {
  System.out.println("NewPR KPI not able to open");
  }
  FilterSection utilObj2 =new FilterSection(driver);//calling my 3st Filtersection.java
  utilObj2.FilterMatching();
  }
  }
  </code></pre>
  
  <ol>
  <li>I have a list of kPI's as follows:</li>
  </ol>
  
  <p><img src="https://i.stack.imgur.com/R7gQ5.jpg" alt="enter image description here">
  Currently in my NewPR.java script I'm directly going and clicking on the <code>NewPR</code>
  The script as follows: </p>
  
  <pre><code>Log.info("Clicking on Overview and Evolution PR link");
  if(existsElement("ext-new-prs")==true){
  JavascriptExecutor executor = (JavascriptExecutor)driver;
  executor.executeScript("arguments[0].click();", driver.findElement(By.id("ext-new-prs") ));
  Thread.sleep(6000);
  }
  else{
  Log.info("element not present");
  System.out.println("element not present -- so it entered the else loop");
  }
  return driver.getCurrentUrl().equals("https://10.4.16.159/extranet_newprs/reports/type/default/");
  }
  </code></pre>
  
  <p>Instead of going and clicking each time one KPI. I need to store in a property file where all the list of values in screenshot. Then i need to call any 1 or more KPI and i need to run the 3rd script that is <code>FilterSection.java</code></p>
  
  <p>My problem is all the KPI HTML are looks like this</p>
  
  <pre><code>&lt;li&gt;
  &lt;a id="ext-pr" class="submenu ext-pr" name="ext-pr" href="https://10.4.16.159/reports/"&gt;Problem Reports (PR)&lt;/a&gt;
  &lt;ul&gt;
  &lt;li&gt;
  &lt;a id="ext-pr-backlog-age" class=" ext-pr-backlog-age" name="ext-pr-backlog-age" href="https://10.4.16.159/extranet_prbacklogage/reports/type/default/"&gt;Age&lt;/a&gt;
  &lt;/li&gt;
  &lt;li&gt;
  &lt;a id="ext-timetoassign-prs" class=" ext-timetoassign-prs" name="ext-timetoassign-prs" href="https://10.4.16.159/extranet_timetoassignprs/reports/type/default/"&gt;Average Time To Assign&lt;/a&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p>I don't have idea how to store these set of values in a property file. could anyone suggest me solution..</p>